Hello,
I have an LPC546 and I am trying to prevent reading the code trough SWD and ISP while keeping the mass erase available.
I have tried ECRP value 0x00015800 which prevents reading the code, but also prevents mass erase trough ISP.
Which makes sense because it blocks all ISP and SWD.
Then I tried ECRP value 0x0002A800 which will allow access trough SWD and ISP. But does not prevent reading the code trough SWD.
Reading UM10912 revision 2.4 chapter 5.4.5.4 ISP Write to RAM.
In Table 17 it says:
This command is used to download data to RAM. This command is blocked when code read protection levels 2 or 3 are enabled. Writing
How do I enable code read protection levels 2 or 3 on a LPC546?
Because I can not find this in chapter 43.