LPC55S16: Secure Boot - skboot_authenticate()

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

LPC55S16: Secure Boot - skboot_authenticate()

494 Views
jesm86
Contributor II

Hello,

I am currently trying to implement Secure Boot functionality on a LPC55XpressoS16 eval board. My plan was to use the Secure ROM API function skboot_status_t skboot_authenticate(const uint8_t *imageStartAddr, secure_bool_t *isSignVerified) for the image verification.

I managed to access it using the necessary function pointers to the ROM API table. The image itself is signed according to the SPSDK documentation (Link to documentation). I also tried the whole thing using an image that was signed via the NXP Secure Provisioning GUI tool.

My problem now is that the function always returns kStatus_SKBOOT_InvalidArgument. I am actually pretty certain that the imageStartAddr parameter is correct (0x00000000) and that this is not the cause of this.

UM11295 states that this is exactly the same function that the already by NXP implemented secure boot functionality in ROM uses. When I then enabled that secure boot in addition to my own, the one by NXP passed and verified the image (the device booted normally and jumped to the reset handler) but my function again returned "invalid argument". Even though allegedly the same function is used.

Is there something I am overlooking or is there some additional documentation for that function (I already checked the appeneded Rom_API.pdf of the UM11295)?

Tags (1)
0 Kudos
Reply
1 Reply

469 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @jesm86 

About secure boot, recommend you use MCUXpresso secure provisioning tool:

https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-s...  

Refer to User Guider -> 7.3 LPC55Sxx/LPC55xx/LPC553x device workflow.

 

BR

Alice

0 Kudos
Reply