Hi Jack Xu
You are getting the "section .bss will not fit in region m_data" error. This error is caused when you have a large number of uninitialized data, which will be contained in RAM. You need to check the RAM size of your device (I don't remember it, I think is 16 KB) and then you need to keep your number of variable in the minimum in order to accomplish that `m_data' is NOT overflowed by 5192 bytes.
I recommend you to check the following link: https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/ Here he explains what is .bss and data size. After this you could check this general recommendations of how to work with SDK 2.0 and the size limitation: https://mcuoneclipse.com/2016/03/09/dealing-with-code-size-in-kinetis-sdk-v2-x-projects/
Also I recommend you to check these link and document, where another customer had a similar case and they explain how to manipulate linker file to work with the full available size:
RAM Usage with KDS+KSDK: report 20% used and region overflow
Relocating Code and Data Using the KDS GCC Linker File for Kinetis
Hope this information could help you, please tell me if you have additional questions of this
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------