I don't see a below table, but yes, Device Protection is enabled in the System page of both bootloader and application. Debug Select is set to SWD instead of GPIO, though.
But I thought that Device Protection was only written to the chip while Chip Lock was enabled in PSoC Programmer? It seems to be enabled regardless, which would be good for us because our factory hadn't enabled Chip Lock while burning previous products. I just want to understand if that's correct or not. I know on PSoC4 it behaves differently whether Chip Lock is enabled or not, but on PSoC3 it appears to make no difference.
In PSoC 3/5 if we enable the flash protection to full then you cant read the flash with or without chip lock enabled as per the table.
Whereas in PSoC 4 as per the same table you can read the flash even with flash security setting as full protection with external programmer.
If you want to protect flash in PSoC 4 to read from external programmer you have to enable the protected security mode in systems tab and program the hex file using PSoC Programmer with chip lock enable.
Kindly let us know if there is any confusion.
Ok, it looks like that table is from Introduction to Bootloaders https://www.cypress.com/file/45346/download
So on PSoC3, does Chip Lock setting do anything?
You can enable or disable programming of Write Once Latch (WOL) for PSoC 3 and PSoC 5 devices. This option is disabled by default
So it only affects WOL?
- On PSoC3
- Full Protection with Chip Lock disabled will block External read and write, and Internal write, but chip can still be erased and overwritten.
- Full Protection with Chip Lock enabled will block External read and write, and Internal write, and chip is permanent and cannot be erased
- On PSoC4
- Full Protection with Chip Lock disabled will block External write, Internal write, but not External read
- Full Protection with Chip Lock disabled will block External write, Internal write, and External read
Is that correct?
- On PSoC3
Yes you are correct.
If you enable the WOL then only the chip is permanent and cannot be erased.
You can enable the WOL by following certain steps given the below document - https://www.cypress.com/file/137441/download