Hello ,
Hope you are doing well.
I apologize for the delayed response, there was maintenance done on our community page and was not able to reply. From my understanding to your question, you would like to change the value of the flash byte in your application.If this is correct, I would not recommend doing this as any incorrect handling can lock your device.
The flash configuration field is a 16-byte section of flash memory located at 0x400-0x40F. Values from the flash configuration field are copied to flash registers at reset, so they set the default values for several flash settings, most importantly the flash protection and system security settings.
To prevent accidental securing of devices, the flash configuration field requires special treatment. NXP recommends that by default flash programmers write the following value to the flash configuration field:
{FFFFFFFF,FFFFFFFF,FFFFFFFF,FFFFFFFE}
If you want to program the flash configuration field, an override option should be included to enable users to program other values into the flash configuration field. Note that changes to the flash configuration field will take effect at the next reset. To prevent an updated flash configuration field value that secures the processor and prevents further access to the processor, ensure the programmer completes all programming steps and any verification of values written before resetting the processor.
If you are sure about the security elements you would like to configure then I would recommend to do it directly in the startup file.
Best Regards,
Sabina