Hello
You need to know that the Code and Data size indicated in the .mcp window do not reflect the actual application code size.
These are code and data size before dead stripping (or worst case code size).
The linker performs dead stripping and only links used functions and variables to the application.
In order to get an idea of your real application code and data size you need to look into the .map file.
The section Memory Map at the end of the .map file indicates the real size of each sections in the application.
Size for .text+ .init indicated code size.
Size for .rodata indicates size of constants
Size of .data + .sdata + .bss + .sbss + .sdata2 + .sbss2 indicates size of variables.
CrasyCat