How to reduce DRAM usage or shift data from DRAM to IRAM/Flash on ESP32C3 (in Zephyr 4.2) #97646
Unanswered
pawankumar0099
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
IRAM and DRAM are the same memory on different addresses. PTAL: https://developer.espressif.com/blog/2024/08/esp32-memory-map-101/ You can use the RTC_RAM for extra memory. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@pawankumar0099 you could change heap pool size, net stack and ble buffers if using it. The same with mbedtls and so. Have you tried that? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m working on an ESP32C3 target, and I’m hitting a memory bottleneck where the DRAM region is almost full while other segments still have room.
Here’s the memory usage summary:
As you can see, dram0_0_seg is nearly full (99.58%), while IRAM and Flash still have plenty of space.
I’d like to ask:
Is it possible to reduce DRAM usage or move certain variables or buffers to IRAM or Flash in Zephyr?
Are there known Kconfig options, compiler/linker flags, or best practices to optimize memory layout for ESP32C3 in Zephyr?
I’ve already verified that many global/static buffers are taking space in DRAM, and I’m looking for efficient ways to offload them.
Thanks in advance for any guidance or optimization tips
Beta Was this translation helpful? Give feedback.
All reactions