Page 1 of 1

Problems with compiling, flashing and serial monitor

Posted: Sun Oct 24, 2021 8:25 am
by raspitin
Hello,
I am trying to set up the ESP IDF with Ecclipse. I followed the tutorial from here https://github.com/espressif/idf-eclips ... /README.md

Now if I try to compile, I get this error:

Code: Select all

[1/307] cmd.exe /C "cd /D D:\EclipseWorkspace\hello_world\build\bootloader && C:\.espressif\tools\cmake\3.16.4\bin\cmake.exe --build ."
ninja: no work to do.
[2/305] cmd.exe /C "cd /D D:\EclipseWorkspace\hello_world\build\esp-idf\mbedtls && python D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
FAILED: esp-idf/mbedtls/x509_crt_bundle 
cmd.exe /C "cd /D D:\EclipseWorkspace\hello_world\build\esp-idf\mbedtls && python D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
If I clean the code I get this error:

Code: Select all

FAILED: esp-idf/mbedtls/x509_crt_bundle 
cmd.exe /C "cd /D D:\EclipseWorkspace\hello_world\build\esp-idf\mbedtls && python D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
If I try to launch the code I get this error:

Code: Select all

ninja: no work to do.
[2/306] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle 
cmd.exe /C "cd /D D:\EclipseWorkspace\hello_world\build\esp-idf\mbedtls && python D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in D:/EclipseWorkspace/esp-idf-v4.3.1/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Executing action: flash
Running ninja in directory d:\eclipseworkspace\hello_world\build
Executing "ninja flash"...
I configured everything according to the tutorial. And also entered the correct comport. So what is missing in my config to compile it correctly?
Thank you
Kind regards

Re: Problems with compiling, flashing and serial monitor

Posted: Mon Oct 25, 2021 11:33 am
by raspitin
Hello,
I am still stuck here. Does no one have a solution? Any tips?

Re: Problems with compiling, flashing and serial monitor

Posted: Mon Oct 25, 2021 12:08 pm
by ESP_krzychb

Re: Problems with compiling, flashing and serial monitor

Posted: Mon Oct 25, 2021 12:29 pm
by raspitin
Thank you. But I cannot find sdkconfig anywhere. If I search in the help menu I get 0 hits. Where is this located? In the project menus (right click and menu bar) there is no such item.

Re: Problems with compiling, flashing and serial monitor

Posted: Mon Oct 25, 2021 12:49 pm
by raspitin
Ok, found it and deactivated the certificate. Works now. Although my app is not running. But I guess thats a new topic.
Thank you!

Re: Problems with compiling, flashing and serial monitor

Posted: Mon Oct 25, 2021 2:42 pm
by raspitin
Is this now a security concern if the certificate is deactivated? Especially if it is for a professional application and possibly OTA?

Re: Problems with compiling, flashing and serial monitor

Posted: Fri Nov 05, 2021 2:29 pm
by raspitin
Can maybe someone from Espressif answer this? I need this for a commercial project that will not happen without it being secure. Or can someone point me to documentation regarding this problem?