How to use Kinetis entire RAM?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Kinetis entire RAM?

288 Views
ashesman
Contributor III

Hi,

 

The linker file for K22 presents the RMA as two 64k blocks m_data and M_data_2.  Presumably this is to prevent the risk of locating across the RAM boundaries etc.  It locates the heap and stack into m_data_2 and bss into m_data.  But otherwise leaves m_data_2 as empty.

 

I need more RAM!  It seems odd to me not to have the unused space in m_data_2 used also for bss!

 

I tried to change the linker file and add a new section then locate my bigger arrays into this new section but I couldn't make it happen, instead the arrays just vanished from the map file!!!

 

Any advice on how to use all the available RAM?

 

Regards

 

Ashley

Labels (1)
0 Kudos
5 Replies

48 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Ashley,

Does this DOC can help you ?

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

especially this part :

pastedImage_2.png

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

48 Views
ashesman
Contributor III

Great, thanks that does help.  I had it all exactly like that but hadn't quite got the section definition right in the linker file...

0 Kudos

48 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Ashley,

Sorry i'm not very clealy about your these words " I had it all exactly like that but hadn't quite got the section definition right in the linker file" , could you please describe it clearly ? Or i don't know what can i do for you .

BR

ALice

0 Kudos

48 Views
ashesman
Contributor III

Sorry.  No problem.  It is all sorted now.  I was trying to say "I had it almost right but not quite..."  Thanks for your help.

0 Kudos

48 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

OK !

0 Kudos