How to Relocate Code and Data from Flash to RAM Using HCS12x

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

How to Relocate Code and Data from Flash to RAM Using HCS12x

789 Views
zegeyealemu
Contributor III

Hi All,

 

Can someone help please as to how to configure the Linker Command File for the HCS12x device to relocate code and data to a RAM at runt time please?

 

The appnote I found does not pertain to the HCS12x device.

 

Thank you in advance for your help.

Labels (1)
0 Kudos
3 Replies

462 Views
kef2
Senior Contributor IV
0 Kudos

462 Views
iggi
NXP Employee
NXP Employee

Hi,

You may want to know about technical note TN 228 - Running Portion of the Application in RAM:
http://www.freescale.com/files/community_files/8BITCOMM/7695_3_TN228.pdf

There is clear description how it should be done.

Regards,

Ivan

0 Kudos

462 Views
zegeyealemu
Contributor III

Thanks Ivan. Will look into this.

I have also been told that I can directly link the code directly to RAM and that should work too (quite different from what I have been exposed before where you need a Load and Run sections). I am currently implementing this.

Thanks again for taking the time to help and I appreciate it very much.

Best regards,

Ziggy

0 Kudos