Page 1 of 1

ESP-IDF with VS Code

Posted: Thu Nov 18, 2021 11:32 am
by Haidar
Hi
I downloaded esp-idf tools, python3, and Git 2.34, then I downloaded vs code, then espressif extension on vs code.
After that, I tried to build "Blink" project from the list of examples provided but the build failed.
The terminal displays the following:
[Codebox][1/307] Performing build step for 'bootloader'
ninja: no work to do.
[2/305] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\hayda\esp\blink\build\esp-idf\mbedtls && c:\Users\hayda\OneDrive\Documents\esp\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/hayda/OneDrive/Documents/esp/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/hayda/OneDrive/Documents/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/hayda/OneDrive/Documents/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.[/Codebox]

there is another error in the C/C++ configurations in the include path displaying the following:
Cannot find: ${env:IDF_PATH}/components/
Cannot find: ${env:ADF_PATH}/components/
Cannot find: ${env:ADF_PATH}/components/