Hello Mike,
"I think all the text and data should be save in flash at the beginning, "
-> YES, the "text +data" will be download into flash.
"The real space used in flash is 11364."
->Exactly, the size in flash is 0x2920 (0x2904+0x1c), not includes bss. As the blog of Erich said"As bss ends up in RAM". Also you can check your hex file to calculate the flash size used, the data in hex file is all the data will be download into flash.
How to generate S-record or hex file , you can refer to Erich another bolg:
S-Record Generation with gcc for ARM/Kinetis | MCU on Eclipse
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------