@VaneB Thank for the reply.
I was able to protect te code by changing the FSEC bits to FF instead of FE. But i ran into another problem regarding this topic.
In our project we are using a SWD interface (with multilink universal debug probe) and aren't able to use JTAG. We also have a bootloader that needs to be able to overwrite previous code protected flash sections and overwrite it with new firmware.
At this moment we can only achieve a programmed module with code protection and the Multilink Universal in the way describe in a previous topic:
https://community.nxp.com/t5/S32K/S32K144-Setting-FSEC-bits-to-Secure/m-p/1595694
But this means programming the module 2 times. 1 time with the code and a second time with memory preservations to only set the FSEC bits.
1. Isn't there another way to do this instantly with the S32DS Debug Configurations & Multilink Universal Debug probe? ( Or is other hardware required to do this?)
2. How is this done in a mass production setup? Is there other hardware required to flash bootloader + application + FSEC protection in a single go?
Still going to documentation at this time btw.
Thanks again in advance!