Template application does not work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Template application does not work

Jump to solution
929 Views
filipdossche
Contributor III

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.

Labels (1)
Tags (2)
0 Kudos
1 Solution
613 Views
DavidS
NXP Employee
NXP Employee

Hi Filip,

Please review following Community post to see if it resolves your issue:

https://community.freescale.com/message/460987#460987

Regards,

David

View solution in original post

0 Kudos
2 Replies
613 Views
filipdossche
Contributor III

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

0 Kudos
614 Views
DavidS
NXP Employee
NXP Employee

Hi Filip,

Please review following Community post to see if it resolves your issue:

https://community.freescale.com/message/460987#460987

Regards,

David

0 Kudos