-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to build on ESP32_GENERIC-SPIRAM due to iram overflow #1
Comments
I tried to disable Ethernet support to reduce iram usage. A tip from a similar problem with iram overflow at https://github.com/orgs/micropython/discussions/14263#discussioncomment-9047807 Using sdkconfig.base of
Still runs out of iram, just by 500 bytes less:
I am not sure how to reduce iram usage further in the ESP32 build. Any ideas? Or perhaps there is something this module can do differently to reduce iram usage? |
Taanks for trying this out on the esp32 board. I am on holiday for the 10 days, so I will try to find out a solution then. Perhaps this helps. |
Thank you for the super quick response. I actually found a solution, documenting below. Enjoy your holiday! So esp-idf has a whole guide on reducing IRAM usage, at https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/performance/ram-usage.html So changing
This will probably be useful for others struggling with iram overflow on ESP32. |
Great news! Also thank you for the efforts and hints on this problem. I will put this in the documentation then. In the examples is a webcam can script that should run. You just need to change your wifi settings and open the esp32 ip (and probably lower the pixel frame, if you run out of psram) |
This issue is also dependent on the IDF-Version. I used 5.2.2 and I could compile without any problems. Don't know exactly, if Micropython (there are some IDF-version logics in the cmake Files) or esp-idf fixed such behavior. |
Hi, Could you share the configuration details for building When I compile using the following command:
I get this error:
And when I build using this command:
I encounter this error:
Could you help me resolve this issue?" |
@sheetaljain01 Hi. I have not tested building for ESP32 S3 yet - only regular ESP32. But the variant for S3 is called |
Hi Jon, |
Hi and thank you for this library.
I tried building it on ESP32, in order to run on a LilyGO TTGO T-Camera Mic ESP32. However, the build is failing due to running out of iram. I am using the lastest MicroPython release, v1.23.0 with esp-idf 5.0.4. Build is done with BOARD=ESP32_GENERIC BOARD_VARIANT=SPIRAM
Default build with mp_camera: `iram0_0_seg' overflowed by 1592 bytes
Default build without mp_camera - works. Unsure how many bytes are left in iram...
The text was updated successfully, but these errors were encountered: