soc: nxp mcxc: fix LinkServer flashing

LinkServer can flash only the first time, cannot flash again.
Fix it by setting default mcu security status as unsecure.

Signed-off-by: Michal Smola <michal.smola@nxp.com>
This commit is contained in:
Michal Smola 2024-12-13 08:51:54 +01:00 committed by Benjamin Cabé
parent 6f6402418a
commit 6e7b335873
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@
status = "disabled"; status = "disabled";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
fsec = <0xff>; fsec = <0xfe>;
fopt = <0x3d>; fopt = <0x3d>;
config-field-offset = <0x400>; config-field-offset = <0x400>;

View file

@ -29,7 +29,7 @@ uint8_t __kinetis_flash_config_section __kinetis_flash_config[] = {
/* Flash security register (FSEC) enables/disables backdoor key access, /* Flash security register (FSEC) enables/disables backdoor key access,
* mass erase, factory access, and flash security * mass erase, factory access, and flash security
*/ */
DT_PROP_OR(DT_NODELABEL(ftfa), fsec, 0xFF), DT_PROP_OR(DT_NODELABEL(ftfa), fsec, 0xFE),
/* Flash nonvolatile option register (FOPT) enables/disables NMI, /* Flash nonvolatile option register (FOPT) enables/disables NMI,
* EzPort, and boot options * EzPort, and boot options