S3 DRAM

steve-cp
Posts: 2
Joined: Wed Jul 20, 2022 9:57 pm

S3 DRAM

Postby steve-cp » Thu Sep 22, 2022 1:32 am

I'm looking to verify my findings about aviable DRAM in an IDF project.

I created a blink example for the S3 and compiled it, getting these sizes:

Code: Select all

Total sizes:
Used static IRAM:   56638 bytes ( 230082 remain, 19.8% used)
      .text size:   55611 bytes
   .vectors size:    1027 bytes
Used stat D/IRAM:   13229 bytes ( 121939 remain, 9.8% used)
      .data size:   10629 bytes
      .bss  size:    2600 bytes
Used Flash size :  136051 bytes
      .text     :  100899 bytes
      .rodata   :   34896 bytes
Total image size:  203318 bytes (.bin may be padded larger)
If I am reading this correctly, this means in practice the S3 has 13229 + 121939 = 135,168 bytes for an application's data RAM.

From the reference manual: "Internal SRAM 1 is a 384 KB, read-and-write memory space, addressed by the CPU through the data bus or instruction bus, in the same order, via the ranges described in Table 3-2."

How do I take as much as possible away from IRAM? When I follow this https://docs.espressif.com/projects/esp ... iram-usage I see the IRAM usage going down but the total DRAM available stays the same.

For example:

Code: Select all

Total sizes:
Used static IRAM:   47882 bytes ( 238838 remain, 16.7% used)
      .text size:   46855 bytes
   .vectors size:    1027 bytes
Used stat D/IRAM:   13229 bytes ( 121939 remain, 9.8% used)
      .data size:   10629 bytes
      .bss  size:    2600 bytes
Used Flash size :  145403 bytes
      .text     :  110251 bytes
      .rodata   :   34896 bytes
Total image size:  203914 bytes (.bin may be padded larger)
I'm now at 16.7% used because I set CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH. But nothing changed about DRAM.

Can I significantly get more DRAM? Say, a total of 300k?

Who is online

Users browsing this forum: Bing [Bot], burtrum and 94 guests