Hi, Sean,
I have created a project, Flash Configuration Field is greyed, I cannot enable or configure protection or security either, maybe this is PE issue.
As a workaround, I think you can write the the Flash Configuration in the startup_MK20D10.S file.
this is the original code, which set the chip in unsecurity mode:
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFE
You can change it to :
/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
.long 0xFFFFFFFF
You change the last word from0xFFFFFFFE to 0xFFFFFFFF. the last byte is copied to the FTFA_FSEC register after Reset.
Hope it can help you
BR
Xiangjun Rong