Content originally posted in LPCWare by R2D2 on Mon Jun 10 00:55:49 MST 2013
Quote: masterboy
Is there a way to cancel a CRP level 2? Or is it impossible? I would try to set CRP 2, but I'm afraid I have not blocked the definitive recording.
What's not clear there?
Quote:
Table 568. Code Read Protection options[1]
CRP1 0x12345678
[COLOR=Red]Access to chip via the JTAG pins is disabled. This mode allows partial flash update using the following ISP commands and restrictions:[/COLOR]
• Write to RAM command can not access RAM below 0x10000200. This is due to use of the RAM by the ISP code, see Section 32.3.2.7.
• Read Memory command: disabled.
• Copy RAM to Flash command: cannot write to Sector 0.
• Go command: disabled.
• Erase sector(s) command: can erase any individual sector except sector 0 only, or can erase all sectors at once.
• Compare command: disabled
This mode is useful when CRP is required and flash field updates are needed but all sectors can not be erased. The compare command is disabled, so in the case of partial flash updates the secondary loader should implement a checksum mechanism to verify the integrity of the flash.
CRP2 0x87654321
This is similar to CRP1 with the following additions:
• Write to RAM command: disabled.
• Copy RAM to Flash: disabled.
• Erase command: only allows erase of all sectors.