tools/idf_size: Fixed bug with wrong memory calculation

This commit is contained in:
simon.chupin
2021-12-08 19:48:25 +01:00
committed by Simon Chupin
parent fcce82ea53
commit d72fa4e62a
5 changed files with 502 additions and 650 deletions

View File

@@ -248,11 +248,10 @@ def load_map_data(map_file): # type: (TextIO) -> Tuple[str, Dict, Dict]
detected_chip = detect_target_chip(map_file) detected_chip = detect_target_chip(map_file)
sections = load_sections(map_file) sections = load_sections(map_file)
# Exclude the .dummy section, which usually means shared region among I/D buses # Exclude the dummy and .text_end section, which usually means shared region among I/D buses
dummy_keys = [key for key in sections if key.endswith(('.dummy'))] for key in list(sections.keys()):
if dummy_keys: if key.endswith(('dummy', '.text_end')):
sections.pop(*dummy_keys) sections.pop(key)
return detected_chip, segments, sections return detected_chip, segments, sections
@@ -582,8 +581,6 @@ class StructureForSummary(object):
r.dram_total = get_size(dram_filter) r.dram_total = get_size(dram_filter)
iram_filter = filter(in_iram, segments) iram_filter = filter(in_iram, segments)
r.iram_total = get_size(iram_filter) r.iram_total = get_size(iram_filter)
if r.diram_total == 0:
r.diram_total = r.dram_total + r.iram_total
def filter_in_section(sections, section_to_check): # type: (Iterable[MemRegions.Region], str) -> List[MemRegions.Region] def filter_in_section(sections, section_to_check): # type: (Iterable[MemRegions.Region], str) -> List[MemRegions.Region]
return list(filter(lambda x: LinkingSections.in_section(x.section, section_to_check), sections)) # type: ignore return list(filter(lambda x: LinkingSections.in_section(x.section, section_to_check), sections)) # type: ignore
@@ -591,8 +588,6 @@ class StructureForSummary(object):
dram_sections = list(filter(in_dram, sections)) dram_sections = list(filter(in_dram, sections))
iram_sections = list(filter(in_iram, sections)) iram_sections = list(filter(in_iram, sections))
diram_sections = list(filter(in_diram, sections)) diram_sections = list(filter(in_diram, sections))
if not diram_sections:
diram_sections = dram_sections + iram_sections
flash_sections = filter_in_section(sections, 'flash') flash_sections = filter_in_section(sections, 'flash')
dram_data_list = filter_in_section(dram_sections, 'data') dram_data_list = filter_in_section(dram_sections, 'data')

View File

@@ -8,15 +8,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used)
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used)
.text size: 37908 bytes .text size: 37908 bytes
.vectors size: 1024 bytes .vectors size: 1024 bytes
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used)
.data size: 9324 bytes
.bss size: 8296 bytes
.text size: 37908 bytes
.vectors size: 1024 bytes
Used Flash size : 186524 bytes Used Flash size : 186524 bytes
.text : 146944 bytes .text : 146944 bytes
.rodata : 39580 bytes .rodata : 39580 bytes
Total image size: 283036 bytes (.bin may be padded larger) Total image size: 234780 bytes (.bin may be padded larger)
*** ***
Running idf_size.py on bootloader... Running idf_size.py on bootloader...
@@ -27,12 +22,7 @@ Used static DRAM: 7212 bytes ( 58324 remain, 11.0% used)
.rodata size: 7160 bytes .rodata size: 7160 bytes
Used static IRAM: 18796 bytes ( 78484 remain, 19.3% used) Used static IRAM: 18796 bytes ( 78484 remain, 19.3% used)
.text size: 18796 bytes .text size: 18796 bytes
Used stat D/IRAM: 26008 bytes ( 136808 remain, 16.0% used) Total image size: 25960 bytes (.bin may be padded larger)
.data size: 4 bytes
.bss size: 48 bytes
.text size: 18796 bytes
.rodata size: 7160 bytes
Total image size: 51920 bytes (.bin may be padded larger)
*** ***
Running idf_size.py --archives... Running idf_size.py --archives...
@@ -43,15 +33,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used)
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used)
.text size: 37908 bytes .text size: 37908 bytes
.vectors size: 1024 bytes .vectors size: 1024 bytes
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used)
.data size: 9324 bytes
.bss size: 8296 bytes
.text size: 37908 bytes
.vectors size: 1024 bytes
Used Flash size : 186524 bytes Used Flash size : 186524 bytes
.text : 146944 bytes .text : 146944 bytes
.rodata : 39580 bytes .rodata : 39580 bytes
Total image size: 283036 bytes (.bin may be padded larger) Total image size: 234780 bytes (.bin may be padded larger)
Per-archive contributions to ELF file: Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
liblwip.a 14 3751 0 0 3765 66978 13936 80928 liblwip.a 14 3751 0 0 3765 66978 13936 80928
@@ -102,15 +87,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used)
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used)
.text size: 37908 bytes .text size: 37908 bytes
.vectors size: 1024 bytes .vectors size: 1024 bytes
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used)
.data size: 9324 bytes
.bss size: 8296 bytes
.text size: 37908 bytes
.vectors size: 1024 bytes
Used Flash size : 186524 bytes Used Flash size : 186524 bytes
.text : 146944 bytes .text : 146944 bytes
.rodata : 39580 bytes .rodata : 39580 bytes
Total image size: 283036 bytes (.bin may be padded larger) Total image size: 234780 bytes (.bin may be padded larger)
Per-file contributions to ELF file: Per-file contributions to ELF file:
Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
lib_a-vfprintf.o 0 0 0 0 0 14193 704 14897 lib_a-vfprintf.o 0 0 0 0 0 14193 704 14897
@@ -404,15 +384,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used)
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used)
.text size: 37908 bytes .text size: 37908 bytes
.vectors size: 1024 bytes .vectors size: 1024 bytes
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used)
.data size: 9324 bytes
.bss size: 8296 bytes
.text size: 37908 bytes
.vectors size: 1024 bytes
Used Flash size : 186524 bytes Used Flash size : 186524 bytes
.text : 146944 bytes .text : 146944 bytes
.rodata : 39580 bytes .rodata : 39580 bytes
Total image size: 283036 bytes (.bin may be padded larger) Total image size: 234780 bytes (.bin may be padded larger)
Symbols within the archive: libdriver.a (Not all symbols may be reported) Symbols within the archive: libdriver.a (Not all symbols may be reported)
@@ -487,16 +462,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 7212
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total)
.text size: 37908 bytes 18796 +19112 .text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024 .vectors size: 1024 bytes 0 +1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 26008 +30544 (+118448 remain, +148992 total)
.data size: 9324 bytes 4 +9320
.bss size: 8296 bytes 48 +8248
.text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024
.rodata size: 0 bytes 7160 -7160
Used Flash size : 186524 bytes 0 +186524 Used Flash size : 186524 bytes 0 +186524
.text : 146944 bytes 0 +146944 .text : 146944 bytes 0 +146944
.rodata : 39580 bytes 0 +39580 .rodata : 39580 bytes 0 +39580
Total image size: 283036 bytes (.bin may be padded larger) 51920 +231116 Total image size: 234780 bytes (.bin may be padded larger) 25960 +208820
*** ***
Running idf_size.py diff with itself... Running idf_size.py diff with itself...
@@ -510,15 +479,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 17620
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total)
.text size: 37908 bytes 37908 .text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024 .vectors size: 1024 bytes 1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 56552 ( +0 remain, +0 total)
.data size: 9324 bytes 9324
.bss size: 8296 bytes 8296
.text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024
Used Flash size : 186524 bytes 186524 Used Flash size : 186524 bytes 186524
.text : 146944 bytes 146944 .text : 146944 bytes 146944
.rodata : 39580 bytes 39580 .rodata : 39580 bytes 39580
Total image size: 283036 bytes (.bin may be padded larger) 283036 Total image size: 234780 bytes (.bin may be padded larger) 234780
*** ***
Running idf_size.py diff with another app... Running idf_size.py diff with another app...
@@ -529,18 +493,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total) Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total)
.data size: 9324 bytes 8580 +744 .data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272 .bss size: 8296 bytes 2024 +6272
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38959 -27 ( +27 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38956 -24 ( +24 remain, +0 total)
.text size: 37908 bytes 37932 -24 .text size: 37908 bytes 37929 -21
.vectors size: 1024 bytes 1027 -3
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 49563 +6989 ( -6989 remain, +0 total)
.data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272
.text size: 37908 bytes 37932 -24
.vectors size: 1024 bytes 1027 -3 .vectors size: 1024 bytes 1027 -3
Used Flash size : 186524 bytes 99551 +86973 Used Flash size : 186524 bytes 99551 +86973
.text : 146944 bytes 77191 +69753 .text : 146944 bytes 77191 +69753
.rodata : 39580 bytes 22360 +17220 .rodata : 39580 bytes 22360 +17220
Total image size: 283036 bytes (.bin may be padded larger) 194629 +88407 Total image size: 234780 bytes (.bin may be padded larger) 147087 +87693
*** ***
Running idf_size.py diff with app in reverse order... Running idf_size.py diff with app in reverse order...
@@ -551,18 +510,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total) Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total)
.data size: 8580 bytes 9324 -744 .data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272 .bss size: 2024 bytes 8296 -6272
Used static IRAM: 38959 bytes ( 92113 remain, 29.7% used) 38932 +27 ( -27 remain, +0 total) Used static IRAM: 38956 bytes ( 92116 remain, 29.7% used) 38932 +24 ( -24 remain, +0 total)
.text size: 37932 bytes 37908 +24 .text size: 37929 bytes 37908 +21
.vectors size: 1027 bytes 1024 +3
Used stat D/IRAM: 49563 bytes ( 262245 remain, 15.9% used) 56552 -6989 ( +6989 remain, +0 total)
.data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272
.text size: 37932 bytes 37908 +24
.vectors size: 1027 bytes 1024 +3 .vectors size: 1027 bytes 1024 +3
Used Flash size : 99551 bytes 186524 -86973 Used Flash size : 99551 bytes 186524 -86973
.text : 77191 bytes 146944 -69753 .text : 77191 bytes 146944 -69753
.rodata : 22360 bytes 39580 -17220 .rodata : 22360 bytes 39580 -17220
Total image size: 194629 bytes (.bin may be padded larger) 283036 -88407 Total image size: 147087 bytes (.bin may be padded larger) 234780 -87693
*** ***
Running idf_size.py diff --archives with bootloader... Running idf_size.py diff --archives with bootloader...
@@ -577,16 +531,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 7212
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total)
.text size: 37908 bytes 18796 +19112 .text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024 .vectors size: 1024 bytes 0 +1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 26008 +30544 (+118448 remain, +148992 total)
.data size: 9324 bytes 4 +9320
.bss size: 8296 bytes 48 +8248
.text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024
.rodata size: 0 bytes 7160 -7160
Used Flash size : 186524 bytes 0 +186524 Used Flash size : 186524 bytes 0 +186524
.text : 146944 bytes 0 +146944 .text : 146944 bytes 0 +146944
.rodata : 39580 bytes 0 +39580 .rodata : 39580 bytes 0 +39580
Total image size: 283036 bytes (.bin may be padded larger) 51920 +231116 Total image size: 234780 bytes (.bin may be padded larger) 25960 +208820
Per-archive contributions to ELF file: Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss & 0.rodata IRAM .text & 0.text & 0.vectors & _loader.text ram_st_total Flash .text & .rodata flash_total Archive File DRAM .data & 0.bss & 0.rodata IRAM .text & 0.text & 0.vectors & _loader.text ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -648,15 +596,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 17620
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total)
.text size: 37908 bytes 37908 .text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024 .vectors size: 1024 bytes 1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 56552 ( +0 remain, +0 total)
.data size: 9324 bytes 9324
.bss size: 8296 bytes 8296
.text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024
Used Flash size : 186524 bytes 186524 Used Flash size : 186524 bytes 186524
.text : 146944 bytes 146944 .text : 146944 bytes 146944
.rodata : 39580 bytes 39580 .rodata : 39580 bytes 39580
Total image size: 283036 bytes (.bin may be padded larger) 283036 Total image size: 234780 bytes (.bin may be padded larger) 234780
Per-archive contributions to ELF file: Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -709,18 +652,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total) Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total)
.data size: 9324 bytes 8580 +744 .data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272 .bss size: 8296 bytes 2024 +6272
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38959 -27 ( +27 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38956 -24 ( +24 remain, +0 total)
.text size: 37908 bytes 37932 -24 .text size: 37908 bytes 37929 -21
.vectors size: 1024 bytes 1027 -3
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 49563 +6989 ( -6989 remain, +0 total)
.data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272
.text size: 37908 bytes 37932 -24
.vectors size: 1024 bytes 1027 -3 .vectors size: 1024 bytes 1027 -3
Used Flash size : 186524 bytes 99551 +86973 Used Flash size : 186524 bytes 99551 +86973
.text : 146944 bytes 77191 +69753 .text : 146944 bytes 77191 +69753
.rodata : 39580 bytes 22360 +17220 .rodata : 39580 bytes 22360 +17220
Total image size: 283036 bytes (.bin may be padded larger) 194629 +88407 Total image size: 234780 bytes (.bin may be padded larger) 147087 +87693
Per-archive contributions to ELF file: Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -785,18 +723,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total) Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total)
.data size: 8580 bytes 9324 -744 .data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272 .bss size: 2024 bytes 8296 -6272
Used static IRAM: 38959 bytes ( 92113 remain, 29.7% used) 38932 +27 ( -27 remain, +0 total) Used static IRAM: 38956 bytes ( 92116 remain, 29.7% used) 38932 +24 ( -24 remain, +0 total)
.text size: 37932 bytes 37908 +24 .text size: 37929 bytes 37908 +21
.vectors size: 1027 bytes 1024 +3
Used stat D/IRAM: 49563 bytes ( 262245 remain, 15.9% used) 56552 -6989 ( +6989 remain, +0 total)
.data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272
.text size: 37932 bytes 37908 +24
.vectors size: 1027 bytes 1024 +3 .vectors size: 1027 bytes 1024 +3
Used Flash size : 99551 bytes 186524 -86973 Used Flash size : 99551 bytes 186524 -86973
.text : 77191 bytes 146944 -69753 .text : 77191 bytes 146944 -69753
.rodata : 22360 bytes 39580 -17220 .rodata : 22360 bytes 39580 -17220
Total image size: 194629 bytes (.bin may be padded larger) 283036 -88407 Total image size: 147087 bytes (.bin may be padded larger) 234780 -87693
Per-archive contributions to ELF file: Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -865,16 +798,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 7212
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total)
.text size: 37908 bytes 18796 +19112 .text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024 .vectors size: 1024 bytes 0 +1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 26008 +30544 (+118448 remain, +148992 total)
.data size: 9324 bytes 4 +9320
.bss size: 8296 bytes 48 +8248
.text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024
.rodata size: 0 bytes 7160 -7160
Used Flash size : 186524 bytes 0 +186524 Used Flash size : 186524 bytes 0 +186524
.text : 146944 bytes 0 +146944 .text : 146944 bytes 0 +146944
.rodata : 39580 bytes 0 +39580 .rodata : 39580 bytes 0 +39580
Total image size: 283036 bytes (.bin may be padded larger) 51920 +231116 Total image size: 234780 bytes (.bin may be padded larger) 25960 +208820
Per-file contributions to ELF file: Per-file contributions to ELF file:
Object File DRAM .data & 0.bss & 0.rodata IRAM .text & 0.text & 0.vectors & _loader.text ram_st_total Flash .text & .rodata flash_total Object File DRAM .data & 0.bss & 0.rodata IRAM .text & 0.text & 0.vectors & _loader.text ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -1215,15 +1142,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 17620
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total)
.text size: 37908 bytes 37908 .text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024 .vectors size: 1024 bytes 1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 56552 ( +0 remain, +0 total)
.data size: 9324 bytes 9324
.bss size: 8296 bytes 8296
.text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024
Used Flash size : 186524 bytes 186524 Used Flash size : 186524 bytes 186524
.text : 146944 bytes 146944 .text : 146944 bytes 146944
.rodata : 39580 bytes 39580 .rodata : 39580 bytes 39580
Total image size: 283036 bytes (.bin may be padded larger) 283036 Total image size: 234780 bytes (.bin may be padded larger) 234780
Per-file contributions to ELF file: Per-file contributions to ELF file:
Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -1519,18 +1441,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total) Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total)
.data size: 9324 bytes 8580 +744 .data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272 .bss size: 8296 bytes 2024 +6272
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38959 -27 ( +27 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38956 -24 ( +24 remain, +0 total)
.text size: 37908 bytes 37932 -24 .text size: 37908 bytes 37929 -21
.vectors size: 1024 bytes 1027 -3
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 49563 +6989 ( -6989 remain, +0 total)
.data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272
.text size: 37908 bytes 37932 -24
.vectors size: 1024 bytes 1027 -3 .vectors size: 1024 bytes 1027 -3
Used Flash size : 186524 bytes 99551 +86973 Used Flash size : 186524 bytes 99551 +86973
.text : 146944 bytes 77191 +69753 .text : 146944 bytes 77191 +69753
.rodata : 39580 bytes 22360 +17220 .rodata : 39580 bytes 22360 +17220
Total image size: 283036 bytes (.bin may be padded larger) 194629 +88407 Total image size: 234780 bytes (.bin may be padded larger) 147087 +87693
Per-file contributions to ELF file: Per-file contributions to ELF file:
Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -2013,18 +1930,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total) Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total)
.data size: 8580 bytes 9324 -744 .data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272 .bss size: 2024 bytes 8296 -6272
Used static IRAM: 38959 bytes ( 92113 remain, 29.7% used) 38932 +27 ( -27 remain, +0 total) Used static IRAM: 38956 bytes ( 92116 remain, 29.7% used) 38932 +24 ( -24 remain, +0 total)
.text size: 37932 bytes 37908 +24 .text size: 37929 bytes 37908 +21
.vectors size: 1027 bytes 1024 +3
Used stat D/IRAM: 49563 bytes ( 262245 remain, 15.9% used) 56552 -6989 ( +6989 remain, +0 total)
.data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272
.text size: 37932 bytes 37908 +24
.vectors size: 1027 bytes 1024 +3 .vectors size: 1027 bytes 1024 +3
Used Flash size : 99551 bytes 186524 -86973 Used Flash size : 99551 bytes 186524 -86973
.text : 77191 bytes 146944 -69753 .text : 77191 bytes 146944 -69753
.rodata : 22360 bytes 39580 -17220 .rodata : 22360 bytes 39580 -17220
Total image size: 194629 bytes (.bin may be padded larger) 283036 -88407 Total image size: 147087 bytes (.bin may be padded larger) 234780 -87693
Per-file contributions to ELF file: Per-file contributions to ELF file:
Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R> | <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>| <C>| <R>|<C>-<R>
@@ -2511,16 +2423,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 7212
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total)
.text size: 37908 bytes 18796 +19112 .text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024 .vectors size: 1024 bytes 0 +1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 26008 +30544 (+118448 remain, +148992 total)
.data size: 9324 bytes 4 +9320
.bss size: 8296 bytes 48 +8248
.text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024
.rodata size: 0 bytes 7160 -7160
Used Flash size : 186524 bytes 0 +186524 Used Flash size : 186524 bytes 0 +186524
.text : 146944 bytes 0 +146944 .text : 146944 bytes 0 +146944
.rodata : 39580 bytes 0 +39580 .rodata : 39580 bytes 0 +39580
Total image size: 283036 bytes (.bin may be padded larger) 51920 +231116 Total image size: 234780 bytes (.bin may be padded larger) 25960 +208820
Symbols within the archive: libdriver.a (Not all symbols may be reported) Symbols within the archive: libdriver.a (Not all symbols may be reported)
@@ -2604,16 +2510,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 7212
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 18796 +20136 ( +13656 remain, +33792 total)
.text size: 37908 bytes 18796 +19112 .text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024 .vectors size: 1024 bytes 0 +1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 26008 +30544 (+118448 remain, +148992 total)
.data size: 9324 bytes 4 +9320
.bss size: 8296 bytes 48 +8248
.text size: 37908 bytes 18796 +19112
.vectors size: 1024 bytes 0 +1024
.rodata size: 0 bytes 7160 -7160
Used Flash size : 186524 bytes 0 +186524 Used Flash size : 186524 bytes 0 +186524
.text : 146944 bytes 0 +146944 .text : 146944 bytes 0 +146944
.rodata : 39580 bytes 0 +39580 .rodata : 39580 bytes 0 +39580
Total image size: 283036 bytes (.bin may be padded larger) 51920 +231116 Total image size: 234780 bytes (.bin may be padded larger) 25960 +208820
Symbols within the archive: libc.a (Not all symbols may be reported) Symbols within the archive: libc.a (Not all symbols may be reported)
@@ -2675,15 +2575,10 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 17620
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38932 ( +0 remain, +0 total)
.text size: 37908 bytes 37908 .text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024 .vectors size: 1024 bytes 1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 56552 ( +0 remain, +0 total)
.data size: 9324 bytes 9324
.bss size: 8296 bytes 8296
.text size: 37908 bytes 37908
.vectors size: 1024 bytes 1024
Used Flash size : 186524 bytes 186524 Used Flash size : 186524 bytes 186524
.text : 146944 bytes 146944 .text : 146944 bytes 146944
.rodata : 39580 bytes 39580 .rodata : 39580 bytes 39580
Total image size: 283036 bytes (.bin may be padded larger) 283036 Total image size: 234780 bytes (.bin may be padded larger) 234780
Symbols within the archive: libdriver.a (Not all symbols may be reported) Symbols within the archive: libdriver.a (Not all symbols may be reported)
@@ -2754,18 +2649,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total) Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total)
.data size: 9324 bytes 8580 +744 .data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272 .bss size: 8296 bytes 2024 +6272
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38959 -27 ( +27 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38956 -24 ( +24 remain, +0 total)
.text size: 37908 bytes 37932 -24 .text size: 37908 bytes 37929 -21
.vectors size: 1024 bytes 1027 -3
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 49563 +6989 ( -6989 remain, +0 total)
.data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272
.text size: 37908 bytes 37932 -24
.vectors size: 1024 bytes 1027 -3 .vectors size: 1024 bytes 1027 -3
Used Flash size : 186524 bytes 99551 +86973 Used Flash size : 186524 bytes 99551 +86973
.text : 146944 bytes 77191 +69753 .text : 146944 bytes 77191 +69753
.rodata : 39580 bytes 22360 +17220 .rodata : 39580 bytes 22360 +17220
Total image size: 283036 bytes (.bin may be padded larger) 194629 +88407 Total image size: 234780 bytes (.bin may be padded larger) 147087 +87693
Symbols within the archive: libdriver.a (Not all symbols may be reported) Symbols within the archive: libdriver.a (Not all symbols may be reported)
@@ -2874,9 +2764,6 @@ Section total: 961 4272
.iram0.text <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE> .iram0.text <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0 Section total: 0 0
.iram0.text_end <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0
.iram0.vectors <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE> .iram0.vectors <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0 Section total: 0 0
@@ -2904,18 +2791,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total) Used static DRAM: 10604 bytes ( 170132 remain, 5.9% used) 17620 -7016 ( +7016 remain, +0 total)
.data size: 8580 bytes 9324 -744 .data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272 .bss size: 2024 bytes 8296 -6272
Used static IRAM: 38959 bytes ( 92113 remain, 29.7% used) 38932 +27 ( -27 remain, +0 total) Used static IRAM: 38956 bytes ( 92116 remain, 29.7% used) 38932 +24 ( -24 remain, +0 total)
.text size: 37932 bytes 37908 +24 .text size: 37929 bytes 37908 +21
.vectors size: 1027 bytes 1024 +3
Used stat D/IRAM: 49563 bytes ( 262245 remain, 15.9% used) 56552 -6989 ( +6989 remain, +0 total)
.data size: 8580 bytes 9324 -744
.bss size: 2024 bytes 8296 -6272
.text size: 37932 bytes 37908 +24
.vectors size: 1027 bytes 1024 +3 .vectors size: 1027 bytes 1024 +3
Used Flash size : 99551 bytes 186524 -86973 Used Flash size : 99551 bytes 186524 -86973
.text : 77191 bytes 146944 -69753 .text : 77191 bytes 146944 -69753
.rodata : 22360 bytes 39580 -17220 .rodata : 22360 bytes 39580 -17220
Total image size: 194629 bytes (.bin may be padded larger) 283036 -88407 Total image size: 147087 bytes (.bin may be padded larger) 234780 -87693
Symbols within the archive: libdriver.a (Not all symbols may be reported) Symbols within the archive: libdriver.a (Not all symbols may be reported)
@@ -3024,9 +2906,6 @@ Section total: 4272 961
.iram0.text <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE> .iram0.text <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0 Section total: 0 0
.iram0.text_end <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0
.iram0.vectors <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE> .iram0.vectors <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0 Section total: 0 0
@@ -3054,18 +2933,13 @@ Total sizes of <CURRENT>: <REFERENCE>
Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total) Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 10604 +7016 ( -7016 remain, +0 total)
.data size: 9324 bytes 8580 +744 .data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272 .bss size: 8296 bytes 2024 +6272
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38959 -27 ( +27 remain, +0 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 38956 -24 ( +24 remain, +0 total)
.text size: 37908 bytes 37932 -24 .text size: 37908 bytes 37929 -21
.vectors size: 1024 bytes 1027 -3
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 49563 +6989 ( -6989 remain, +0 total)
.data size: 9324 bytes 8580 +744
.bss size: 8296 bytes 2024 +6272
.text size: 37908 bytes 37932 -24
.vectors size: 1024 bytes 1027 -3 .vectors size: 1024 bytes 1027 -3
Used Flash size : 186524 bytes 99551 +86973 Used Flash size : 186524 bytes 99551 +86973
.text : 146944 bytes 77191 +69753 .text : 146944 bytes 77191 +69753
.rodata : 39580 bytes 22360 +17220 .rodata : 39580 bytes 22360 +17220
Total image size: 283036 bytes (.bin may be padded larger) 194629 +88407 Total image size: 234780 bytes (.bin may be padded larger) 147087 +87693
Symbols within the archive: libfreertos.a (Not all symbols may be reported) Symbols within the archive: libfreertos.a (Not all symbols may be reported)
@@ -3323,9 +3197,6 @@ Section total: 0 0
xt_unhandled_interrupt 26 26 xt_unhandled_interrupt 26 26
Section total: 12428 12459 -31 Section total: 12428 12459 -31
.iram0.text_end <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
Section total: 0 0
.iram0.vectors <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE> .iram0.vectors <CURRENT> <REFERENCE> <CURRENT> - <REFERENCE>
.DebugExceptionVector.text 6 6 .DebugExceptionVector.text 6 6
.DoubleExceptionVector.text 15 15 .DoubleExceptionVector.text 15 15
@@ -3357,28 +3228,28 @@ Section total: 0 0
*** ***
Running idf_size.py for esp32s2... Running idf_size.py for esp32s2...
Total sizes: Total sizes:
Used stat D/IRAM: 43023 bytes ( 153585 remain, 21.9% used) Used stat D/IRAM: 43020 bytes ( 153588 remain, 21.9% used)
.data size: 7152 bytes .data size: 7152 bytes
.bss size: 1936 bytes .bss size: 1936 bytes
.text size: 32908 bytes .text size: 32905 bytes
.vectors size: 1027 bytes .vectors size: 1027 bytes
Used Flash size : 93019 bytes Used Flash size : 93019 bytes
.text : 74439 bytes .text : 74439 bytes
.rodata : 18580 bytes .rodata : 18580 bytes
Total image size: 134106 bytes (.bin may be padded larger) Total image size: 134103 bytes (.bin may be padded larger)
*** ***
Running idf_size.py for esp32s2 (target autodetected)... Running idf_size.py for esp32s2 (target autodetected)...
Total sizes: Total sizes:
Used stat D/IRAM: 43023 bytes ( 153585 remain, 21.9% used) Used stat D/IRAM: 43020 bytes ( 153588 remain, 21.9% used)
.data size: 7152 bytes .data size: 7152 bytes
.bss size: 1936 bytes .bss size: 1936 bytes
.text size: 32908 bytes .text size: 32905 bytes
.vectors size: 1027 bytes .vectors size: 1027 bytes
Used Flash size : 93019 bytes Used Flash size : 93019 bytes
.text : 74439 bytes .text : 74439 bytes
.rodata : 18580 bytes .rodata : 18580 bytes
Total image size: 134106 bytes (.bin may be padded larger) Total image size: 134103 bytes (.bin may be padded larger)
*** ***
Running idf_size.py on bootloader for esp32s2... Running idf_size.py on bootloader for esp32s2...
@@ -3403,15 +3274,15 @@ Total image size: 22305 bytes (.bin may be padded larger)
*** ***
Running idf_size.py --archives for esp32s2... Running idf_size.py --archives for esp32s2...
Total sizes: Total sizes:
Used stat D/IRAM: 43023 bytes ( 153585 remain, 21.9% used) Used stat D/IRAM: 43020 bytes ( 153588 remain, 21.9% used)
.data size: 7152 bytes .data size: 7152 bytes
.bss size: 1936 bytes .bss size: 1936 bytes
.text size: 32908 bytes .text size: 32905 bytes
.vectors size: 1027 bytes .vectors size: 1027 bytes
Used Flash size : 93019 bytes Used Flash size : 93019 bytes
.text : 74439 bytes .text : 74439 bytes
.rodata : 18580 bytes .rodata : 18580 bytes
Total image size: 134106 bytes (.bin may be padded larger) Total image size: 134103 bytes (.bin may be padded larger)
Per-archive contributions to ELF file: Per-archive contributions to ELF file:
Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Archive File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
libc.a 364 4 0 0 368 54964 3645 58973 libc.a 364 4 0 0 368 54964 3645 58973
@@ -3443,15 +3314,15 @@ Per-archive contributions to ELF file:
*** ***
Running idf_size.py --files for esp32s2... Running idf_size.py --files for esp32s2...
Total sizes: Total sizes:
Used stat D/IRAM: 43023 bytes ( 153585 remain, 21.9% used) Used stat D/IRAM: 43020 bytes ( 153588 remain, 21.9% used)
.data size: 7152 bytes .data size: 7152 bytes
.bss size: 1936 bytes .bss size: 1936 bytes
.text size: 32908 bytes .text size: 32905 bytes
.vectors size: 1027 bytes .vectors size: 1027 bytes
Used Flash size : 93019 bytes Used Flash size : 93019 bytes
.text : 74439 bytes .text : 74439 bytes
.rodata : 18580 bytes .rodata : 18580 bytes
Total image size: 134106 bytes (.bin may be padded larger) Total image size: 134103 bytes (.bin may be padded larger)
Per-file contributions to ELF file: Per-file contributions to ELF file:
Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total Object File DRAM .data & 0.bss IRAM0 .text & 0.vectors ram_st_total Flash .text & .rodata flash_total
lib_a-vfprintf.o 0 0 0 0 0 13681 700 14381 lib_a-vfprintf.o 0 0 0 0 0 13681 700 14381
@@ -3671,15 +3542,15 @@ bootloader_efuse_esp32s2 0 0 0 0 0
*** ***
Running idf_size.py --archive_details for esp32s2... Running idf_size.py --archive_details for esp32s2...
Total sizes: Total sizes:
Used stat D/IRAM: 43023 bytes ( 153585 remain, 21.9% used) Used stat D/IRAM: 43020 bytes ( 153588 remain, 21.9% used)
.data size: 7152 bytes .data size: 7152 bytes
.bss size: 1936 bytes .bss size: 1936 bytes
.text size: 32908 bytes .text size: 32905 bytes
.vectors size: 1027 bytes .vectors size: 1027 bytes
Used Flash size : 93019 bytes Used Flash size : 93019 bytes
.text : 74439 bytes .text : 74439 bytes
.rodata : 18580 bytes .rodata : 18580 bytes
Total image size: 134106 bytes (.bin may be padded larger) Total image size: 134103 bytes (.bin may be padded larger)
Symbols within the archive: libdriver.a (Not all symbols may be reported) Symbols within the archive: libdriver.a (Not all symbols may be reported)
@@ -3760,9 +3631,6 @@ Section total: 3216
Symbols from section: .iram0.text Symbols from section: .iram0.text
Section total: 0 Section total: 0
Symbols from section: .iram0.text_end
Section total: 0
Symbols from section: .iram0.vectors Symbols from section: .iram0.vectors
Section total: 0 Section total: 0
@@ -3794,15 +3662,15 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used) 0
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 0 +38932 ( +92140 remain, +131072 total) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) 0 +38932 ( +92140 remain, +131072 total)
.text size: 37908 bytes 0 +37908 .text size: 37908 bytes 0 +37908
.vectors size: 1024 bytes 0 +1024 .vectors size: 1024 bytes 0 +1024
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used) 43023 +13529 (+101671 remain, +115200 total) Used stat D/IRAM: 0 bytes ( 0 remain, 0.0% used) 43020 -43020 (-153588 remain, -196608 total)
.data size: 9324 bytes 7152 +2172 .data size: 0 bytes 7152 -7152
.bss size: 8296 bytes 1936 +6360 .bss size: 0 bytes 1936 -1936
.text size: 37908 bytes 32908 +5000 .text size: 0 bytes 32905 -32905
.vectors size: 1024 bytes 1027 -3 .vectors size: 0 bytes 1027 -1027
Used Flash size : 186524 bytes 93019 +93505 Used Flash size : 186524 bytes 93019 +93505
.text : 146944 bytes 74439 +72505 .text : 146944 bytes 74439 +72505
.rodata : 39580 bytes 18580 +21000 .rodata : 39580 bytes 18580 +21000
Total image size: 283036 bytes (.bin may be padded larger) 134106 +148930 Total image size: 234780 bytes (.bin may be padded larger) 134103 +100677
*** ***
Producing JSON output... Producing JSON output...
@@ -3822,21 +3690,21 @@ Producing JSON output...
"iram_total": 131072, "iram_total": 131072,
"used_iram_ratio": 0.297027587890625, "used_iram_ratio": 0.297027587890625,
"iram_remain": 92140, "iram_remain": 92140,
"diram_data": 9324, "diram_data": 0,
"diram_bss": 8296, "diram_bss": 0,
"diram_text": 37908, "diram_text": 0,
"diram_vectors": 1024, "diram_vectors": 0,
"diram_rodata": 0, "diram_rodata": 0,
"diram_other": 0, "diram_other": 0,
"diram_total": 311808, "diram_total": 0,
"used_diram": 56552, "used_diram": 0,
"used_diram_ratio": 0.18136802134646962, "used_diram_ratio": 0,
"diram_remain": 255256, "diram_remain": 0,
"flash_code": 146944, "flash_code": 146944,
"flash_rodata": 39580, "flash_rodata": 39580,
"flash_other": 0, "flash_other": 0,
"used_flash_non_ram": 186524, "used_flash_non_ram": 186524,
"total_size": 283036 "total_size": 234780
} }
{ {
"liblwip.a": { "liblwip.a": {
@@ -5598,21 +5466,21 @@ Producing JSON output...
"iram_total": 131072, "iram_total": 131072,
"used_iram_ratio": 0.297027587890625, "used_iram_ratio": 0.297027587890625,
"iram_remain": 92140, "iram_remain": 92140,
"diram_data": 9324, "diram_data": 0,
"diram_bss": 8296, "diram_bss": 0,
"diram_text": 37908, "diram_text": 0,
"diram_vectors": 1024, "diram_vectors": 0,
"diram_rodata": 0, "diram_rodata": 0,
"diram_other": 0, "diram_other": 0,
"diram_total": 311808, "diram_total": 0,
"used_diram": 56552, "used_diram": 0,
"used_diram_ratio": 0.18136802134646962, "used_diram_ratio": 0,
"diram_remain": 255256, "diram_remain": 0,
"flash_code": 146944, "flash_code": 146944,
"flash_rodata": 39580, "flash_rodata": 39580,
"flash_other": 0, "flash_other": 0,
"used_flash_non_ram": 186524, "used_flash_non_ram": 186524,
"total_size": 283036 "total_size": 234780
}, },
"reference": { "reference": {
"dram_data": 8580, "dram_data": 8580,
@@ -5624,27 +5492,27 @@ Producing JSON output...
"used_dram_ratio": 0.05867121104815864, "used_dram_ratio": 0.05867121104815864,
"dram_remain": 170132, "dram_remain": 170132,
"iram_vectors": 1027, "iram_vectors": 1027,
"iram_text": 37932, "iram_text": 37929,
"iram_other": 0, "iram_other": 0,
"used_iram": 38959, "used_iram": 38956,
"iram_total": 131072, "iram_total": 131072,
"used_iram_ratio": 0.29723358154296875, "used_iram_ratio": 0.297210693359375,
"iram_remain": 92113, "iram_remain": 92116,
"diram_data": 8580, "diram_data": 0,
"diram_bss": 2024, "diram_bss": 0,
"diram_text": 37932, "diram_text": 0,
"diram_vectors": 1027, "diram_vectors": 0,
"diram_rodata": 0, "diram_rodata": 0,
"diram_other": 0, "diram_other": 0,
"diram_total": 311808, "diram_total": 0,
"used_diram": 49563, "used_diram": 0,
"used_diram_ratio": 0.1589535868226601, "used_diram_ratio": 0,
"diram_remain": 262245, "diram_remain": 0,
"flash_code": 77191, "flash_code": 77191,
"flash_rodata": 22360, "flash_rodata": 22360,
"flash_other": 0, "flash_other": 0,
"used_flash_non_ram": 99551, "used_flash_non_ram": 99551,
"total_size": 194629 "total_size": 147087
}, },
"diff": { "diff": {
"dram_data": 744, "dram_data": 744,
@@ -5656,27 +5524,27 @@ Producing JSON output...
"used_dram_ratio": 0.03881905099150142, "used_dram_ratio": 0.03881905099150142,
"dram_remain": -7016, "dram_remain": -7016,
"iram_vectors": -3, "iram_vectors": -3,
"iram_text": -24, "iram_text": -21,
"iram_other": 0, "iram_other": 0,
"used_iram": -27, "used_iram": -24,
"iram_total": 0, "iram_total": 0,
"used_iram_ratio": -0.00020599365234375, "used_iram_ratio": -0.00018310546875,
"iram_remain": 27, "iram_remain": 24,
"diram_data": 744, "diram_data": 0,
"diram_bss": 6272, "diram_bss": 0,
"diram_text": -24, "diram_text": 0,
"diram_vectors": -3, "diram_vectors": 0,
"diram_rodata": 0, "diram_rodata": 0,
"diram_other": 0, "diram_other": 0,
"diram_total": 0, "diram_total": 0,
"used_diram": 6989, "used_diram": 0,
"used_diram_ratio": 0.022414434523809534, "used_diram_ratio": 0,
"diram_remain": -6989, "diram_remain": 0,
"flash_code": 69753, "flash_code": 69753,
"flash_rodata": 17220, "flash_rodata": 17220,
"flash_other": 0, "flash_other": 0,
"used_flash_non_ram": 86973, "used_flash_non_ram": 86973,
"total_size": 88407 "total_size": 87693
} }
} }
{ {
@@ -11581,7 +11449,6 @@ Producing JSON output...
"uart_get_selectlock": 12 "uart_get_selectlock": 12
}, },
".iram0.text": {}, ".iram0.text": {},
".iram0.text_end": {},
".iram0.vectors": {}, ".iram0.vectors": {},
".noinit": {}, ".noinit": {},
".rtc.bss": {}, ".rtc.bss": {},
@@ -11689,7 +11556,6 @@ Producing JSON output...
"uart_wait_tx_done": -425 "uart_wait_tx_done": -425
}, },
".iram0.text": {}, ".iram0.text": {},
".iram0.text_end": {},
".iram0.vectors": {}, ".iram0.vectors": {},
".noinit": {}, ".noinit": {},
".rtc.bss": {}, ".rtc.bss": {},
@@ -11719,19 +11585,19 @@ Producing JSON output for esp32s2...
"iram_remain": 0, "iram_remain": 0,
"diram_data": 7152, "diram_data": 7152,
"diram_bss": 1936, "diram_bss": 1936,
"diram_text": 32908, "diram_text": 32905,
"diram_vectors": 1027, "diram_vectors": 1027,
"diram_rodata": 0, "diram_rodata": 0,
"diram_other": 0, "diram_other": 0,
"diram_total": 196608, "diram_total": 196608,
"used_diram": 43023, "used_diram": 43020,
"used_diram_ratio": 0.2188262939453125, "used_diram_ratio": 0.21881103515625,
"diram_remain": 153585, "diram_remain": 153588,
"flash_code": 74439, "flash_code": 74439,
"flash_rodata": 18580, "flash_rodata": 18580,
"flash_other": 0, "flash_other": 0,
"used_flash_non_ram": 93019, "used_flash_non_ram": 93019,
"total_size": 134106 "total_size": 134103
} }
{ {
"libc.a": { "libc.a": {
@@ -13077,7 +12943,6 @@ Producing JSON output for esp32s2...
"uart_get_selectlock": 12 "uart_get_selectlock": 12
}, },
".iram0.text": {}, ".iram0.text": {},
".iram0.text_end": {},
".iram0.vectors": {}, ".iram0.vectors": {},
".noinit": {}, ".noinit": {},
".rtc.bss": {}, ".rtc.bss": {},

View File

@@ -14,19 +14,19 @@
"iram_total": 131072, "iram_total": 131072,
"used_iram_ratio": 0.297027587890625, "used_iram_ratio": 0.297027587890625,
"iram_remain": 92140, "iram_remain": 92140,
"diram_data": 9324, "diram_data": 0,
"diram_bss": 8296, "diram_bss": 0,
"diram_text": 37908, "diram_text": 0,
"diram_vectors": 1024, "diram_vectors": 0,
"diram_rodata": 0, "diram_rodata": 0,
"diram_other": 0, "diram_other": 0,
"diram_total": 311808, "diram_total": 0,
"used_diram": 56552, "used_diram": 0,
"used_diram_ratio": 0.18136802134646962, "used_diram_ratio": 0,
"diram_remain": 255256, "diram_remain": 0,
"flash_code": 146944, "flash_code": 146944,
"flash_rodata": 39580, "flash_rodata": 39580,
"flash_other": 0, "flash_other": 0,
"used_flash_non_ram": 186524, "used_flash_non_ram": 186524,
"total_size": 283036 "total_size": 234780
} }

View File

@@ -5,12 +5,7 @@ Used static DRAM: 17620 bytes ( 163116 remain, 9.7% used)
Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used) Used static IRAM: 38932 bytes ( 92140 remain, 29.7% used)
.text size: 37908 bytes .text size: 37908 bytes
.vectors size: 1024 bytes .vectors size: 1024 bytes
Used stat D/IRAM: 56552 bytes ( 255256 remain, 18.1% used)
.data size: 9324 bytes
.bss size: 8296 bytes
.text size: 37908 bytes
.vectors size: 1024 bytes
Used Flash size : 186524 bytes Used Flash size : 186524 bytes
.text : 146944 bytes .text : 146944 bytes
.rodata : 39580 bytes .rodata : 39580 bytes
Total image size: 283036 bytes (.bin may be padded larger) Total image size: 234780 bytes (.bin may be padded larger)

View File

@@ -77,10 +77,7 @@
"(^\\.flash\\.(rodata|text|appdesc|rodata_noload)$)": { "(^\\.flash\\.(rodata|text|appdesc|rodata_noload)$)": {
"$ref": "#/$defs/archive_details" "$ref": "#/$defs/archive_details"
}, },
"(^\\.flash_rodata_dummy$)": { "(^\\.iram0\\.(text|vectors|bss|data)$)": {
"$ref": "#/$defs/archive_details"
},
"(^\\.iram0\\.(text|vectors|text_end|bss|data)$)": {
"$ref": "#/$defs/archive_details" "$ref": "#/$defs/archive_details"
}, },
"(^\\.rtc\\.(bss|data|text)$)": { "(^\\.rtc\\.(bss|data|text)$)": {