how to copy rom to ram(mc9s12xep100)

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

how to copy rom to ram(mc9s12xep100)

1,391 Views
chenchenchen
Contributor II

I use chip of mc9s12xep100. I want to make a bootloader and I have some problem!!!  First, I use bootloader write some code of application to flash, and now I want to copy data from rom to ram,and jump to run this updated applicaiton.how to do?

Labels (1)
2 Replies

890 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

I do not have SW for XEP100 but attached examples could help you as an development platform. Do not forget the functions which are copied from flash to ram must be PIC code (position independent code) to avoid absolute jumps. Everything must be relative.

Moreover, there is an application note which provides you bootloader code. It is easier to go this way......

http://www.nxp.com/docs/en/application-note/AN4258.pdf 

http://www.nxp.com/docs/en/application-note-software/AN4258SW.zip 

Best regards,

Ladislav

890 Views
chenchenchen
Contributor II

Thanks for your documents. It is great help for me!

0 Kudos
Reply