ESP32-S3, with 16MB or Flash, and 8MB of PSRAM.
When ESP-IDF v5.4 compiles it produces the summary below:
How does this summary showing 42MB of Total available Flash make sense?
No mention of PSRAM.
No mention of internal ROM
Memory Useage Summary?
Re: Memory Useage Summary?
Hi
- 4 474 552 - is not 42MB
- you have setup 32MB in sdkconfig, i think, because its what the total bytes show
- 4 474 552 - is not 42MB
- you have setup 32MB in sdkconfig, i think, because its what the total bytes show
Re: Memory Useage Summary?
I'm not talking about the resulting code size, but rather the total bytes available as shown in the right most column
Re: Memory Useage Summary?
Ok, thats fine. But its still 32MB, thats why i said this
Just check with idf.py menuconfig- you have setup 32MB in sdkconfig, i think, because its what the total bytes show
Re: Memory Useage Summary?
You are correct, idf.py size seems to be broken.
I thought it may be only on P4, but on S3 it shows very odd values too (maybe other models too)
with values
- flash size 4MB
- size shows flash code total bytes 8MB
- flash data total bytes 32MB
I thought it may be only on P4, but on S3 it shows very odd values too (maybe other models too)
Code: Select all
Memory Type Usage Summary
┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Memory Type/Section ┃ Used [bytes] ┃ Used [%] ┃ Remain [bytes] ┃ Total [bytes] ┃
┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ Flash Code │ 1312083 │ 15.64 │ 7076493 │ 8388576 │
│ .text │ 1312083 │ 15.64 │ │ │
│ Flash Data │ 376608 │ 1.12 │ 33177792 │ 33554400 │
│ .rodata │ 340736 │ 1.02 │ │ │
│ .bss │ 35616 │ 0.11 │ │ │
│ .appdesc │ 256 │ 0.0 │ │ │
│ DIRAM │ 262932 │ 76.93 │ 78828 │ 341760 │
│ .text │ 171807 │ 50.27 │ │ │
│ .bss │ 70936 │ 20.76 │ │ │
│ .data │ 19964 │ 5.84 │ │ │
│ IRAM │ 16384 │ 100.0 │ 0 │ 16384 │
│ .text │ 15356 │ 93.73 │ │ │
│ .vectors │ 1028 │ 6.27 │ │ │
│ RTC FAST │ 52 │ 0.63 │ 8140 │ 8192 │
│ .force_fast │ 28 │ 0.34 │ │ │
│ .rtc_reserved │ 24 │ 0.29 │ │ │
└─────────────────────┴──────────────┴──────────┴────────────────┴───────────────┘
Total image size: 1861258 bytes (.bin may be padded larger)
Code: Select all
CONFIG_IDF_TARGET="esp32s3"
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
- size shows flash code total bytes 8MB
- flash data total bytes 32MB
Who is online
Users browsing this forum: Applebot, Google [Bot], Semrush [Bot] and 5 guests