Hi,
I have just installed the Kinetis design studio plus all the extras In need for an application using the MKL03Z32VFG4 chip.
I create a new template application which is ultimately a single file application (main.c) which just contains an endless loop.
However, I can't compile/build it because I get a linker error message:
region `m_data' overflowed by 208 bytes
I have checked it out and the culprit appears to be:
c:/freescale/kds_2.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.0/../../../../arm-none-eabi/lib\libg_s.a(lib_a-impure.o)
That library item uses +/- 0x298 bytes. In combination with the defined stack size of 0x300, the heap size of 0x200 and some other minor items I obviously exceed the 0x700 bytes available for the "m_data" region.
So there a few possible flaws in the example/template software.
- the library item may be unnecessary, in that case: how do I disable it ?
- The defined Stack and Heap sizes may be too large for a processor with only 2K of RAM.
Has anyone else noticed this and, more importantly, how to cure it?
Any help much appreciated.
Solved! Go to Solution.
Hi Filip,
Please review following Community post to see if it resolves your issue:
https://community.freescale.com/message/460987#460987
Regards,
David
Hi David,
It is not the direct answer but this is: How to install KL03 SDK support in KDS 1.1.1 and KDS 2.0.0
I did find out about it via the link you indicated though so thanks.
Best regards,
Filip
Hi Filip,
Please review following Community post to see if it resolves your issue:
https://community.freescale.com/message/460987#460987
Regards,
David