Static IRAM overrun compiling esp32 with IDF 5.2 #14263
Replies: 5 comments 1 reply
-
I am having a similar issue trying to compile for UM_FEATHERS2.
|
Beta Was this translation helpful? Give feedback.
-
I saw this recently myself when testing IDF 5.2 for esp32c6 support. This new version is clearly larger and doesn't fit the current micropython build settings for the original esp32. I don't know if anyone is working on a fix for it yet, I don't have much time myself. Note IDF 5.0.4 is the only officially supported version currently. Basic 5.2 support was recently contributed but the official builds / releases are still with 5.0.4 until compatibility issues such as this are ironed out! |
Beta Was this translation helpful? Give feedback.
-
Removing the ethernet hardware support did it.
… On 8 Apr 2024, at 8:20, Andrew Leech ***@***.***> wrote:
I saw this recently myself when testing IDF 5.2 for esp32c6 support. This new version is clearly larger and doesn't fit the current micropython build settings for the original esp32.
—
Reply to this email directly, view it on GitHub <#14263 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AETR46KBJCUJQHKUMV2L533Y4ISJRAVCNFSM6AAAAABF3MWU76VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TANBRGE4TK>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
In ports/esp32, run idf.py menuconfig and look for
components -> Ethernet and disable spi ethernet support
You can then run idf.py build
… On 11 Apr 2024, at 16:17, Mike Alexander ***@***.***> wrote:
How do you remove the ethernet hardware support?
—
Reply to this email directly, view it on GitHub <#14263 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AETR46MHXUJTHFPBJTNUL23Y42EQFAVCNFSM6AAAAABF3MWU76VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAOBUGEZTK>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I got the same problem... Checkout to |
Beta Was this translation helpful? Give feedback.
-
I think I'm doing everything by the book, but still failing: by 80 bytes :-)
/Users/danny/esp/.espressif5.2/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: micropython.elf section
.iram0.text' will not fit in region
iram0_0_seg'/Users/danny/esp/.espressif5.2/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: IRAM0 segment data does not fit.
/Users/danny/esp/.espressif5.2/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: region `iram0_0_seg' overflowed by 80 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
HINT: The applications static IRAM usage is larger than the available IRAM size.
For more information on how to reduze IRAM usage run 'idf.py docs -sp api-guides/performance/ram-usage.html#optimizing-iram-usage'
ninja failed with exit code 1, output of the command is in the /Users/danny/micropython/micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stderr_output_28978 and /Users/danny/micropython/micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stdout_output_28978
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: *** [all] Error 1
danny@macmini esp32 % idf.py docs -sp api-guides/performance/ram-usage.html#optimizing-iram-usage
Executing action: docs
Opening documentation in the default browser:
https://docs.espressif.com/projects/esp-idf/en/v5.2/esp32/api-guides/performance/ram-usage.html#optimizing-iram-usage
Beta Was this translation helpful? Give feedback.
All reactions