idf.py size does not product the

MichaelS
Posts: 29
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:
  1. Size Summary idf.py size
  2. This output provides a summary of the statically-allocated memory for different memory types in the firmware binary:
  3.  
  4. $ idf.py size
  5.                              Memory Type Usage Summary
  6. ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
  7. ┃ Memory Type/Section   ┃ Used [bytes] ┃ Used [%] ┃ Remain [bytes] ┃ Total [bytes] ┃
  8. ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
  9. │ Flash Code            │        80666 │     2.41 │        3261638 │       3342304 │
  10. │    .text              │        80666 │     2.41 │                │               │
  11. │ IRAM                  │        51835 │    39.55 │          79237 │        131072 │
  12. │    .text              │        50807 │    38.76 │                │               │
  13. │    .vectors           │         1027 │     0.78 │                │               │
  14. │ Flash Data            │        38224 │     0.91 │        4156048 │       4194272 │
  15. │    .rodata            │        37968 │     0.91 │                │               │
  16. │    .appdesc           │          256 │     0.01 │                │               │
  17. │ DRAM                  │        11236 │     6.22 │         169500 │        180736 │
  18. │    .data              │         8988 │     4.97 │                │               │
  19. │    .bss               │         2248 │     1.24 │                │               │
  20. │ RTC SLOW              │           24 │     0.29 │           8168 │          8192 │
  21. │    .rtc_slow_reserved │           24 │     0.29 │                │               │
  22. └───────────────────────┴──────────────┴──────────┴────────────────┴───────────────┘
  23. Total image size: 179712 bytes (.bin may be padded larger)
But when I run idf.py size I only get the following:
  1. Total sizes:
  2. Used static DRAM:   38564 bytes ( 142172 remain, 21.3% used)
  3.       .data size:   15692 bytes
  4.       .bss  size:   22872 bytes
  5. Used static IRAM:   96414 bytes (  34658 remain, 73.6% used)
  6.       .text size:   95387 bytes
  7.    .vectors size:    1027 bytes
  8. Used Flash size : 1280471 bytes
  9.            .text: 1045331 bytes
  10.          .rodata:  234884 bytes
  11. 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
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: idf.py size does not product the

Postby ESP_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).

ESP_frhr
Posts: 8
Joined: Tue Jan 10, 2023 10:41 am

Re: idf.py size does not product the

Postby ESP_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: 29
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: No registered users and 150 guests