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
Hello Ashley,
Does this DOC can help you ?
Relocating Code and Data Using the KDS GCC Linker File for Kinetis
especially this part :
Hope it helps
Have a great day,
Alice
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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...
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
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.
OK !