How to use Kinetis entire RAM?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use Kinetis entire RAM?

1,832 次查看
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

标签 (1)
0 项奖励
回复
5 回复数

1,592 次查看
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 项奖励
回复

1,592 次查看
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 项奖励
回复

1,592 次查看
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 项奖励
回复

1,592 次查看
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 项奖励
回复

1,592 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

OK !

0 项奖励
回复