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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,654 Views
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 Kudos
1 Solution
2,605 Views
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

View solution in original post

0 Kudos
4 Replies
2,634 Views
yipingwang
NXP TechSupport
NXP TechSupport

Which processor do you use? LS1021A?

Which version CodeWarrior do you use?

0 Kudos
2,627 Views
frank_o
Contributor III

Thank you for your reply,

We use ls1043a with CW 2020.06+patch armv8.11.5.2

Regards.

0 Kudos
2,606 Views
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 Kudos
2,582 Views
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 Kudos