Why RAM overflow?

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

Why RAM overflow?

646 Views
jianfengzheng
Contributor II
freescale:
I use MK22FX512VLQ,also implement ProcessorExpert
when adreess of RAM exceed to 0x1FFFFFFF,Link fails,  the Console output says m_data overflowed, as following
160269_160269.jpgCatch(08-30-09-3(08-30-10-00-05).jpg
But I know the RAM space end-address is 0x20007FFF,Why is the space m_data_20000000 not available? 
Please tell me how to set Build Options of PE or others.  Thank you!
Further more, I modified the _estack to x20008000 in ProcessorExpert.ld, but it is no use。below is the cut of screen.
160270_160270.jpgCatchD37A(08-30-(08-30-10-00-05).jpg
Labels (1)
1 Reply

413 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello JianFeng,

- For some data section ".data" ".bss".. default save int the "m_data",

not the MEMORY of "m_data_20000000", you can relocate some data or code into

this MEMORY section , refer to this DOC :

Relocating Code and Data Using the KDS GCC Linker File for Kinetis 

- If you only want the project without error , not overflowed , simply, you can

merge the two section to one named "m_data" . Only need change here as the screenshot,

then generate code , build .

pastedImage_2.png

then you can see the linker file :

pastedImage_3.png

Hope it helps


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------