LPC55S28: PUF_GetHwKey fails when using prince region0

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

LPC55S28: PUF_GetHwKey fails when using prince region0

744 Views
tobias91
Contributor III

Hi,

trying to set up secure boot on a LPC55S28 custom board. Following along the prince example from the SDK. Only using prince region 0. boot type is Encrypted (Prince) and signed
When i get to this part of the example:

status = FFR_KeystoreGetKC(&g_iap.config, &keyCode[0], kFFR_KeyTypePrinceRegion0);

status = PUF_GetHwKey(PUF, keyCode, sizeof(keyCode), kPUF_KeySlot2, rand());

The FFR_KeystoreGetKC return key and status okay but PUF_GetHwKey always fails. What am I missing? Something more in the secure provisioning tool for CMPA/CFPA I need to set up?

Labels (1)
0 Kudos
Reply
3 Replies

712 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @tobias91 

 

If you want to use the Secure boot + PRINCE function, I highly recommend that you use MCUXpresso Secure Provisioning too. Refer to "6.4.3.3 Booting signed or PRINCE encrypted image" in <MCUXpresso Secure Provisioning Tool User Guide>.

 

BR

Alice

0 Kudos
Reply

708 Views
tobias91
Contributor III
Hi, thanks Alice for the reply I am using MCUXpresso Secure Provisioning Tool.
Some more details I should have added from the start. The application I am using is split i 2 parts one bootloader and one application. I right now load the bootloader using MCUXpresso Secure Provisioning and works as expected. But later when the devie is booted and in the bootloader mode i need to be able to load the application. What steps do i need to take to achieve the following unlock memory area i want write application to , flash application and encrypt the newly written area?
0 Kudos
Reply

704 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @tobias91 

It seems the same issue with your private ticket. I have reply you on that, please check it. Thanks.

 

 

BR

Alice

0 Kudos
Reply