idf.py size does not product the

MichaelS
Posts: 46
Joined: Mon Jul 08, 2024 12:08 am

idf.py size does not product the

Postby MichaelS » Tue Jul 23, 2024 12:41 am

I am wanting to view the "Memory Type Usage Summary" as described in https://docs.espressif.com/projects/esp ... -size.html

This is supposed to look like this:

Code: Untitled.txt Select all

Size Summary idf.py size
This output provides a summary of the statically-allocated memory for different memory types in the firmware binary:

$ idf.py size
Memory Type Usage Summary
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Memory Type/Section ┃ Used [bytes] ┃ Used [%] ┃ Remain [bytes] ┃ Total [bytes] ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ Flash Code │ 80666 │ 2.41 │ 3261638 │ 3342304 │
│ .text │ 80666 │ 2.41 │ │ │
│ IRAM │ 51835 │ 39.55 │ 79237 │ 131072 │
│ .text │ 50807 │ 38.76 │ │ │
│ .vectors │ 1027 │ 0.78 │ │ │
│ Flash Data │ 38224 │ 0.91 │ 4156048 │ 4194272 │
│ .rodata │ 37968 │ 0.91 │ │ │
│ .appdesc │ 256 │ 0.01 │ │ │
│ DRAM │ 11236 │ 6.22 │ 169500 │ 180736 │
│ .data │ 8988 │ 4.97 │ │ │
│ .bss │ 2248 │ 1.24 │ │ │
│ RTC SLOW │ 24 │ 0.29 │ 8168 │ 8192 │
│ .rtc_slow_reserved │ 24 │ 0.29 │ │ │
└───────────────────────┴──────────────┴──────────┴────────────────┴───────────────┘
Total image size: 179712 bytes (.bin may be padded larger)
But when I run idf.py size I only get the following:

Code: Untitled.txt Select all

Total sizes:
Used static DRAM: 38564 bytes ( 142172 remain, 21.3% used)
.data size: 15692 bytes
.bss size: 22872 bytes
Used static IRAM: 96414 bytes ( 34658 remain, 73.6% used)
.text size: 95387 bytes
.vectors size: 1027 bytes
Used Flash size : 1280471 bytes
.text: 1045331 bytes
.rodata: 234884 bytes
Total image size: 1392577 bytes (.bin may be padded larger)
Is it still possible to get the table documented above and if so, how?

Thanks

User avatar
Roland
Espressif staff
Espressif staff
Posts: 272
Joined: Tue Oct 09, 2018 10:28 am

Re: idf.py size does not product the

Postby Roland » Tue Jul 23, 2024 8:11 am

What is your ESP-IDF version? You are reading the documentation for the latest master branch (upcoming v5.4).

frhr
Espressif staff
Espressif staff
Posts: 12
Joined: Tue Jan 10, 2023 10:41 am

Re: idf.py size does not product the

Postby frhr » Tue Jul 23, 2024 8:36 am

Hello,
the new output format from the refactored version of esp-idf-size should be available by default starting with version 5.3. For older versions, you can switch to the refactored version by setting the ESP_IDF_SIZE_NG env. variable

Code: Select all

export ESP_IDF_SIZE_NG=1
Note that the refactored version is available since esp-idf-size 1.0.0.

Thank you

MichaelS
Posts: 46
Joined: Mon Jul 08, 2024 12:08 am

Re: idf.py size does not product the

Postby MichaelS » Fri Jul 26, 2024 6:06 am

Hi
I am using ver 5.2.2
I will have to upgrade at an opportune time.
Thanks

Who is online

Users browsing this forum: Google [Bot], Qwantbot and 1 guest