> Executing task in folder ESP32Test02: C:\Users\Administrator\.platformio\penv\Scripts\platformio.exe run <
Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf)
-------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards ... 32dev.html
PLATFORM: Espressif 32 (3.3.2) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-espidf 3.40300.0 (4.3.0)
- tool-cmake 3.16.4
- tool-esptoolpy 1.30100.210531 (3.1.0)
- tool-idf 1.0.1
- tool-mconf 1.4060000.20190628 (406.0.0)
- tool-ninja 1.9.0
- toolchain-esp32ulp 1.22851.191205 (2.28.51)
- toolchain-xtensa32 2.80400.210211 (8.4.0)
Reading CMake configuration...
Generating assembly for certificate bundle...
CMake Error at C:/Users/Administrator/.platformio/packages/framework-espidf/tools/cmake/scripts/data_file_embed_asm.cmake:26 (file):
file failed to open for reading (No such file or directory):
E:\ESP32\ESP32Test02\.pio\build\esp32dev\x509_crt_bundle
*** Error 1
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Archiving .pio\build\esp32dev\esp-idf\lwip\liblwip.a
*** [.pio\build\esp32dev\.pio\build\esp32dev\x509_crt_bundle.o] Source `.pio\build\esp32dev\x509_crt_bundle.S' not found, needed by target `.pio\build\esp32dev\.pio\build\esp32dev\x509_crt_bundle.o'.
Indexing .pio\build\esp32dev\esp-idf\lwip\liblwip.a
================================================= [FAILED] Took 9.15 seconds =================================================
终端进程“C:\Users\Administrator\.platformio\penv\Scripts\platformio.exe 'run'”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
使用VScode编译总是不通过,捣鼓了几个小时搞不定,请教各位
Re: 使用VScode编译总是不通过,捣鼓了几个小时搞不定,请教各位
请问你这边是已经安装好了 idf ,然后无法对例程进行编译是吗,是直接使用 vscode 进行编译还是使用 了相关的插件。
Re: 使用VScode编译总是不通过,捣鼓了几个小时搞不定,请教各位
我也遇到類似問題...
我在ESP-IDF4.3 CMD下面用idf.py build hello_world...也是編譯失敗
內容如下...
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\jiuhtsair\Desktop\esp-idf\examples\get-started\hello_world\build\esp-idf\mbedtls && C:\Users\jiuhtsair\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/jiuhtsair/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/jiuhtsair/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/jiuhtsair/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
同樣的..
在VSCODE裡安裝了ESPRESSIF IDF也是遇到無法編譯的問題...
同樣是出現在編譯的最後面...
內容如下...
[2/305] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\jiuhtsair\Documents\ESP\blink\build\esp-idf\mbedtls && C:\Users\jiuhtsair\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/jiuhtsair/esp/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/jiuhtsair/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/jiuhtsair/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
終端機處理序 "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build ." 已終止。結束代碼: 1。
工作將被重新啟用.按任意鍵關閉.
已經嘗試好幾天了,找不出問題所在,請大家指導協助...謝謝!
我在ESP-IDF4.3 CMD下面用idf.py build hello_world...也是編譯失敗
內容如下...
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\jiuhtsair\Desktop\esp-idf\examples\get-started\hello_world\build\esp-idf\mbedtls && C:\Users\jiuhtsair\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/jiuhtsair/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/jiuhtsair/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/jiuhtsair/Desktop/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
同樣的..
在VSCODE裡安裝了ESPRESSIF IDF也是遇到無法編譯的問題...
同樣是出現在編譯的最後面...
內容如下...
[2/305] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\jiuhtsair\Documents\ESP\blink\build\esp-idf\mbedtls && C:\Users\jiuhtsair\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/jiuhtsair/esp/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/jiuhtsair/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/jiuhtsair/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
終端機處理序 "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build ." 已終止。結束代碼: 1。
工作將被重新啟用.按任意鍵關閉.
已經嘗試好幾天了,找不出問題所在,請大家指導協助...謝謝!
-
- Posts: 2
- Joined: Thu Nov 04, 2021 1:26 am
Re: 使用VScode编译总是不通过,捣鼓了几个小时搞不定,请教各位
这个问题是因为有个证书过期,在idf.py menuconfig命令行里把certificate关闭就能正常编译了
- Attachments
-
- 解决方案.PNG (103.64 KiB) Viewed 5951 times
Who is online
Users browsing this forum: Baidu [Spider] and 85 guests