Error trying to compile ESP32_GENERIC firmware? #19043
Replies: 6 comments 1 reply
-
|
I only take the lazy path
or you can re-use the logic built into to the ci workflows and scripts
if you want to DIY, I would recommend to avoid :
and use the procedure docuemented in ports/esp32/README.md |
Beta Was this translation helpful? Give feedback.
-
It looks like you are running the a pre-release (LATEST/HEAD) version of the ESP-IDF, V6.0 was only released 2 weeks ago. ESP-IDF 6+ is not (yet!) supported for MicroPython; the highest supported version is 5.4.2, see: V6 of the ESP-IDF has some (breaking) changes from V5, so it is no wonder that this does not yet compile. You will need to use one of the supported IDF's listed there, and wait for IDF 6+ support to arrive in the micropython port. |
Beta Was this translation helpful? Give feedback.
-
|
I can compile MicroPython for ESP32 with ESP-IDF up to version 5.5.1 git clone -b v5.5.1 --recursive https://github.com/espressif/esp-idf.git |
Beta Was this translation helpful? Give feedback.
-
|
A bridge too far... 6.1. Using 5.5.1 compile of ESP32 generic seems successful, now to complete flash of device. Thanks everyone. |
Beta Was this translation helpful? Give feedback.
-
|
One more question... when I successfully compiled the generic firmware, I see two bin files, one called micropython, one called firmware, can some qualify the difference? The one entitled firmware seems be the correct one, because when I flashed the one called micropython, it loaded fine but the ESP32 board was in an endless reset loop as a result. |
Beta Was this translation helpful? Give feedback.
-
|
This error is actually coming from an ESP-IDF version mismatch. You’re using IDF 6.1, but MicroPython’s ESP32 port still expects older components (like So even though your setup looks correct, the build system is pulling in incompatible components. Fix is to use a compatible IDF version (e.g. v5.2): git clone -b v5.2 --recursive https://github.com/espressif/esp-idf.git Then reinstall + rebuild: This kind of issue is tricky because the actual failure (“newlib not found”) is just a symptom of version mismatch, and CI/build logs don’t always make that obvious. I’ve been working on a small tool that extracts these kinds of root causes from noisy CI logs automatically — happy to share if useful. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to learn how to create a custom firmware image for ESP32. Error trying to compile ESP32_GENERIC firmware? Error...
Here is what I did in total to create the environment, and attempting to complete the generic firmware image...
I tried the following, based on some google search results...
Then again tried to execute the 'make' but same error as noted above. Environment is Debian 13.4. Any assistance greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions