Re: STM32F103C8 and Fast Bootloader
Posted: Thu Jul 16, 2020 8:21 pm
No your one has only 64k.
I've built your sketch and it is huge.
I'm compiling with Generic_F103CB to be able to dump all object size.
Result is:
So you application + the BL: 78k so an overhead of 13k. Hard to decrease... Lot of libraries which use math and fonts.
In attachment the nm result.
To get the size of the functions (and objects with static storage duration):
The second column shows the size in decimal of function and objects.
The third column is the symbol type, you can find explanation here: https://sourceware.org/binutils/docs/binutils/nm.html
And below the the size of the sections:
The second column shows the size in decimal of the sections.
I've built your sketch and it is huge.
I'm compiling with Generic_F103CB to be able to dump all object size.
Result is:
Code: Select all
Sketch uses 69916 bytes (53%) of program storage space. Maximum is 131072 bytes.
Global variables use 3804 bytes (18%) of dynamic memory, leaving 16676 bytes for local variables. Maximum is 20480 bytes.
In attachment the nm result.
To get the size of the functions (and objects with static storage duration):
Code: Select all
arm-none-eabi-nm --print-size --size-sort --radix=d arduino_build_132202/STM32F103C8_ILI9341_TFT_eSPI.ino.elf
The third column is the symbol type, you can find explanation here: https://sourceware.org/binutils/docs/binutils/nm.html
And below the the size of the sections:
Code: Select all
arm-none-eabi-size -A -d arduino_build_132202/STM32F103C8_ILI9341_TFT_eSPI.ino.elf
Code: Select all
section size addr
.isr_vector 268 134225920
.text 46864 134226188
.rodata 22520 134273052
.ARM 8 134295572
.init_array 24 134295580
.fini_array 8 134295604
.data 532 536870912
.bss 3272 536871444
.noinit 0 536874716
._user_heap_stack 1540 536874716
.ARM.attributes 41 0
.comment 102 0
.debug_frame 2428 0
Total 77607