ESP32S3: Wrong total flash size in memory utilization report

Sysprogs forums Forums VisualGDB ESP32S3: Wrong total flash size in memory utilization report

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32727
    tonicode
    Participant

    Hello,

    when builing a project for ESP32S3 I do get wrong numbers for the total flash size in the memory utilization report:

    ——————- Memory utilization report ——————-
    Used DATA_FLASH: 692KB out of 60MB (1%)
    Used INSTR_FLASH: 551KB out of 128MB (0%)
    Used INSTR_RAM: 64KB out of 296KB (21%)
    Used DATA_RAM: 80KB out of 296KB (27%)
    Used Unknown: 16 bytes

    The report says 60MB for DATA_FLASH and 128MB for INSTR_FLASH, but the ESP32S3 only has 8MB flash.

    Is this a bug, or is there a way to adjust des displayed flash size in the memory utilization report?

    Thanks in advance,
    Toni

    #32729
    support
    Keymaster

    Hi,

    The memory layout and sizes are derived from the original linker scripts in ESP-IDF that reflect the maximum supported values. The actual number of bytes used by the data or code is computed directly from the ELF file and should be correct regardless of the maximum values. Either way, you can adjust the memory layouts for all supported devices by editing the <sysgcc>\esp32\esp32-bsp\BSP.xml file (see the SupportedMCUs/MCU/MemoryMap elements).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.