LPC55S28: PUF_GetHwKey fails when using prince region0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC55S28: PUF_GetHwKey fails when using prince region0

755 次查看
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?

标签 (1)
0 项奖励
回复
3 回复数

723 次查看
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 项奖励
回复

719 次查看
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 项奖励
回复

715 次查看
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 项奖励
回复