How can I disable secure boot on LPC55S69 after I've enabled it?

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

How can I disable secure boot on LPC55S69 after I've enabled it?

1,137 次查看
cp1
Contributor III

I've been closely following AN12283 and the chip reference manual.  I am trying to evaluate secure boot on my LPCXpresso55S69.

I made the mistake of enabling secure boot through the boot ROM before programming a signed image.  I used "elftosb-gui" in the 2.7.1 SDK to set secure boot to boot signed images, and then I reset the chip.

Now I can no longer program any flash from the boot rom, or I get "Command disallowed when security is enabled".

I can still access the device and program flash using my JLINK debugger, but it is unable to execute any of the code.  I tried programming a signed application with the JLINK, but to no success.

I can see the CMPA page through JLINK/GDB, and I see SECURE_BOOT_CFG == 0x40000000, meaning secure boot is indeed enabled.  I have tried numerous times to set SECURE_BOOT_CFG back to 0 using GDB, but none of my writes to CMPA work.  Seems CMPA is immutable.

I did not seal any configuration with a sha256 hash, so I was under the impression I could roll back any changes but I haven't figured out how.

Is there anyway I can turn off secure boot and try again?  How?

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

1,026 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Conor,

Once secure boot is enabled by setting CMPA, there is no way to disable it. Enabling secure boot is the last step of developing, it's irreversible.

Best Regards

Jun Zhang

0 项奖励
回复