我已经配置好了clion的IDF开发环境。并且成功构建了固件,但是我在烧录时却出现了如下错误
```
====================[ 构建 | flash | ESP32 ]======================================
"F:\Program Files\JetBrains\CLion 2021.3.4\bin\cmake\win\bin\cmake.exe" --build F:\espressif__led_strip\examples\led_strip_spi_ws2812\cmake-build-esp32 --target flash
[1/6] cmd.exe /C "cd /D F:\espressif__led_strip\examples\led_strip_spi_ws2812\cmake-build-esp32\esp-idf\esptool_py && C:\Users\Tritium\.espressif\python_env\idf5.1_py3.10_env\Scripts\python.exe F:/Espressif/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app F:/espressif__led_strip/examples/led_strip_spi_ws2812/cmake-build-esp32/partition_table/partition-table.bin F:/espressif__led_strip/examples/led_strip_spi_ws2812/cmake-build-esp32/led_strip_spi_ws2812.bin"
led_strip_spi_ws2812.bin binary size 0x327b0 bytes. Smallest app partition is 0x100000 bytes. 0xcd850 bytes (80%) free.
[2/6] Performing configure step for 'bootloader'
FAILED: bootloader-prefix/src/bootloader-stamp/bootloader-configure F:/espressif__led_strip/examples/led_strip_spi_ws2812/cmake-build-esp32/bootloader-prefix/src/bootloader-stamp/bootloader-configure
cmd.exe /C "cd /D F:\espressif__led_strip\examples\led_strip_spi_ws2812\cmake-build-esp32\bootloader && "F:\Program Files\JetBrains\CLion 2021.3.4\bin\cmake\win\bin\cmake.exe" -DSDKCONFIG=F:/espressif__led_strip/examples/led_strip_spi_ws2812/sdkconfig -DIDF_PATH=F:/Espressif/esp-idf -DIDF_TARGET=esp32 -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:/Users/Tritium/.espressif/python_env/idf5.1_py3.10_env/Scripts/python.exe -DEXTRA_COMPONENT_DIRS=F:/Espressif/esp-idf/components/bootloader -DPROJECT_SOURCE_DIR=F:/espressif__led_strip/examples/led_strip_spi_ws2812 -GNinja F:/Espressif/esp-idf/components/bootloader/subproject && "F:\Program Files\JetBrains\CLion 2021.3.4\bin\cmake\win\bin\cmake.exe" -E touch F:/espressif__led_strip/examples/led_strip_spi_ws2812/cmake-build-esp32/bootloader-prefix/src/bootloader-stamp/bootloader-configure"
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
See also "F:/espressif__led_strip/examples/led_strip_spi_ws2812/cmake-build-esp32/bootloader/CMakeFiles/CMakeOutput.log".
ninja: build stopped: subcommand failed.
```
对于这项问题,我翻遍了Github的Issue和ESP32的论坛,并且在Google上搜索都找不到相关答案,除了手动刷写固件,还有没有办法能在clion内使用内置的cmake刷写?
IDF版本为5.1.1 ,Clion版本为2021.3.4
关于CLion IDE在使用ESP-IDF刷新固件时的问题
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 128 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.