Hi,
I am trying to update FSEC register to make my controller Secure.
/* 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(0xFF = secured) */
.text
.thumb
Even though; i have updated FSEC register in startup_S32K144.S file; And generated .hex file.

But While Software flashing; After doing Software Erase.
FSEC register value automatically updates from 0xFF to 0xFE.
Please help me to resolve this issue.
Thanks,
Sandipta