General Flash Protection questions | Cypress Semiconductor
General Flash Protection questions
I've read AN2015, and several forum posts, and I have some questions left over.
Flash protection is 3 levels. 0= unprotected. 1=external reads disabled. 2= external read/write disabled. 3= external read/all writes disabled. Levels 0,1,2 allow the cpu to write internal flash (to allow, for example, emulated eprom)
I've read on forums that even with level 3, you can erase the chip, and also have read that with level 3, you cannot erase the chip.
There is a psoc4 document (KBA87495) that indicates there are other protection modes. Maybe only for PSoC 4.
So, my question is, based on the readers experiences:
1) Is level 1 enough protection to prevent people from seeing my code?
2) If I program level 3, is my processor forever bricked if something is wrong? (With Kill on PSoC4, that appears to be true)
3) At what level does debugging stop working, or since it comes through the SWD port, does debugging *always* work?