How to use Kinetis entire RAM?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use Kinetis entire RAM?

1,833件の閲覧回数
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,593件の閲覧回数
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,593件の閲覧回数
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,593件の閲覧回数
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,593件の閲覧回数
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,593件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

OK !

0 件の賞賛
返信