Setting the Protection of Flash during Run Time

Question: Can I set the write protection of a flash block at run time?

 

Answer:

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.