Two hundred and fifty-six kilobytes sounds like a simple read length until you count the sectors. The LPC2124FBD64 is the 256 KB, no-CAN member of the 64-pin LPC2100 line: 16 KB of SRAM, a 60 MHz ARM7TDMI-S core, four-channel 10-bit ADC, two UARTs and two SPI ports. It is pin-compatible with the 128 KB LPC2114FBD64, which is exactly why boards get built with the wrong one. A secured LPC2124FBD64 code readout has to establish which array is actually present before deciding where the image ends.
The Sector Map Is The Deliverable Boundary
| Region | Sectors | Size each | Address span |
|---|---|---|---|
| Low boot vectors | 0 to 7 | 4 KB | 0x00000000 to 0x00007FFF |
| Main array | 8 to 14 | 32 KB | 0x00008000 to 0x0003FFFF |
| High small sectors | 15 to 16 | 4 KB | 0x00040000 to 0x00047FFF |
Seventeen sectors cover the array. Above them sits the 8 KB boot block at 0x7FFFE000, which holds the ISP and IAP routines and the RealMonitor code. ISP and IAP commands are not permitted to write, erase or execute a go operation on that block. A tool that reads a flat 256 KB from address zero and stops has captured the right length; a tool that assumes the boot block is part of the user image has not.
This matters because the CRP word sits at 0x1FC inside sector 0, while the boot ROM that interprets it sits in the boot block. The setting and the interpreter are in physically distinct regions, and only one of them is user-programmable.
Three Protection Levels, One Address
Writing 0x12345678 to 0x1FC selects CRP1, which disables JTAG and the ISP read and compare commands and refuses writes to sector 0 while still permitting sector erase. 0x87654321 selects CRP2, which removes most ISP functionality and leaves only a full-chip erase. 0x43218765 selects CRP3, which disables ISP entry through P0.14 entirely when valid user code is present. Any other value leaves the device open.
The phrase “when valid user code is present” is load-bearing. The boot ROM checks the reserved vector at 0x14 first: it must contain the two’s complement of the sum of the other seven vectors so that all eight add to zero. If that test fails, the part enters ISP instead of running the application. A partially corrupted sector 0 can therefore open a path that CRP3 was supposed to close, which is a reason to read before trying anything destructive.
Why IAP Is A Different Conversation
Engineers searching for readout secured LPC2124FBD64 code are generally holding a unit that still powers up.
In-application programming is a set of ROM routines called by code already executing on the chip, with an entry point at 0x7FFFFFF0. CRP does not disable IAP. That is deliberate: a field-update feature must keep working on a protected product. It also means that an application with its own upgrade path can rewrite the array even when every external interface is shut. For recovery work, the presence of such a routine is a fact about the firmware, not a tool, and it is worth identifying during disassembly.
IAP writes are constrained: the destination must be 256-byte aligned, a single operation moves 256, 512, 1024 or 4096 bytes, and the source data has to be in SRAM. Understanding those constraints helps when reconstructing a firmware-upgrade routine from a recovered image, because the buffer sizes and alignment masks are visible in the disassembly.
What We Record Before Touching The Part
The marking and date code come first, then the bootloader revision read over the serial interface. Early silicon offered only the single 0x87654321 level; later /00 and /01 devices support the three-level scheme. CRP changes require a full power cycle to take effect, so the observed state at the bench is the one that counts. We also note whether the board brings P0.14 out to a test point, since that pin governs ISP entry on this family.
For the dual-CAN sibling at half the flash density, see the LPC2119FBD64. Our service scope covers intake, the NVRAM article explains retention and why flash is not the same problem, and this 32-bit ARM case shows a comparable array-level recovery. A 32 KB member of the LPC213x line is also worth comparing if the board turns out to carry a different marking than expected.