Skip to content

Commit d5e3c9a

Browse files
committed
Add CRP explanation.
1 parent cdcc9c6 commit d5e3c9a

File tree

1 file changed

+25
-0
lines changed
  • targets/TARGET_NXP/TARGET_LPC176X/device

1 file changed

+25
-0
lines changed

targets/TARGET_NXP/TARGET_LPC176X/device/CRP.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,31 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
18+
/* Code Read Protection
19+
20+
NONE 0xFFFFFFFF - No code protection.
21+
22+
CRP1 0x12345678 - Write to RAM command can not access RAM below 0x10000200.
23+
- Read Memory command: disabled.
24+
- Copy RAM to Flash command: cannot write to Sector 0.
25+
- "Go" command: disabled.
26+
- Erase sector(s) command: can erase any individual sector except
27+
sector 0 only, or can erase all sectors at once.
28+
- Compare command: disabled
29+
30+
CRP2 0x87654321 - Write to RAM command: disabled.
31+
- Copy RAM to Flash: disabled.
32+
- Erase command: only allows erase of all sectors.
33+
34+
CRP3 0x43218765 - Access to chip via the SWD pins is disabled. ISP entry
35+
by pulling PIO0_1 LOW is disabled if a valid user code is
36+
present in flash sector 0.
37+
Caution: If CRP3 is selected, no future factory testing can be
38+
performed on the device.
39+
*/
40+
1641
#if !defined(BOOTLOADER_ADDR) // do not include CRP if there is a bootloader.
1742
#if defined (__ICCARM__)
1843
const long CRP_Key @0x000002FC = 0xFFFFFFFF;

0 commit comments

Comments
 (0)