JTAG debug challenge/response in CodeWarrior connection server console (not GUI)

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

JTAG debug challenge/response in CodeWarrior connection server console (not GUI)

ソリューションへジャンプ
2,694件の閲覧回数
frank_o
Contributor III

Hi,

AN5227 describes how to configure secure debug key in CodeWarrior IDE ((Connection configuration, advanced TAP settings) but we would like to do the same inside CCS debug console (without the GUI, so we can eventually script it.

Using a CWTAP, is there a way to perform challenge/response within debug console instead of within CodeWarrior IDE ?

Regards,

Frank.

0 件の賞賛
1 解決策
2,645件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Here is an excerpt for setting the response from ccs (a secure debug violation is caught if challenge / response mechanism is not used):

delete all

config cc cwtap

ccs::config_chain {ls1043a dap sap2}

 

Secure debug violation

user must first read the DCV value

 

 

 

#from ccs

display ccs::read_reg 0 sdcr 1 8

   sdcr=0x89ABCDEF 01234567

 

write the response value DRV

#from ccs

ccs::write_reg 0 sdrr 8 {0x22222222 0x11111111} ccs::config_chain {ls1043a dap sap2} display ::ccs::get_config_chain

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
2,674件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Which processor do you use? LS1021A?

Which version CodeWarrior do you use?

0 件の賞賛
2,667件の閲覧回数
frank_o
Contributor III

Thank you for your reply,

We use ls1043a with CW 2020.06+patch armv8.11.5.2

Regards.

0 件の賞賛
2,646件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Here is an excerpt for setting the response from ccs (a secure debug violation is caught if challenge / response mechanism is not used):

delete all

config cc cwtap

ccs::config_chain {ls1043a dap sap2}

 

Secure debug violation

user must first read the DCV value

 

 

 

#from ccs

display ccs::read_reg 0 sdcr 1 8

   sdcr=0x89ABCDEF 01234567

 

write the response value DRV

#from ccs

ccs::write_reg 0 sdrr 8 {0x22222222 0x11111111} ccs::config_chain {ls1043a dap sap2} display ::ccs::get_config_chain

0 件の賞賛
2,622件の閲覧回数
frank_o
Contributor III

Great, I think this is exactly what I needed.  I cannot test it today, but as soon as it's confirmed to wok, I'll mark your answer as correct.

Thank you very much.

0 件の賞賛