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

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

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

跳至解决方案
2,686 次查看
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,637 次查看
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,666 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Which processor do you use? LS1021A?

Which version CodeWarrior do you use?

0 项奖励
2,659 次查看
frank_o
Contributor III

Thank you for your reply,

We use ls1043a with CW 2020.06+patch armv8.11.5.2

Regards.

0 项奖励
2,638 次查看
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,614 次查看
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 项奖励