Memory utilization report

Sysprogs forums Forums VisualGDB Memory utilization report

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #36952
    mattia
    Participant

    Hello,

    I’m using an ESP32-S3 with 8 MB flash. When I compile, I get this report:

    ——————- Memory utilization report ——————-
    Used DATA_FLASH: 3441KB out of 60MB (5%) [+288]
    Used INSTR_FLASH: 1083KB out of 128MB (0%) [+796]
    Used INSTR_RAM: 107KB out of 296KB (36%)
    Used DATA_RAM: 186KB out of 296KB (63%) [+544]
    Used Unknown: 13KB

    Why such these data? I don’t have neither 60MB, nor 128 MB of Data or instrument flash. I also don’t have 296KB of INSTR_RAM or DATA_RAM. Why those data are so wrong? Can I correct them?

    Thanks,

    Mattia

    #36954
    support
    Keymaster

    It looks like your technical support period has expired. We would be happy to help you, however we would kindly ask you to renew your technical support on the following page first: https://sysprogs.com/splm/mykey

    #36956
    mattia
    Participant

    I have just renewed.

    #36959
    support
    Keymaster

    Hi,

    Thanks for renewing.

    For ESP-IDF, the memory layout is taken from the [toolchain directory]\esp32-bsp\bsp.xml file (for old-style toolchains) and from %VISUALGDB_DIR%\Rules\espidf.xml (consolidated toolchain), that was derived from the default linker scripts supplied by Espressif.

    You can edit the memory addresses and sizes by changing the MCUMemory elements (make sure you change it for the correct device).

    #37104
    mattia
    Participant

    Thanks,

    and in the STM32CubeMx project? I see that Memory utilization report is correctly displayed, but the flash is displayed as KB instead of B as I would prefer.

    Thanks,

    Mattia Berton

    #37106
    support
    Keymaster

    Hi,

    It should not be dependent on the project type. The size is always displayed in bytes for very small values, and then gets rounded to KB.

    #37302
    mattia
    Participant

    I have just upgraded to IDF 6.0.2, but now I have wrong value set:

    ——————- Memory utilization report ——————-
    Used DATA_FLASH: 0 bytes out of 189KB (0%)
    Used INSTR_FLASH: 92KB out of 3264KB (2%)
    Used DATA_RAM: 0 bytes out of 176KB (0%)
    Used INSTR_RAM: 0 bytes out of 128KB (0%)
    Used EXTERN_RAM: 0 bytes out of 4096KB (0%)
    Used RTC_DATA: 0 bytes out of 8192 bytes (0%)
    Used RTC_IRAM: 0 bytes out of 8192 bytes (0%)
    Used RTC_SLOW: 36 bytes out of 8168 bytes (0%)
    Used Unknown: 4951KB

    Why? All is in Unknown area.

    #37305
    support
    Keymaster

    Hi,

    We have rechecked it with the ESP-IDF 6.0.2 (default settings, default ESP32 device) and it worked just fine:

    ------------------- Memory utilization report -------------------
    Used DATA_FLASH: 27KB out of 4096KB (0%)
    Used INSTR_FLASH: 45KB out of 3264KB (1%)
    Used DATA_RAM: 12KB out of 176KB (6%)
    Used INSTR_RAM: 41KB out of 128KB (32%)
    Used EXTERN_RAM: 0 bytes out of 4096KB (0%)
    Used RTC_DATA: 0 bytes out of 8192 bytes (0%)
    Used RTC_IRAM: 0 bytes out of 8192 bytes (0%)
    Used RTC_SLOW: 40 bytes out of 8168 bytes (0%)
    Used Unknown: 24 bytes

    It could be something about that particular project that is causing the issue. Please consider reproducing it on a clean project created from scratch.

    #37306
    mattia
    Participant

    Can you please share your ESPIDF.xml?

    #37307
    support
    Keymaster

    Sure, here you go.

    Attachments:
    You must be logged in to view attached files.
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.