Hi Thom,
The size of the elf file contains much symbolic debugger information and isn't a direct correlation of the actual binary image size.
To find that out either look at the *.map file that is generated or in the project Properties do the following:
C/C++ Build->Settings->Toolchains now check Print size.
Output after compile will look like:
'Invoking: Cross ARM GNU Print Size'
arm-none-eabi-size --format=berkeley "test_twrk65f180m_pe.elf"
text data bss dec hex filename
11212 120 2212 13544 34e8 test_twrk65f180m_pe.elf
'Finished building: test_twrk65f180m_pe.siz'
' '
This does not contain the symbolic information.
Regards,
David