Hi @Billi2110
The memory range from 0x400 to 0x40F corresponds to the Flash Configuration Field, which stores several flash settings, including important configurations like several flash settings, most importantly the flash protection and system security settings. These settings are copied to the flash registers upon reset.
To prevent accidental locking of devices, the flash configuration field requires special handling. we recommend that, by default, flash programmers write the following value to the flash configuration field:
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF /* 8 bytes backdoor comparison key */
.long 0xFFFFFFFF /* */
.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */
.long 0xFFFF7FFE /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */
This value places the device in an unsecured state with no flash regions protected.
When you manipulated the linker file, you might manipulate the system security settings, therem you have disable the JTAG interface.
Refer to the following community threads, which have information related to the topic, it might be useful for you.
S32K148 Secured?
Unbricking S32K146
S32k116 Timeout while unsecuring device. Erase never stops.
BR, VaneB