Hello, the chip I'm using is the S32K142, and the FSEC configuration is as follows:
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF /* 8 bytes backdoor comparison key */
.long 0xFFFFFFFF /* */
.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */
.long 0xFFFF7FFF /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */
However, I can still debug after power failure and restart. The data at address 0x0_040C is 0xFFFF7FFE. Why is the configuration not effective?
Hi @minsky1
There are two ways to enable the security feature on S32K1 devices:
Also, if you are working with Lauterbach, please note that it does not allow the FSEC field to be modified unless a specific command is issued. This is an protection against unintended modification.
There have been a few discussions on this topic in the past. You may find the threads below helpful, as they cover similar situations and could provide additional insights.
BR, VaneB