Hello everybody
I've fused a board to manage secure boot and secure debug in order to authorize JTAG via challenge / response operation (mode 1).
Secure boot configuration is good an works fine.
Secure debug doesn't works because both CodeWarrior Development Studio (11.5.5) and CCS console fails to connect.
The behavior in CodeWarrioris is:
- if I do not configure the secure key or I write the wrong key the error is "CCS: secure debug violation. Please specify the unlock key matching the challenge key 0x0000000000000000.". The board reset and u-boot starts good
-if I configure the good key the error is "CCS: timeout during target operation". In this case the board is blocked because u-boot console doesn't response.
If I try to use CCS:
- I ask the challenge: display ccs::read_reg 0 sdcr 1 8
- I send the response: ccs::write_reg 0 sdrr 8 {0x11223344 0x55667799}
- The error is always: "LS1043A: Secure debug violation" (both with the right and bad key)
I've fused the following fuses:
- DRV0, DRV1 => (0x11223344 0x55667799)
- OSPR1 => 0x00000001
- SRKH (0-7)
- OTPMK (0-7)
DRV secret has been generated trough SDK tool:
gen_drv_drbg A2 1122334455667788
#----------------------------------------------------#
#------- -------- -------- -------#
#------- CST (Code Signing Tool) Version 2.0 -------#
#------- -------- -------- -------#
#----------------------------------------------------#
DRV[63:0] after Hamming Code is:
1122334455667799
NAME | BITS | VALUE
_________|______________|____________
DRV 0 | 63 - 32 | 11223344
DRV 1 | 31 - 0 | 55667799
Any ideas?
Thanks and regards
Sergio