MPC5744P can't entry debug mode

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

MPC5744P can't entry debug mode

ソリューションへジャンプ
1,274件の閲覧回数
leifang
Contributor I

I am using  document  "AN4365  Qorivva MPC56xx Flash Programming Through Nexus JTAG.pdf " to entry debug mode. MPC56xx device is ok, however, MPC5744P is fail.

I review MPC5744P Reference Manual. I don't kown which  one of ACCESS_AUX 5-bit JTAG instructions is right. It seem 6-bit is right

code below:

   JTAG_IR_Scan(0x1, 5);      //5 bit
    rdata = JTAG_DR_Scan_Read(0x0,32);  //0x39b4501d       jtag id is ok

   JTAG_IR_Scan(0x1A, 6);      //6 bit  

   rdata = JTAG_IR_Scan(WRITE_RS|OCR, 10);      //0x241    read OSR is ok
    JTAG_DR_Scan(0x5,32);  //    Set the OCR[DR] and OCR[WKUP] bits

   SET RESET=1;

   DelayMs(100);

   rdata = JTAG_IR_Scan(READ_RS|BYPASS, 10);      //0x221  read OSR is error
    if(rdata!=0x209) Fail();

1)  Which  one of ACCESS_AUX 5-bit JTAG instructions? I try 0x10,0x17,0x18,0x1a,0x1e

2)  Only OSR return 0x209 is right, and entry debug mode, Why I  test return 0x221 Halt mode ?

タグ(1)
0 件の賞賛
1 解決策
858件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

It’s necessary to use ACCESS_AUX_LSM (code 0b11010) on devices which has two cores running in lock step mode.The rest should be the same like on MPC56xx devices.

https://community.nxp.com/docs/DOC-332727 

Regards,

Lukas

元の投稿で解決策を見る

2 返答(返信)
858件の閲覧回数
gracezhang
Contributor I

Hello, 

I met the same problem. Could you share the solution please? 

Thanks.

0 件の賞賛
859件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

It’s necessary to use ACCESS_AUX_LSM (code 0b11010) on devices which has two cores running in lock step mode.The rest should be the same like on MPC56xx devices.

https://community.nxp.com/docs/DOC-332727 

Regards,

Lukas