Setting the Protection of Flash during Run Time | Cypress Semiconductor
Support & Community
Setting the Protection of Flash during Run Time
Can I set the write protection of a flash block at run time?
No, write protection of a flash block cannot be done at run time. While programming the device, protection level is set by programmer.
Flash Protection setting can be changed by modifying 'flashsecurity.txt' file before programming the device.