Write data to boot header located in addres 0x00FA0000

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

Write data to boot header located in addres 0x00FA0000

791 Views
刘宇刘
Contributor I

Hello

I know boot header is located in address 0x00FA0000. The picture shows boot header structure. Now I want to program boot header, so I want to know how to write data to the address 0x00FA0000, especially address offset 04h and 08h.

pastedImage_2.png

thanks,

best regards

0 Kudos
4 Replies

521 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You have 2 possibilities:

1. use debugger

2. application routine via flash driver.

Which one is your case?

Peter

0 Kudos

521 Views
刘宇刘
Contributor I

Hello,

Sorry, I don't know the distinguish between the two possibilities, can u state it in detail?

And I will state my case. I want to write code, application routine according to statement about register in datasheet of MPC5748G. PE, a debugger, that  is used to write code to code flash will write application routine to code flash of MPC5748G. Once MPC5748G execute the code in code flash, it write data that I set to the address 0x00FA0000,especially address offset 04h and 08h. And the data in the address 0x00FA0000,especially address offset 04h and 08h is what I set before if MPC5748G restart next time.

thanks

0 Kudos

521 Views
petervlna
NXP TechSupport
NXP TechSupport

Ok,

So you need to change flash content from application. For this purpose you can:

1. write your own flash driver

2. use NXP flash driver in link below:

http://www.nxp.com/assets/downloads/data/en/device-drivers/C55_JDP_SSD.exe 

Peter

0 Kudos

521 Views
刘宇刘
Contributor I

Hi Peter

 

Thank you for your help! I am now able to write data to the address 0x00FA0000 by changing code in mem.dl, sections.dl and flashrchw.c. Thanks again.

 

best regards

0 Kudos