Memory usage explanation
Posted: Thu Aug 11, 2022 9:40 am
Hi all
I wonder how to understand the used memory after I have build my application.
As I understand there is a total of 520 K of RAM. 320 K can be used for data.
But the memory overview show that the DRAM region only is ~180 K?
I have configured a minimal system with basically only the FreeRTOS enabled (No BT, Ethernet, stacks etc.)
I get this memory overview when builded:
iram0_0 seg must be the SRAM0 (192 K - 64 K cache = 128 K)
dram0_0 seg must be SRAM1 and SRAM2. So a total of 320 K ?
Or does the configured ESP32 components take approx 140 K leaving 180 K for the region or how must it be understood?
If that is the case it is a lot. Does the FreeRTOS use that lot of memory?
The iram0_2 seg make no sense btw ??
Thomas
I wonder how to understand the used memory after I have build my application.
As I understand there is a total of 520 K of RAM. 320 K can be used for data.
But the memory overview show that the DRAM region only is ~180 K?
I have configured a minimal system with basically only the FreeRTOS enabled (No BT, Ethernet, stacks etc.)
I get this memory overview when builded:
Code: Select all
Memory region Used Size Region Size %age Used
iram0_0_seg: 45576 B 128 KB 34.77%
iram0_2_seg: 83894 B 3342304 B 2.51%
dram0_0_seg: 11296 B 180736 B 6.25%
drom0_0_seg: 28336 B 4194272 B 0.68%
dram0_0 seg must be SRAM1 and SRAM2. So a total of 320 K ?
Or does the configured ESP32 components take approx 140 K leaving 180 K for the region or how must it be understood?
If that is the case it is a lot. Does the FreeRTOS use that lot of memory?
The iram0_2 seg make no sense btw ??
Thomas