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.
Solved! Go to Solution.
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
Which processor do you use? LS1021A?
Which version CodeWarrior do you use?
Thank you for your reply,
We use ls1043a with CW 2020.06+patch armv8.11.5.2
Regards.
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
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.