MPC5748G boot header F8C000h cannot erase

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

MPC5748G boot header F8C000h cannot erase

1,671件の閲覧回数
junehsiao
Contributor I

I previously flash a code which chose F8C000h as boot header.

However, I wanted to change the boot header to FA0000h, so I flash another code with boot header in FA0000h.

I expect F8C000h address will first be cleared automatically when I use multilink JTAG to burn code, but the result is I got 005A in the first half word in both F8C000h and FA0000h.

How to earse the boot header in F8C000h?

thanks

0 件の賞賛
返信
13 返答(返信)

1,648件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

unfortunately PEMicro plugin for S32DS is not able perform erase only. You can use PE Micro PPCNEXUS software which can be download on PE Micro pages. 

 

For erasing the 0xF8C000 memory space you need to select nxp_mpc5748g_1x32x32k_hsmcode.pcp programing algorithm. 

 

Other possibility is using this workaround - 

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-MPC5777C-Low-Mid-Flash-block-era...

add use the same algorithm:

jiri_kral_1-1685442084996.png

jiri_kral_0-1685443549767.png

 

jiri_kral_0-1685441820619.png

 

0 件の賞賛
返信

1,642件の閲覧回数
junehsiao
Contributor I

Hi, 

For the PE Micro PPCNEXUS software, I got this error

PaddyChan_0-1684736152430.png

and cannot connect MPC5748G to PE Micro PPCNEXUS.

 

As for the HOWTO link, do you have this mpc5777c_low_mid_empty.srec file for MPC5748G?

That post only have empty s-record file in MPC5777C.

Thanks

 

0 件の賞賛
返信

1,627件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

The powercycle of board works, but you need to have external power supply if you are using integrated OpenSDA debugger. Powercycle the board together with clicking on OK button. You need to be quick.   

0 件の賞賛
返信

1,624件の閲覧回数
junehsiao
Contributor I

Hi, 

I'm a little confused by the steps.

I am using multilink jtag.

Do you mean turn on the power of my MPC5748G-LCEVB board and click "connect" button in progppcnexus.exe quickly?

 

0 件の賞賛
返信

1,621件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

No, click on OK button on Reset Escalation message. I just test it on my side (I was able bring my board to the state as your is) - after board reset is reset Red diode lighting and I have some A5 value and some garbage on 0xF8C0000. With PPCNEXUS SW I was able recover it. 

 

I simply simultaneously switched power and click on OK button. After that I erased flash memory.  

jiri_kral_0-1685452236666.png

 

 

0 件の賞賛
返信

1,615件の閲覧回数
junehsiao
Contributor I

Hi,

After I encounter this error message:

junehsiao_1-1685453101520.png

I turn off the power of the board.

And then simultaneously turn on the power and press "OK" button.

Then I got this:

junehsiao_2-1685453137454.png

It seems like hasn't been connected yet.

Do you know why?

0 件の賞賛
返信

1,612件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

First step is connect to board - after connect - the Reset Message appears. 

0 件の賞賛
返信

1,610件の閲覧回数
junehsiao
Contributor I

Hi,

Yes, I did connect to the board first.

These are my steps:

1. Press connect

junehsiao_0-1685453839399.png

2. Got this message

junehsiao_1-1685453867296.png

3. Power off the board. Then simultaneously power on the board and click OK.

4. This window shows:

junehsiao_2-1685453992304.png

I choose NXP_MPC5748G_1x32x32k_HSMCode.pcp

5. This message pops up again:

junehsiao_3-1685454031507.png

6. Power off the board. Then simultaneously power on the board and click OK, again.

7. Result:

junehsiao_4-1685454097005.png

 

0 件の賞賛
返信

1,597件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Well, keep trying - it is little bit tricky. On my side after power on - there is little delay before the Red LED starts lighting. You need to fit pressing the OK button exactly in this time - after power on and before Red LED starts light. 

タグ(1)
0 件の賞賛
返信

1,571件の閲覧回数
junehsiao
Contributor I

Hi,

For my board, after power on, the red light immediately light up (without any delay).

So it is impossible to click OK after power up and before red light on.

Do you know why for your board there is a small delay, but for mine there isn't?

My board is MPC5748G-LCEVB.

Is it because different type of EVB board?

0 件の賞賛
返信

1,555件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

this is not related to EVB. But you have only 300ms. Here is thread related to Reset Escalation https://community.nxp.com/t5/MPC5xxx/MPC5748G-Reset-escalation-PEMicro-Multilink-FX/m-p/951221 

0 件の賞賛
返信

1,635件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

in the HOWTO document is srec generator written in python. You can generate your own s-record. 

0 件の賞賛
返信

1,628件の閲覧回数
junehsiao
Contributor I

Hi, 

Is there a sample code of how to generate a s-record that can erase all memories?

I would like it simply to erase all memory in my MPC5748G board.

Thanks

0 件の賞賛
返信