SPC5744C JTAG PASSWORD&Life Cycle

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SPC5744C JTAG PASSWORD&Life Cycle

跳至解决方案
630 次查看
lyj
Contributor II

HI:

I referred to MPC5748G to modify the JTAG password and lifecycle of SPC5744C, but I cannot connect to the chip.  (UDE STK5.2--------SPC5746C)

https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/LifeCycle-s-management-of-MPC5748G/ta-p/1573...

 

1.program password

lyj_0-1681983822719.png

2.program dcf

lyj_1-1681983882113.png

3.program Life Cycle  to  OEM

lyj_2-1681983933956.png

4.use UDE connect chip to read  78.3.1 Life Cycle Status Register (PASS_LCSTAT) 

0xFFFF4000=0xE0000002

lyj_6-1681984350473.png

cns=1   Censorship!=0x55AA

jun=1  Successful transmission of the JTAG password sets this bit to '1'

life=2   OEM Production

lyj_5-1681984193898.png

 

lyj_3-1681983996175.png

lyj_4-1681984088487.png

5 after Write  DCF -addr 0x0010010c -value 0x40000000

UDE can't connect chip

lyj_7-1681985517778.png

May I know whether there was any misconfiguration?

0 项奖励
1 解答
560 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

OK, then it is clear.

You locked out the chip and there is no way to recover from this state.

Once you use a new chip, make sure that SWT is handled or disabled before you program Life cycle and set censorship of device.

 

1.Does changing the lifecycle to "OEM" make the "swt_0" effective?

No, SWT_0 is by default set to 20ms and it is active. These are factory settings.

2.disable swt_0 write dcf   "SWT_0_WDG_DIS =1"?

You can disable SWT_0 during reset phase via DCF records. Please refer to reference manual for details.

Best regards,

Peter

 

在原帖中查看解决方案

0 项奖励
3 回复数
621 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Your procedure looks correct. Please have a look at attached script to see how it is done correctly maybe you will find some issues.

Let me ask few questions:

1. was the chip blank or any program was already on it?

2. How do you handle SWT_0?

Because if you do not handle SWT_0 it will cause reset before you are even able to connect via JTAG and execute censorship handshake routine.

So your device will be in endless SWT reset loop.

Best regards,

Peter

0 项奖励
617 次查看
lyj
Contributor II

Thanks for the reply. 

The comparison script should be the same, except for LOCK0_PGx which I set to 0x00000000 instead of 0x0F000000.

 

1. was the chip blank or any program was already on it?

    chip is blank.

       password and dcf  program by jtag.

2. How do you handle SWT_0?

    no. 

      1.Does changing the lifecycle to "OEM" make the "swt_0" effective?

      2.disable swt_0 write dcf   "SWT_0_WDG_DIS =1"?

lyj_0-1682076995946.png

 

Are there any other settings that need to be configured?

0 项奖励
561 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

OK, then it is clear.

You locked out the chip and there is no way to recover from this state.

Once you use a new chip, make sure that SWT is handled or disabled before you program Life cycle and set censorship of device.

 

1.Does changing the lifecycle to "OEM" make the "swt_0" effective?

No, SWT_0 is by default set to 20ms and it is active. These are factory settings.

2.disable swt_0 write dcf   "SWT_0_WDG_DIS =1"?

You can disable SWT_0 during reset phase via DCF records. Please refer to reference manual for details.

Best regards,

Peter

 

0 项奖励