I have configured my LPC55S69-EVK board as follows:
In addition I have configured:
With these settings I have SEC (version 10.0) generate the following files (build image):
I then enter ISP mode and use blhost (version 2.6.7) to flash the files:
ps> .\blhost.exe -u 0x1FC9,0x0021 write-memory 0x9de00 cfpa.bin
Inject command 'write-memory'
Preparing to send 512 (0x200) bytes to the target.
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Successful generic response to command 'write-memory'
Response status = 0 (0x0) Success.
Wrote 512 of 512 bytes.
ps> .\blhost.exe -u 0x1FC9,0x0021 write-memory 0x9e400 cmpa_sealed.bin
Inject command 'write-memory'
Preparing to send 512 (0x200) bytes to the target.
Successful generic response to command 'write-memory'
(1/1)100% Completed!
Successful generic response to command 'write-memory'
Response status = 0 (0x0) Success.
Wrote 512 of 512 bytes.
ps> .\blhost.exe -u 0x1FC9,0x0021 -- receive-sb-file .\image.sb
Inject command 'receive-sb-file'
Preparing to send 12992 (0x32c0) bytes to the target.
Successful generic response to command 'receive-sb-file'
(1/1)16%usb hid detected receiver data abort
Data phase write aborted by status 0x2712 kStatus_AbortDataPhase
Possible JUMP or RESET command received.
Response status = 10101 (0x2775) kStatusRomLdrSignature
Wrote 2128 of 12992 bytes.
I'm concerned about the errors that occur when I flash the .sb file and now my board is going straight to SPI mode and not running the image (which was working in "plain image" mode).
Any ideas what I'm configuring wrong?
Hello Mike,
I can see you are invoking the blhost commands manually. Did you try the SEC workflow? Y/N?
If not, did you enrolled the key plus the sbkek.bin ? Without the SBKEK you cannot receive encrypted SB file.
see the generated write_win.bat what it does.
Also I'm curious why you went using manual steps.
Regards,
Libor
Hi, Mike
I also encountered a same problem.
Debug Authentication ends without AHB access.
SPSDKAppError: Debug Mailbox authentication failed: SPSDK: Problem with debug mailbox occurred: Access to AHB is not granted.
I wonder if you have resolved this successfully.
May I pick your brain if so.
Jabez
Hi guys,
for debug authentication problems, I'd recommend to read the following paragraph in the user guide: Troubleshooting — MCUXpresso Secure Provisioning Tool 25.06