Memory usage explanation

ThomasBit
Posts: 10
Joined: Thu Jun 09, 2022 11:05 am

Memory usage explanation

Postby ThomasBit » 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:

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%
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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Memory usage explanation

Postby WiFive » Fri Aug 12, 2022 4:16 am


Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 105 guests