In this case, change the FSEC byte. Default value is 0xFE which means the device is not secured (you can access everything via JTAG). Last two bits say if the device is secured or not:
Change the value from 0xFFFF7FFE to 0xFFFF7FFC or 0xFFFF7FFD or 0xFFFF7FFF and the device will be secured. You can enable backdoor key access if needed.
Regards,
Lukas
Hi Lukas, thanks for your feedback.
I'm using IAR plugin, so, my startup_S32K144.S is a little diferent.
However, I need to protect the flash against reading, but I have to program and delete it normally via JTAG. My code is confidential, so, customers cant read.
To do this, how should I set the bits described in the print screen?
Thanks.
In this case, change the FSEC byte. Default value is 0xFE which means the device is not secured (you can access everything via JTAG). Last two bits say if the device is secured or not:
Change the value from 0xFFFF7FFE to 0xFFFF7FFC or 0xFFFF7FFD or 0xFFFF7FFF and the device will be secured. You can enable backdoor key access if needed.
Regards,
Lukas