Hi there,
I am currently experimenting with secure boot on a LPC55S06 controller and wanted to know: is there is an equivalent API accessible from user application (non-bootloader context) to determine the Lifecycle state (property 17, described below), without entering the bootloader?
For instance, I saw this status return code: kStatus_FLASH_SealedFfrRegion (137) in status_t But I think there should be a better way to determine the lifecycle state than trying to do a flash operation on the sealed ffr region and evaluating that the return code == kStatus_FLASH_SealedFfrRegion (137). Also I see no API in the SDK for this (using SDK 26.03).
According to UM11126 Chapter 8, Table 420:
LifeCycleState:
Tag: 17 (11h)
Indicates whether Flash security is enabled:
0x5aa55aa5 - Device is in development lifecyle
0xc33cc33c - Device is in deployment lifecycle
Currently getting the value through blhost:
blhost -p <PORT>,<Baudrate>-- get-property 17
Thanks!