Pablo,
Thanks for this additional feedback. The application note was enlightening.
There is one discrepancy that I would like to clarify regarding CRP2.
AN10968 Section states: "To prevent this, CRP Level 2 further increases security by only supporting full
chip erasure. This ensures that devices are entirely blank prior to updates, and therefore
not susceptible to modification by an attacker."
UM10736 Table 486, regarding the ISP Erase Sector command, states: "This command is used to erase one or more sector(s) of on-chip flash memory. The boot block can not be erased using this command. This command only allows erasure of all user sectors when the code read protection is enabled."
UM10736 Table 501, regarding the IAP Erase Sector command, states: "The boot sector can not be erased by this command."
UM10736 Table 474, regarding CRP2, states: "When CRP2 is enabled the ISP erase command only allows erasure of all user sectors."
It looks like the application note (AN10968) contradicts the LP15xx user manual (UM10736) regarding memory erasure in CRP2 as the application notes that CRP2 supports "full chip" erasure, but the LP15xx user manual states that CRP2 only supports erasure of user sectors.
It seems like the intent of CRP2 would be to allow the chip to be restored to factory state, as explained in the application note, but this contradicts the LPC15xx user manual, which indicates that the boot sector may not be erased even when full erasure is selected.
Thanks,
Jonathon