-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Description of defect
By checking the memap tool for #12539
I found that the printed text and data sizes differ from the real sizes
Target(s) affected by this defect ?
all? Tested on BLUEPILL_F103C8 output, the difference appears for debug and release build:
> Executing task in folder blinky: mbed compile --build ../../BUILD/blinky/Debug --source . --source ../../mbed-os --source ../../custom_targets --profile debug <
[mbed] Working path "d:\Projects\Sn\LocalGit\Mbed5-Projects\apps\blinky" (program)
Building project blinky (BLUEPILL_F103C8, GCC_ARM)
Scan: blinky
Scan: mbed-os
Scan: custom_targets
Configuration error: Bootloader not supported on this target. ROM start not found in targets.json.
Configuration error: Bootloader not supported on this target. RAM start not found in targets.json.
Link: blinky
Elf2Bin: blinky
| Module | .text | .data | .bss |
|------------------|-----------|---------|---------|
| [fill] | 32(+0) | 4(+0) | 17(+0) |
| [lib]\c_nano.a | 4346(+0) | 100(+0) | 21(+0) |
| [lib]\gcc.a | 760(+0) | 0(+0) | 0(+0) |
| [lib]\misc | 180(+0) | 4(+0) | 28(+0) |
| main.o | 114(+0) | 0(+0) | 28(+0) |
| mbed-os\drivers | 208(+0) | 0(+0) | 0(+0) |
| mbed-os\hal | 1780(+0) | 4(+0) | 66(+0) |
| mbed-os\platform | 4586(+0) | 260(+0) | 424(+0) |
| mbed-os\targets | 7038(+0) | 4(+0) | 368(+0) |
| Subtotals | 19044(+0) | 376(+0) | 952(+0) |
Total Static RAM memory (data + bss): 1328(+0) bytes
Total Flash memory (text + data): 19420(+0) bytes
Image: ../../BUILD/blinky/Debug\blinky.bin
d:\Mbed5-Projects\BUILD\blinky\Debug>arm-none-eabi-size blinky.elf
text data bss dec hex filename
21616 392 952 22960 59b0 blinky.elf
d:\Mbed5-Projects\BUILD\blinky\Debug>dir blinky.bin
29.02.2020 15:21 22.008 blinky.bin
1 Datei(en), 22.008 Bytes
Toolchain(s) (name and version) displaying this defect ?
gcc 9.2.1
What version of Mbed-os are you using (tag or sha) ?
mbed-os master sha 06b22d9
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.2
How is this defect reproduced ?
compile any program, verify with 'arm-none-eabi-size output.elf' or size of output.bin
boraozgen