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
Thank you Lukas,
I really appreciate your prompt response and help.
Regards.
Hi,
if you use S32 Design Studio, open the startup_S32K144.S file and search for this section:
Just modify the words as you need.
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