Category: Read Locked MCU Data

  • LPC2294HBD144: Four CAN, 125C, And An EOL Notice

    A discontinuance notice changes what a recovery is for. NXP issued one for the LPC2294HBD144 family in 2024, with last-time-buy and last-time-delivery dates in 2025, and the part is now marked end of life. It is a 144-pin LQFP ARM7TDMI-S at 60 MHz with 256 KB of on-chip flash, 16 KB of SRAM, four CAN channels, an 8-channel 10-bit ADC and an external memory controller. Every extract secured LPC2294HBD144 binary request now comes from keeping a fielded board serviceable, not from starting a new design.

    The H Is A Specification, Not A Trim Level

    Suffix Package Temperature range Typical use
    FBD144 LQFP144, 20 x 20 mm -40 to +85 C industrial control
    HBD144 LQFP144, 20 x 20 mm -40 to +125 C automotive, under-hood
    FET144 TFBGA144 -40 to +85 C space-constrained boards

    The FBD and HBD versions share the same die, pinout and peripheral set. What changes is the qualified temperature range, and with it the environments the part was designed to survive. A unit from a hot bay has seen long thermal cycling, possibly a different reflow profile, and often a conformal coating. All three matter when a package has to be opened, and flash charge retention is itself temperature dependent. The marking and date code are logged at intake so the chosen route matches the qualified grade.

    Four CAN Channels In A 144-Pin Body

    What defines this variant is four CAN controllers wired to one shared acceptance filter. The two-CAN LPC2292FBD144 has the same flash, SRAM and package; the four-channel LPC2194HBD64 has the same CAN count in a 64-pin body without the EMC. The controller registers, filter RAM and message objects are peripheral-side and volatile. A flash read returns the code that initialises them, not the identifier configuration a running gateway happened to hold.

    Four interrupt sources in the vectored interrupt controller give a reliable way to locate the four handlers in a recovered image. The acceptance filter is shared, so one large table rather than four independent ones is the expected pattern.

    Two Arrays With Different Rules

    On a discontinued part the configuration word carries more weight than at design time: every documented way out of CRP begins with an erase and there is no second source. We read the state rather than challenge it: 0x12345678 removes the debug port together with read and compare while keeping sector erase, 0x87654321 leaves only a whole-chip erase, and 0x43218765 ignores the P0.14 entry pin. That last rule applies only while the vector checksum passes, so a board that no longer starts may be in a different state from the one its configuration suggests. The 256 KB array uses small sectors at the bottom, 32 KB sectors through the middle, and small sectors again near the top, with sector 0 holding the vectors and the checksum.

    Four external banks begin at 0x80000000, each 16 MB and each with its own BCFG register. Two strap pins sampled during reset tell bank 0 whether the attached device is 8, 16 or 32 bits wide. Whatever sits out there is beyond the reach of the on-chip protection word, so the internal and external images are captured and delivered as separate files, with the strap state and register values documented alongside them.

    Why Erasing Is Especially Unhelpful Here

    An erase therefore destroys the only copy. The source tree, the toolchain and often the original engineers are gone. First steps are identification and non-destructive reads: boot code version over the serial port, the observable CRP state, and whether P0.14 is even brought out on the board.

    Early bootloader revisions implemented only the 0x87654321 level. Later /00 and /01 devices support the three-level scheme, and a CRP change takes effect only after a full power cycle rather than a reset.

    Delivery

    A binary and Intel HEX for the internal array, separate files for any populated external devices, a sector map marking blank regions, and a note recording the CRP word, bootloader revision, BCFG settings and strap state. The vector checksum is recomputed so the image is bootable on a reference unit. Where a region was reconstructed rather than read directly, that is stated explicitly.

    Related Work

    Send markings, date codes and board photographs through the contact page. The protection walkthrough orders the checks, while this AT32F423 case contrasts a family with an execute-only protected region. Compare the two-CAN LPC2292FBD144 and the 208-pin LPC2468FBD208, which carries a much larger SRAM pool and an SDRAM-capable EMC.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2468FBD208: 208 Pins And An SDRAM Controller

    Two hundred and eight pins is the largest body in this family, and it exists because the peripheral set needs the room. The LPC2468FBD208 is a 72 MHz ARM7TDMI-S with 512 KB of on-chip flash, 98 KB of SRAM, 160 GPIO, a USB 2.0 full-speed device/host/OTG controller with on-chip PHY, a 10/100 Ethernet MAC with MII and RMII, two CAN channels, SD/MMC, an 8-channel 10-bit ADC, a 10-bit DAC and an external memory controller that also drives single-data-rate SDRAM. An extract protective LPC2468FBD208 heximal job has two very different memory systems in play.

    Ninety-Eight Kilobytes, Four Pools

    Pool Size Role
    ARM local bus 64 KB CPU and IAP source data
    Ethernet buffers 16 KB MAC descriptors, or general SRAM
    USB / GPDMA 16 KB endpoints and DMA, or general SRAM
    RTC battery domain 2 KB retained state

    The two AHB subsystems let Ethernet DMA, USB DMA and instruction fetches from flash run without contention. For an extraction that means external bus activity is a poor proxy for the code being executed: the internal array sits on the ARM local bus, and the traffic visible on the pins is mostly peripheral DMA and GPIO. The 2 KB battery-backed block is the only on-chip store that survives a main supply loss.

    The EMC Goes Further Than Static Memory

    Unlike the LPC23xx parts, this controller supports asynchronous static memories and single-data-rate SDRAM, with A[23:0] and D[31:0] brought out on the 208-pin package. A board can therefore carry a large external program or data store in DRAM, plus a static boot device. That DRAM is volatile and cannot hold firmware across a power cycle, but it can hold a decompressed or relocated copy at runtime, which is worth knowing when a customer asks whether a captured image is complete.

    Four banks of 16 MB sit at the start of the external memory space, configured through BCFG registers. Bank 0 can be a boot source under the control of the boot strap pins. Any external non-volatile device has its own protection features, or none at all, and is entirely outside the on-chip CRP policy. We identify and deliver those separately.

    The Internal Array

    Five hundred and twelve kilobytes yields 504 KB of user space, with an 8 KB boot block at 0x7E000 holding ISP, IAP and RealMonitor. Twenty-eight sectors cover the rest. Sector 0 contains the eight exception vectors, the checksum at 0x14 and the CRP word at 0x1FC. The boot ROM requires the vectors to sum to zero; otherwise it enters ISP instead of running user code.

    The internal array is governed by the word at 0x1FC, which the boot ROM reads before deciding whether to run the application; the external devices know nothing about it. Within the internal array the three published values progress from a disabled debug port with sector erase intact, through a command set reduced to whole-chip erase, to an ignored P2.10 entry pin. That progression is conditional on the vector checksum, so the state of sector 0 is always the first thing to establish. Boot code revisions differ in how many tiers they recognise, and a protection edit needs a full power cycle before it applies.

    Pin Availability Is A Feature Here

    Sixty-four of the 160 GPIO are connected to the hardware vectored interrupt controller for edge-triggered inputs. The JTAG, ETM trace, USB, Ethernet MII and the full 32-bit EMC all compete for the same 208 pins. On a dense board, the debug header may be absent even though the package has room for it. Establishing which signals are actually routed is part of intake, and it prevents a plain layout decision from being misread as a protection state.

    Delivery

    Internal and external contents never get concatenated. The on-chip image stops at the 504 KB ceiling and is supplied as binary and HEX with a blank-sector map; each external device found gets its own file and a note on its own protection features. We log the observed protection word and ROM revision, recompute the checksum, and keep ECC bits with the capture rather than letting a weak cell settle into a plausible opcode.

    Related Work

    Our service scope describes intake and the device states we accept. The memory-type comparison helps separate on-chip flash from external DRAM and static devices, and this 32-bit ARM case is a useful contrast. For a 144-pin part with two CAN channels and a static-only EMC see the LPC2292FBD144; for the 8-bit MiniBus variant of the LPC23xx line see the LPC2378FBD144.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2114FBD64: The 128K Part With No CAN Controller

    A purchase order that says LPC2114FBD64 and a board that behaves like a CAN gateway are describing two different parts. The 4 in the type number marks the variant that ships without a CAN controller; the LPC2119FBD64, one digit away, carries two. Both are 64-pin LQFP ARM7TDMI-S devices at 60 MHz with 128 KB of on-chip flash and 16 KB of static RAM. When the job is to extract locked LPC2114FBD64 firmware, that absent peripheral is not trivia. It tells you which pins to expect, which interrupt sources the vector table actually services, and whether the image you recover contains any bus stack at all.

    Reading The Marking Before Applying Power

    The suffix decodes cleanly. FBD is the low-profile quad flat package, 64 is the pin count, and the four digits before it identify the memory and peripheral mix. A 128 KB device with no CAN has 17 flash sectors rather than the 27 found on a 512 KB member of the same line. Confirming the marking against the die is the first job, because a board assembled from a substitute part can carry a different sector map, and every later decision about where to stop reading depends on that map.

    Where The Protection Actually Lives

    Code Read Protection on this family is one 32-bit word in flash at address 0x000001FC. That address sits inside sector 0, in the gap after the ARM exception vectors that was left free so an FIQ handler could be placed there. The boot ROM reads the word on every reset. Any value other than the three published patterns means no protection. Writing 0x12345678 selects CRP1, 0x87654321 selects CRP2, and 0x43218765 selects CRP3.

    This is a different scheme from the one used on the Cortex-M LPC parts, where the equivalent word sits at 0x2FC. Mixing the two up is a common and expensive mistake: a tool that probes the wrong address reports an unlocked device that is in fact locked, and the first erase command it issues destroys the only copy of the code.

    What Each Level Closes

    CRP1 disables JTAG and the ISP read and compare commands, and it refuses any write to sector 0, but sector erase still works. CRP2 removes most of the useful ISP command set, including write-to-RAM, copy-RAM-to-flash and go; only a full-chip erase remains. CRP3 goes further and, when valid user code is present, disables entry into ISP through the P0.14 pin entirely. On this part the serial bootloader is reached by holding P0.14 low during reset, so a CRP3 device with a working application offers almost no external handle.

    There is one more condition worth checking first. The boot ROM only considers user code valid when the word at 0x14 is the two’s complement of the sum of the other seven vectors, making the eight add up to zero. If that checksum is wrong the part falls into ISP regardless of the peripheral mix. A damaged or half-erased sector 0 therefore changes the protection behaviour, not just the code.

    Why A Full Erase Is Not A Recovery

    Every official route out of CRP on this family goes through an erase. That is the wrong direction when the firmware is the thing you need. A non-invasive read has to work with the boot ROM’s decisions rather than against them, and an invasive one has to reproduce the array contents including the check bytes that the flash controller uses. On LPC213x-class arrays with error correction, discarding those bytes produces a file that looks complete and fails verification later.

    The 128-bit-wide flash interface and the accelerator are also worth remembering. Code executes at full clock rate directly from the array, which is why these parts need no shadow RAM copy and why a live bus capture rarely shows a clean linear image. Thumb code compresses the program by more than thirty percent, so the same 128 KB can hold considerably more application than an ARM-only build would suggest.

    Practical Sequence

    We identify the bootloader revision before choosing a path, because early silicon implemented only the single 0x87654321 level while later /00 and /01 devices expose the three-level scheme. CRP changes only take effect after a full power cycle, not a reset, so a part that was programmed with a protection word minutes ago may still be open. Related reading: our service scope covers which device states we accept, how protection layers are ordered explains the sequence from a configuration word to a physical array, and this 32-bit ARM readout case shows the same reasoning on a different core. For the two nearest siblings, see the 256 KB LPC2124FBD64 and the CAN-equipped LPC2129FBD64.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2138FBD64: Why A 512K Part Holds 500K

    Five hundred, not five hundred and twelve. The LPC2138FBD64 is sold as a 512 KB flash device, and 12 KB of that array is reserved for the boot block, leaving 500 KB for user code and data. It is the largest member of the LPC213x line: 32 KB of SRAM, two 8-channel 10-bit ADCs, a 10-bit DAC, 60 MHz ARM7TDMI-S, all in an LQFP64. Anyone setting out to extract encrypted LPC2138FBD64 memory needs to know where that ceiling falls before choosing a read length.

    Where The Twelve Kilobytes Go

    Region Sectors Size Notes
    Low vectors 0 to 7 4 KB each vectors, 0x14 checksum, 0x1FC CRP word
    Main array 8 to 21 32 KB each bulk of application code
    High small sectors 22 to 26 4 KB each data, calibration, boot parameters
    Boot block not a sector 12 KB ISP, IAP, RealMonitor at 0x7D000

    ISP and IAP commands are forbidden from writing, erasing or branching into the boot block. It is ROM-like from the application’s point of view, and it is not part of any user image. A tool that reads a flat 512 KB from address zero will cross into it; a tool that stops at 0x7D000 has captured the correct 500 KB.

    Twenty-seven numbered sectors make up the user array. That count matters when an ISP command names a start and end sector: sending a number beyond the device’s real last sector fails the operation, and on a protected part the only erase available may be the full-chip one.

    That 12 KB figure is a useful family fingerprint. The later LPC23xx and LPC24xx parts reserve only 8 KB at 0x7E000, which is why their 512 KB devices offer 504 KB of user code rather than 500 KB. An image rebuilt with the wrong ceiling will place the last few sectors in a region that belongs to the boot ROM, and a checksum that was computed over the wrong length will not match the original build.

    ECC Is Part Of The Data

    This line uses flash with Hamming single-bit error correction. In normal execution the correction is transparent. In a physical readout the check bytes sit beside the user words, and a capture that drops them can produce a file that passes a visual inspection and fails a checksum later. We retain them, read the array twice from different angles, and record explicitly how a disagreement was resolved.

    The 128-bit-wide flash interface and accelerator let the core run at 60 MHz directly from the array, so there is no shadow copy in SRAM to fall back on. Thumb code reduces program size by more than thirty percent, which is why 500 KB of user space can hold a surprisingly large application.

    Protection, And The Checksum That Gates It

    One 32-bit word at 0x1FC controls access. 0x12345678 selects CRP1: JTAG off, ISP read and compare off, sector 0 writes blocked, sector erase still allowed. 0x87654321 selects CRP2: only full-chip erase remains. 0x43218765 selects CRP3: ISP entry via P0.14 disabled when valid user code is present. Early bootloader revisions implemented only the middle level; a version query over the serial interface comes first.

    Valid user code is decided by the vector checksum. The reserved word at 0x14 must be the two’s complement of the sum of the other seven vectors so that all eight add to zero. Failing that test sends the part into ISP. Since CRP3’s strongest rule is conditional on valid code, a corrupted sector 0 changes the protection state as well as the program. Reading the first 32 bytes, when possible, is more informative than any assumption about the CRP value.

    What Comes Back

    A binary and Intel HEX covering 0x00000000 to the end of the used area, a sector map distinguishing programmed sectors from erased ones, the CRP word and bootloader revision actually found, and a note on how ECC bytes were handled. The checksum at 0x14 is recomputed so the image is bootable on a reference board. We state when a region had to be reconstructed rather than presenting a clean file with no caveats.

    Related Reading

    Our service scope describes intake and accepted device states. The NVRAM article covers retention as a separate concern, and this AT32F435 case is a useful contrast with a much larger, banked array. Within this family, the LPC2132FBD64 shows the small end of the sector map; the LPC2368FBD100 is the 72 MHz successor whose 512 KB part yields 504 KB instead of 500.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2131FBD64: Eight Sectors And Nothing Spare

    Thirty-two kilobytes is eight 4 KB sectors, and that is the whole story of this part. The LPC2131FBD64 is the smallest member of the LPC213x line: an ARM7TDMI-S core at 60 MHz, 32 KB of flash, 8 KB of SRAM, one 8-channel 10-bit ADC and no DAC. There is no second bank, no spare sector for a loader, and no external memory interface. Dumping a protected LPC2131FBD64 heximal file is therefore an exercise in not losing any of it.

    No Margin Anywhere

    Requests phrased as dump protected LPC2131FBD64 heximal leave no room for a partial erase, since there is no spare sector.

    Feature LPC2131FBD64 Larger sibling
    Flash 32 KB up to 512 KB
    SRAM 8 KB up to 32 KB
    ADC 1 x 8 channels 2 x 8 channels
    DAC none 10-bit
    CAN none none

    On a 512 KB device, a failed unlock attempt that erases one 4 KB sector leaves most of the program intact. On this device, the same attempt removes an eighth of the array, and because sector 0 contains the vector table it removes the entry point with it. The arithmetic changes the risk calculation before any tool is connected.

    The 8 KB of SRAM is similarly tight. In-application programming requires the source data to sit in RAM, and an operation can move 256, 512, 1024 or 4096 bytes. A firmware update routine on this part has to work in small pieces. When we recover an image and see a buffer of exactly 256 bytes with a 0x100 alignment mask, that is usually the upgrade path rather than an application buffer.

    The Protection Word And Its Address

    Code Read Protection is a 32-bit value at 0x000001FC, placed in the space after the exception vectors that was reserved so an FIQ handler could live at the top of the vector region. The boot ROM reads it at every reset. 0x12345678 selects CRP1: JTAG off, ISP read and compare off, writes to sector 0 blocked, sector erase still allowed. 0x87654321 selects CRP2: most ISP commands gone, only full-chip erase left. 0x43218765 selects CRP3: ISP entry through P0.14 disabled when valid user code is present.

    Early bootloader revisions implemented only the middle of those three. Reading the boot code version over the serial interface is the cheapest way to find out which scheme is present, and it is the first command we send. A protection change also needs a full power cycle to take effect, so a part programmed minutes ago may still be open at the bench.

    Error Correction Changes The Read

    The flash on this line carries Hamming error-correction capability, with single-bit correction on read. That is good for a product in the field and awkward for a physical extraction: the check bytes sit alongside the user data, and a capture that discards them can produce a file which looks complete but verifies wrong. We keep them with the data, note how they were handled, and read the array twice from different angles so that a marginal cell is not silently corrected into a plausible instruction word.

    The vector checksum is the other detail that a rebuild must get right. The word at 0x14 is the two’s complement of the sum of the other seven vectors; the boot ROM will not transfer control to user code unless all eight add up to zero. Any image we hand back has that word recalculated.

    What Is Not In The File

    There is no CAN controller on this device and no DAC, so neither appears in the disassembly. The single ADC, two UARTs, two I2C buses, SPI and SSP, six PWM outputs and the vectored interrupt controller do. Runtime state in the 8 KB of SRAM is gone at power-down, and no flash read will bring it back. A customer asking for calibration values should be told that they may live in a flash sector used as data storage, which the sector map will show as programmed but not as code.

    Practical Notes

    Marking and date code first, then the bootloader revision, then the CRP word if it can be observed. We document which sectors were blank so that the delivered binary is not padded with invented 0xFF regions presented as firmware.

    Our service scope lists what we accept for intake. The memory-type comparison explains why this array behaves differently from OTP and mask ROM; this STM32F407 case is a contrast with a much larger array. Within the family, the LPC2132FBD64 adds a DAC and the LPC2138FBD64 shows what happens at 512 KB, where the boot block starts eating usable space.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2361FBD100: No Ethernet, But Full USB OTG

    Sixty-four kilobytes of flash and no Ethernet controller. That combination is unusual in a 100-pin ARM7 with USB, and it is the quickest way to identify the LPC2361FBD100 on a board. It is the smallest member of the 72 MHz LPC23xx line: 34 KB of SRAM, a USB 2.0 full-speed device/host/OTG block with its own PHY, dual CAN, six ADC channels, a single 10-bit DAC and 70 GPIO. A dump locked LPC2361FBD100 flash memory job means working with a small array attached to a surprisingly large peripheral set.

    Four Separate SRAM Pools

    Pool Size Primary user
    ARM local bus 8 KB CPU, IAP source data
    Ethernet buffer 16 KB general-purpose on this part
    USB / GPDMA 8 KB USB endpoints or general DMA
    RTC battery domain 2 KB retained state

    The 16 KB Ethernet block is present even though this device has no Ethernet MAC, and it can be used as ordinary SRAM. That is worth knowing during a disassembly: a buffer placed at that address range is not evidence of a network stack. The 2 KB on the RTC power domain survives a main supply loss, and it is the one place on the chip where customer data may persist without being in flash.

    In-application programming on this family requires the source data to sit in local-bus SRAM, with the destination 256-byte aligned and transfers of 256, 512, 1024 or 4096 bytes. USB and Ethernet SRAM cannot serve as the IAP source. With only 8 KB on the local bus, a field updater works in small pieces.

    What The Missing MAC Changes

    The dual-AHB architecture is still present, with a GPDMA controller, four UARTs, three I2C buses, two SSP controllers, SPI, I2S and an SD/MMC-free peripheral mix. What is absent is the 10/100 Ethernet MAC and its dedicated DMA path. For a live capture that removes one of the busiest DMA masters on the larger siblings, and it removes the network as a possible route by which a running application might serve data.

    The USB controller, by contrast, is unusually complete here: device, host and OTG in one block with its own 4 KB of endpoint RAM. A product using OTG may hold configuration or firmware-update logic in the code that drives it, which is often the first thing to look for in a recovered image.

    The Array And Its Protection

    Sixty-four kilobytes is sixteen 4 KB sectors, with no large-sector region. Sector 0 holds the ARM vectors, the reserved 0x14 checksum and the CRP word at 0x1FC; boot ROM starts the application only when those eight words add to zero. The 8 KB boot block sits at 0x7E000 to 0x7FFFF and holds ISP, IAP and RealMonitor routines, which user commands may not modify or enter.

    The protection word sits at 0x1FC, in the same 4 KB sector as the vectors. On the LPC23xx and LPC24xx lines the ISP entry signal is P2.10, not the P0.14 used by the 64-pin LPC21xx devices, and mixing those two up is the fastest way to lose a bench session. Three magic values step the restrictions up: the first closes the debug port and the read commands, the second reduces ISP to a whole-chip erase, and the third ignores the entry pin while the vector checksum holds. Boot code revisions differ in how many of the three they recognise, so a version query precedes everything else.

    Because CRP does not disable IAP, a routine that stages blocks in local SRAM and calls the boot ROM can rewrite the flash even with every external read command closed. Finding that wrapper in the disassembly reveals the product’s own self-update path. That is a functional finding, not a workaround to attempt blindly.

    Verification

    Because sector 0 is one sixteenth of the whole array, a partial erase costs far more here than on a 512 KB device. We read before attempting anything destructive, retain the error-correction bytes alongside physically captured data, and repeat the read from a second angle. The delivered file has 0x14 recomputed and a sector map marking blank regions; the CRP word and bootloader revision actually found are recorded rather than assumed.

    Related Work

    Our service scope describes intake and the device states we accept. The memory-type comparison explains why this array differs from OTP and mask ROM, and this STM32F405 case is a useful contrast on a different 32-bit core. Within the family, the LPC2364FBD100 doubles the flash and adds an Ethernet MAC, while the LPC2367FBD100 shows what a cost-reduced 512 KB member looks like.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2132FBD64: The First Part In The Family With A DAC

    A file can be byte-for-byte plausible and still be wrong. That is the characteristic failure when a physical read ignores the error-correction bits beside the user data. The LPC2132FBD64 is a 64 KB flash, 16 KB SRAM ARM7TDMI-S device in an LQFP64, running at 60 MHz, and it is the first member of the LPC213x line to carry a 10-bit DAC alongside its single 8-channel 10-bit ADC. To copy secured LPC2132FBD64 software cleanly, the check bytes have to come out with the code.

    What Error Correction Does To A Read

    The flash controller on this line uses a Hamming code capable of correcting a single bit in a read word. In normal operation that is invisible: the CPU asks for a word and gets the corrected value. In an extraction, the raw array contains both the user word and its check bits. A capture that keeps only the user words can hide a marginal cell that the on-chip logic would have repaired, and the resulting binary will contain one wrong instruction in what otherwise looks like a clean image.

    We read the array in sector-sized blocks, retain the check bytes, and repeat the capture from a second angle. Where the two disagree, the ECC information is used to decide which value the running part would actually have seen. The note accompanying the delivered file states how that was handled rather than presenting an apparently perfect dump.

    Sixteen Four-Kilobyte Sectors

    Sixty-four kilobytes means sixteen 4 KB sectors with no large-sector region at all. That is a different geometry from a 256 KB or 512 KB member of the family, and it changes what a partial erase costs. Erasing sector 0 removes one sixteenth of the array, but it also removes the vector table, the reserved checksum word at 0x14 and the Code Read Protection word at 0x1FC. Those three live within the first 512 bytes.

    The boot block is separate, sitting at the top of the memory map and holding the ISP and IAP routines. ISP and IAP commands cannot write, erase or branch into it. On a 512 KB sibling it consumes the last 12 KB and leaves 500 KB for user code; on this 64 KB part the same boot block is present but the user array is small enough that designers rarely notice the reserved region.

    One Word Selects The Whole Policy

    Protection is a single 32-bit value at 0x1FC. 0x12345678 gives CRP1: JTAG disabled, ISP read and compare disabled, writes to sector 0 blocked, sector erase still permitted. 0x87654321 gives CRP2: only a full-chip erase remains available over ISP. 0x43218765 gives CRP3: ISP entry through P0.14 is disabled when valid user code is present. Any other value leaves the part open.

    “Valid user code” is a checksum test, not a signature. The boot ROM sums the eight exception vectors and requires zero, with 0x14 holding the two’s complement of the other seven. If that test fails it drops into ISP. A disturbed sector 0 can therefore change the observable behaviour of CRP3, which is a strong reason to read the first few words before trying anything that erases.

    Early bootloader revisions implemented only the 0x87654321 level. Later /00 and /01 devices expose all three. The boot code version is read over the serial interface before any plan is chosen, and a CRP change only takes effect after a complete power cycle rather than a reset. Both facts are logged at intake.

    The DAC Is A Clue, Not A Storage Area

    The 10-bit DAC and the ADC result registers are peripheral-side. They never appear in a flash dump. What does appear is the code that writes to them, which is often enough to identify calibration constants stored in a flash sector used as data. A sector map showing programmed but non-executable content is usually where those constants live, and separating them from code is part of a useful delivery.

    Runtime state in the 16 KB of SRAM is gone at power-down. The two UARTs, two I2C buses, SPI and SSP, six PWM outputs and the vectored interrupt controller are all configured by the recovered firmware, not captured with it.

    Scope

    We ask for the marking, board photographs and the observed boot behaviour before quoting a route; the contact page is where that starts. The NVRAM article is useful background on why retention is a separate problem from read protection, and this AT32F423 case shows a family where a protected region is genuinely execute-only. Within this line, the LPC2134FBD64 doubles the analog inputs and the LPC2194HBD64 shows what four CAN channels do to a 64-pin package.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation

  • LPC2292FBD144: Two CAN Channels And An EMC

    Two CAN controllers and a 32-bit external bus both want the same port pins. That is the design tension behind the LPC2292FBD144: a 144-pin LQFP ARM7TDMI-S at 60 MHz carrying 256 KB of flash and 16 KB of SRAM on die, an 8-channel 10-bit ADC, two CAN channels and a full external memory controller. A copy protected LPC2292FBD144 program job is straightforward in principle and fiddly in practice, because pin multiplexing decides which interfaces a given board can actually expose.

    Pin Function Selection Is A Design Decision

    The pin connect block assigns each physical pin to GPIO, a peripheral function or the external bus. Enabling the full EMC consumes 24 address lines, 32 data lines and the control signals, leaving 76 of the nominal 112 GPIO. CAN transceivers, UARTs and the JTAG header compete for what remains. A board that uses all four EMC banks and both CAN channels may have no debug connector at all.

    That matters for triage. A part with no accessible JTAG is not necessarily protected; it may simply be a cost-reduced layout. We ask for connector photographs and, where available, a schematic before assuming a lock.

    The Internal Array Still Follows The Family Rules

    The internal array is 256 KB, arranged as small sectors at the bottom and 32 KB ones above. Its opening 4 KB carries the exception vectors, the 0x14 checksum and the CRP word at 0x1FC. Unless those eight vector words add up to zero, boot ROM declines to start the application and drops into ISP instead.

    Access to the internal array is a whitelist rather than a lock. The boot ROM reads 0x1FC at reset and decides which ISP commands still answer. At 0x12345678 the debug port and the read and compare commands are gone but sector erase survives. 0x87654321 cuts the command set down to a whole-chip erase. 0x43218765 closes the P0.14 entry pin entirely, provided the vector checksum says the application is valid. Older boot ROMs implement only the middle value, so our first serial exchange is a version query rather than a read request. A protection change takes effect after the supply has been cycled, not after a reset.

    Four Banks That CRP Never Sees

    The EMC maps four 16 MB banks at 0x80000000, 0x81000000, 0x82000000 and 0x83000000, configured through BCFG0 to BCFG3 in the 0xFFE00000 register block. Bank 0 may supply the boot image when P2.26 and P2.27 select an appropriate width during reset. None of those external addresses is covered by the on-chip CRP word. Code or constant tables placed there are governed by the external device’s own features, if any.

    A recovered image that references the 0x80000000 range is a signal to go back to the board. We deliver internal and external contents as separate files, with the observed BCFG configuration and BOOT strap state noted, rather than concatenating them into one misleading binary.

    What The CAN Channels Contribute

    Dual CAN with a shared acceptance filter means two interrupt sources and one identifier table in the firmware. The message objects and filter configuration live in RAM and peripheral registers; a flash read returns only the code that sets them up. Recognising that initialisation block in a disassembly is usually enough to identify the protocol layer, which is often the part of a gateway program the customer actually needs.

    Runtime state is gone at power-down. The watchdog, RTC, timers, PWM unit and vectored interrupt controller are configured by the recovered code, not captured with it.

    Order Of Decisions

    The boot ROM checks the vector checksum, applies the CRP word at 0x1FC, then samples P0.14. That order explains an otherwise contradictory result: a part whose sector 0 was partially erased fails the checksum and falls into ISP even when the protection word would have closed that path. Reading the first 32 bytes before any destructive command beats an assumption about the setting.

    Verification And Handover

    The array is read twice, the vector checksum at 0x14 is recomputed, and blank sectors are flagged, never filled with invented bytes. Where the on-chip flash carries Hamming correction, the check bytes are retained with the data so a marginal cell is not silently turned into a plausible instruction. The CRP word, bootloader revision and sector map are recorded alongside the binary.

    Related Work

    Our service scope covers board-level and device-level intake. The NVRAM article is useful background on volatile state, and this 32-bit ARM case shows a comparable workflow. Compare the LPC2214FBD144, which shares the 256 KB array but drops both CAN channels, and the LPC2294HBD144, which doubles them to four and raises the temperature grade.

    Service scope and next steps

    On NXP targets the protection state is what determines the method, so we read the device identity and protection configuration before we quote the job. The full scope of what we handle, how a project runs from electrical integrity test to delivered file, and the payment terms are described on our service capabilities page.

    Ready to extract this LPC image?

    Send us the part number and a short description of what you need. Free evaluation, fixed quotation, and a reply within one business day.

    Request a quotation