I turned on flash security in security settings of the cpu bean. Now when I try to flash or debug I get the following message:
Device is Secure.
Device is secured. Erasing ...
Target has been RESET and is active.
Disconnected from "127.0.0.1" via 127.0.0.1
It appears to be doing a mass erase and then disconnecting. No code appears to run, tested by setting an output pin at the beginning of main and it never gets set. When I recompile the code without the flash security bit, everything works, code runs as expected. Is there a way to set flash security and flash a chip with that setting?
Is there a better way to secure the firmware image?