Debug Authentication fails: Invalid RKTH (DAC vs DC mismatch)

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

Debug Authentication fails: Invalid RKTH (DAC vs DC mismatch)

1,307 Views
Andy_Wang
Contributor I

I am using MCUXpresso Secure Provisioning Tool v25.12 with FRDM‑MCXN947 to enable Debug Authentication (DA). I generated ROT/IMG keys (ECC P‑256), generated a Debug Key, created a Debug Certificate Request (DCR), and signed a Debug Certificate (DC) with ROT1. Then I programmed RKTH into OTP (ROTKH0~7) and ran “Open Debug Port” in non‑ISP mode.

The DA always fails with Invalid RKTH. The log shows DAC and DC mismatch:

RoT Hash(Error): Invalid RKTH.
DAC: 7ade2035127204aae2e7c0dc5667b1998d09756dc5060cb45af31f359eab9f68
DC : 3520de7aaa047212dcc0e7e299b167566d75098db40c06c5351ff35a689fab9e

It looks like the DAC value is the DC value with byte‑swap per 32‑bit word. OTP readback of ROTKH0~7 still shows 3520de7a … 689fab9e.

Questions:

If RKTH was programmed with wrong endianness, is there any recovery path?

Environment:

  • MCUXpresso Secure Provisioning Tool v25.12
  • Board: FRDM‑MCXN947
  • Debug probe: MCU‑LINK (pyOCD)
0 Kudos
Reply
1 Reply

1,190 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @Andy_Wang ,

Sorry that we’ve only just noticed your post, possibly due to a community system issue. Apologies for keeping you waiting.
May I check how things are going with this issue? Do you still need assistance from us?
BR
Celeste
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2303469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDebug%20Authentication%20fails%3A%20Invalid%20RKTH%20(DAC%20vs%20DC%20mismatch)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2303469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%20am%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Busing%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BMC%3C%2FS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E2%80%9COpen%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BDebug%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BPort%3C%2FSPAN%3E%3CSPAN%3E%E2%80%9D%20in%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bnon%3C%2FSPAN%3E%3CSPAN%3E%E2%80%91ISP%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bmode.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BDA%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Balways%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bfails%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bwith%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EInvalid%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BRK%3C%2FSPAN%3E%3CSPAN%3ETH%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E.%20%3C%2FSPAN%3E%3CSPAN%3EThe%20log%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bshows%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BDAC%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Band%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3BDC%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bmismatch%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ERoT%20Hash(Error)%3A%20Invalid%20RKTH.%3CBR%20%2F%3EDAC%3A%207ade2035127204aae2e7c0dc5667b1998d09756dc5060cb45af31f359eab9f68%3CBR%20%2F%3EDC%20%3A%203520de7aaa047212dcc0e7e299b167566d75098db40c06c5351ff35a689fab9e%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIt%3C%2FSPAN%3E%3C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3E%3CSPAN%3EDM%3C%2FSPAN%3E%3CSPAN%3E%E2%80%91MCXN%3C%2FSPAN%3E%3CSPAN%3E947%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CUL%3E%3CLI%3E%3CSPAN%3EDebug%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bprobe%3C%2FSPAN%3E%3CSPAN%3E%3A%20MCU%3C%2FSPAN%3E%3CSPAN%3E%E2%80%91LINK%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E(py%3C%2FSPAN%3E%3CSPAN%3EO%3C%2FSPAN%3E%3CSPAN%3ECD%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2326982%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Debug%20Authentication%20fails%3A%20Invalid%20RKTH%20(DAC%20vs%20DC%20mismatch)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326982%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259381%22%20target%3D%22_blank%22%3E%40Andy_Wang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CDIV%3ESorry%20that%20we%E2%80%99ve%20only%20just%20noticed%20your%20post%2C%20possibly%20due%20to%20a%20community%20system%20issue.%20Apologies%20for%20keeping%20you%20waiting.%3CBR%20%2F%3EMay%20I%20check%20how%20things%20are%20going%20with%20this%20issue%3F%20Do%20you%20still%20need%20assistance%20from%20us%3F%3C%2FDIV%3E%0A%3CDIV%3EBR%3C%2FDIV%3E%0A%3CDIV%3ECeleste%3C%2FDIV%3E%3C%2FLINGO-BODY%3E