Category: Read Locked MCU Data

  • STM32H730IBK6Q: 128K Inside, The Application Outside

    128 KB of internal flash cannot hold the application. That is the design intent of the STM32H730IBK6Q, a 550 MHz Cortex-M7 value-line device in a UFBGA176+25 body, and it changes the entire shape of a job to copy secured STM32H730IBK6Q software. Most of the code is expected to live in external Octo-SPI memory and execute in place, leaving the small on-chip array for a bootloader, a root of trust and the configuration of the external interface.

    The Q Is Not A Packaging Detail

    ST training material draws a hard line: on the H730 value line the internal SMPS is available only on the -Q CPN. A board built for the IBK6Q therefore has an inductor, VCAP decoupling and a feedback network that a non-Q board would not need. The die, the 564 KB of SRAM and the 128 KB flash are otherwise the same. Calling this a different chip is wrong; calling it a different power configuration is accurate, and it determines how cleanly the core rail behaves during a read.

    Two Storage Domains, Two Threat Models

    Location Size Content Protection
    Internal flash 128 KB Bootloader, root of trust, Octo-SPI setup RDP, PCROP, WRP
    External Octo-SPI Board-dependent Application code, assets OTFDEC AES-128-CTR
    On-chip SRAM 564 KB Runtime buffers Closed to JTAG at RDP1

    The H730 is on the AN5281 applicable-products list, which means it carries a crypto/hash accelerator and an on-the-fly decryption engine. OTFDEC decrypts AXI or AHB reads addressed to a memory-mapped Octo-SPI region using AES-128 in counter mode, with the key held inside the MCU. Desoldering the external serial flash and reading it in a programmer therefore produces ciphertext. The key is not in that chip, and at RDP level 2 neither the debug port nor the system bootloader is available to retrieve it.

    Security Services Live In System Memory

    STM32H7 is unusual in keeping the root security services code for SFI, SBSFU and secure module install in system memory that user code cannot address. Here it remains for the life of the device, which is why a firmware image recovered from the external flash may contain no installer code at all even though secure install was used on the production line.

    RDP itself uses 0xAA for level 0, 0xCC for level 2 and any other value for level 1. Level 1 blocks flash, backup SRAM and backup registers from the debugger, and on H7 also blocks RAM access after a system reset. Level 2 is permanent. PCROP adds an execute-only region configured through FLASH_PRAR_PRG, aligned to 256 bytes, and on STM32H7 it survives a level 1 to level 0 mass-erase regression.

    Getting At A 176+25 Ball Grid

    The IBK6Q is a UFBGA176+25, 10 x 10 mm at 0.65 mm pitch. That is slightly friendlier than the 0.5 mm 169-ball package, but the debug signals are still under the die. A production board usually breaks SWD out to a test pad or a tagged connector; a prototype may not. Locate PA13, PA14 and NRST from the reference design before attaching anything, and check that the external Octo-SPI lines are not multiplexed onto the same bank you need for a probe. Recording the BGA orientation and the board revision alongside the readout makes a second unit much faster to process.

    Secure Updates Change What Is Recoverable

    Secure boot and secure firmware update mean the external application image is signed, and the verification key stays inside the MCU. An over-the-air update can therefore replace the contents of the serial flash without ever exposing a plaintext binary on the programming interface. A recovered image is a snapshot of one firmware revision, not a reconstruction of every release the product ever shipped. When a customer asks for source-level equivalence, state clearly that the deliverable is the binary present on that specific board, with its version marker and signature block intact.

    Scoping A Real Job

    Which Octo-SPI device is fitted, is the -Q supply network present, and does the customer need the internal bootloader, the external image, or both? A complete delivery records the 128 KB internal dump, the option byte state, the OTFDEC region configuration, and the raw external contents with a note that they are encrypted. Our bypass methodology page covers how these layers are separated in practice, and the ARM7 STM32F107 cloning case shows a board where external memory decided the whole approach.

    For the same die in a 169-ball package, see STM32H730ABI6Q flash access. Where the debug port is already closed, the contact route for device-level work is the remaining option, and the AT32F405 sLib analysis is a useful comparison for another vendor’s execute-only region.

    Service scope and next steps

    For STM32 targets the readout protection level decides the approach, so we verify the option bytes and the exact part number first. That keeps the quotation accurate and the timeline predictable. 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 STM32 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

  • LPC2194HBD64: Four CAN Channels In 64 Pins

    The H in HBD64 is not a minor ordering detail. It marks the temperature grade: this variant is specified from minus forty to plus one hundred and twenty-five degrees Celsius, while the FBD version of the same device stops at plus eighty-five. The LPC2194HBD64 is otherwise the 64-pin, 256 KB flash, 16 KB SRAM ARM7TDMI-S part with four CAN channels that made it a favourite for automotive gateways. Reverse engineering a secured LPC2194HBD64 chip starts with that letter, because it changes the thermal history the package has survived.

    Four Channels In Sixty-Four Pins

    Part Flash CAN channels Package Temperature
    LPC2114FBD64 128 KB 0 LQFP64 -40 to +85 C
    LPC2119FBD64 128 KB 2 LQFP64 -40 to +85 C
    LPC2129FBD64 256 KB 2 LQFP64 -40 to +85 C
    LPC2194HBD64 256 KB 4 LQFP64 -40 to +125 C

    Four interconnected CAN controllers with a shared acceptance filter consume a large share of the pin multiplexing on a 64-pin body. There is no external memory controller, so the entire application lives in the 256 KB on-chip array. That is a useful constraint: no parallel bus to listen to, no off-die code store, and no second chip to misidentify as the firmware carrier.

    The acceptance filter tables and message objects live in RAM and peripheral registers. A flash read gives the code that configures them, not the running configuration. On a gateway board that distinction is usually the difference between a usable answer and a confusing one.

    Four controllers also mean four independent interrupt sources in the vectored interrupt controller, and their vector addresses are a reliable way to identify the CAN handlers in a recovered image. The acceptance filter is shared, so a disassembly that shows one large identifier table rather than four separate ones is behaving exactly as the silicon does; treating it as four independent stacks leads to a wrong map of the code.

    Why The Grade Matters Physically

    Reverse engineering secured LPC2194HBD64 chip work is mostly about thermal history, not about a stronger lock.

    A part rated to 125 C is generally used where ambient temperature is high, which means long thermal cycling, often a different solder profile, and frequently a conformal coating that has to be removed before any package-level work. Decapsulation is a chemical and thermal process; a die and package that have already seen years of elevated temperature can behave differently from a benign-environment sample. We record the marking and date code before choosing a route, and we treat the grade as a real variable rather than a catalogue footnote.

    Charge retention on flash is temperature-dependent. A device that has spent its service life hot is more likely to have marginal cells, which is exactly the situation where the on-chip error correction becomes relevant to an extraction.

    The Protection Word

    Code Read Protection is a 32-bit value at 0x1FC. Writing 0x12345678 gives CRP1: JTAG disabled, ISP read and compare disabled, sector 0 writes blocked, sector erase still available. 0x87654321 gives CRP2, where only a full-chip erase remains. 0x43218765 gives CRP3, which disables ISP entry through P0.14 when valid user code is present. Early bootloader revisions implemented only the middle level; the /00 and /01 silicon added the three-level scheme. A version query over the serial port is the first electrical step.

    Before that, the boot ROM checks the vector checksum: the word at 0x14 must make the eight exception vectors sum to zero. If it does not, the part drops into ISP regardless of the intended protection. So the observable state of a CRP3 device depends on the integrity of sector 0, which contains the vectors, the checksum and the CRP word together.

    Practical Sequence

    We identify the marking, the date code and the bootloader revision, then document the boot behaviour on a bench supply with reset under control. A CRP change only takes effect after a full power cycle, so a recently programmed part may still be open. The array is read in sector blocks with the ECC check bytes retained, and twice from different angles so a marginal cell is not silently corrected into a plausible instruction. The delivered image has 0x14 recomputed and a sector map marking blank regions.

    Related Work

    The contact page is where markings and board photographs go. The protection walkthrough sets out the layers in order, and this 32-bit ARM case is a comparison on a different architecture. For the two-CAN predecessor see the LPC2119FBD64; for the 144-pin device with the same four channels and the same temperature grade, see the LPC2294HBD144.

    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

  • LPC2290FBD144: ROMless, Dual CAN, External Code

    Hold reset low, look at two pins, and the whole boot path is decided. The LPC2290FBD144 is a ROMless 144-pin ARM7TDMI-S device: 16 KB of on-chip SRAM, two CAN channels, an 8-channel 10-bit ADC, and an external memory controller, but no on-chip flash program memory. Restoring secured LPC2290FBD144 data is not an unlock job on the microcontroller. It is an identification job on the memory device sitting next to it.

    The Strap State Comes First

    BOOT1 (P2.27) BOOT0 (P2.26) CS0 device width Typical part
    0 0 8-bit 8-bit parallel flash
    0 1 16-bit 16-bit flash, two chips in parallel
    1 0 32-bit 32-bit flash or four 8-bit devices
    1 1 16-bit same as 01

    Both pins have internal pull-ups, so an unconnected pair selects the 32-bit case. The boot ROM configures the EMC, reads the first eight words from chip select 0 and transfers control to the reset vector. If the physical bus width and the strap state disagree, the part fetches nonsense. Recording the strap resistors is therefore not optional: it is the difference between a valid image and a byte-swapped file that disassembles into garbage.

    Where The Code Actually Lives

    A restore secured LPC2290FBD144 data brief is really an identification job on a separate memory device.

    The EMC offers four banks of 16 MB at 0x80000000, 0x81000000, 0x82000000 and 0x83000000, each configurable for 8-, 16- or 32-bit devices through BCFG registers at 0xFFE00000. Bank 0 is the boot source; the others commonly hold data tables, frame buffers or additional code. A gateway design with two CAN channels may keep protocol tables in a second flash device entirely.

    That second device is easy to miss. A customer who asks for “the firmware” may need both chips, and a read confined to CS0 will produce an image with references into a region that was never captured. We identify every non-volatile device by marking and pinout before deciding what belongs in the delivery.

    Why There Is No CRP Word On This Part

    Code Read Protection is implemented as a value at 0x1FC inside sector 0 of on-chip flash, interpreted by the boot ROM on reset. With no on-chip flash there is no sector 0, no CRP word and no ISP read command to refuse. The boot block, ISP, IAP, JTAG and the ETM are present, but they are about configuring and debugging the MCU, not about handing out application code.

    Protection therefore belongs to the external memory. A parallel flash may implement sector protection or a write-protect pin; a mask ROM cannot be altered; an OTP device cannot be erased. Each has a different read procedure. Attempting an “unlock” sequence designed for an on-chip array on a board like this is at best wasted time and at worst destructive.

    Dual CAN, And What It Does Not Store

    The two CAN controllers with their shared acceptance filter are peripheral-side. Identifier ranges, message objects and filter tables live in registers and RAM, and all of it disappears at power-down. A flash read returns the code that initialises those structures. On a board that has been in service for years, the difference between recovering the program and recovering the running configuration has to be stated at the outset.

    A related trap is the board that no longer boots. On a ROMless design the cause is often the external device rather than the MCU: a marginal flash cell, a failed solder joint on an address line, or a strap resistor that has drifted. Replacing the MCU changes nothing. We power the board on a current-limited supply and capture the first bus cycles after reset before deciding which component to read, so that a hardware fault is not misdiagnosed as a protection state.

    Practical Notes

    Reset is held under control during any in-circuit read so the MCU is not driving the bus against the programmer. Byte lane order follows the strap-selected width, and the ARM vector checksum still applies to the external image: the eight vectors at the start of the code device must sum to zero, with 0x14 holding the two’s complement of the other seven. We recompute it when rebuilding a bootable file.

    Related Work

    The contact page is where board photographs and schematics go. The memory-type comparison helps distinguish a parallel flash from a mask ROM or OTP device, and this 32-bit ARM case is a useful contrast. For the ROMless part without CAN see the LPC2210FBD144; for the 256 KB, dual-CAN member with on-chip flash see the LPC2292FBD144.

    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

  • LPC2378FBD144: MiniBus, 104 GPIO, 8 ADC Channels

    MiniBus is a misleading name. It is not the full external memory controller found on the LPC22xx or LPC24xx parts; it is an 8-bit data, 16-bit address parallel interface. The LPC2378FBD144 is otherwise the largest 144-pin member of the 72 MHz LPC23xx family: 512 KB of flash, 58 KB of SRAM, 104 GPIO, eight 10-bit ADC channels, a 10-bit DAC, an RMII Ethernet MAC, a USB device, two CAN channels and SD/MMC. Restoring a locked LPC2378FBD144 microcontroller requires understanding exactly what that bus can and cannot carry.

    What MiniBus Actually Provides

    The interface supports static memory-mapped devices over an 8-bit data path and a 16-bit address path. It cannot replace the 32-bit-wide, four-bank EMC of a LPC2468, and it is not a boot source in the sense that a ROMless LPC2210 uses CS0. Firmware still lives in the 512 KB on-chip flash array. A board may attach a small parallel display, an ADC or a latch to the MiniBus, and that device can hold data, but it does not hold the reset vector.

    That distinction matters when a board arrives with several memory-looking chips. We identify each by marking and pinout, then decide which of them belongs in the delivery. Concatenating external contents into the internal image produces a file that no reference board will ever run.

    Boundary Scan Is Not A Read Path

    A restore locked LPC2378FBD144 microcontroller job turns on what the MiniBus actually carries.

    This package supports boundary scan for board testing, which occasionally leads to the assumption that the flash can be shifted out through the JTAG chain. Boundary scan observes and controls package pins. It does not address the on-chip flash array, and CRP1 already disables the JTAG debug port. It is a manufacturing test feature, useful for confirming that a solder joint is sound and irrelevant to recovering program code.

    The Array

    Five hundred and twelve kilobytes yields 504 KB of user space; the last 8 KB at 0x7E000 is the boot block holding ISP, IAP and RealMonitor. Twenty-eight sectors run from 4 KB at the bottom through 32 KB in the middle to 4 KB near the top. Sector 0 contains the eight exception vectors, the checksum at 0x14 and the CRP word at 0x1FC.

    Boundary scan is sometimes mistaken for a read path on this package. It controls and observes pins for board test; it does not address the on-chip array, and the first CRP value already disables the JTAG debug port. The other two values reduce ISP to a whole-chip erase and then ignore the P2.10 entry pin while valid user code exists. None of them encrypts the flash. What they do is remove interfaces, which is why our intake notes record which signals the board actually routes before anyone calls the part locked.

    IAP, And The Four SRAM Pools

    The 58 KB of SRAM splits into 32 KB on the ARM local bus, 16 KB for Ethernet, 8 KB for USB and GPDMA, and 2 KB on the RTC battery domain. IAP calls from the boot ROM at 0x7FFFFFF0 require their source data in the local bus block, with a 256-byte-aligned destination and transfers of 256, 512, 1024 or 4096 bytes. CRP does not disable IAP, because shipped products need a field-update path. A recovered image often contains the loop that stages one 32 KB sector at a time.

    Eight ADC channels and 104 GPIO give this part a wide peripheral surface, but all of it is volatile. Calibration constants, if any, will be in a flash sector the application treats as data, and the sector map will show it as programmed but non-executable.

    Verification

    We read the array twice, retain error-correction bytes, recompute the vector checksum and mark blank sectors rather than padding them. ARM and Thumb instruction streams can alternate at subroutine boundaries, so a flat 32-bit decode is not used for analysis. The delivered note records the CRP word, boot ROM revision and any external device found on the MiniBus.

    Related Work

    The contact page handles intake of board photographs and markings. The protection walkthrough sets out the layers in order, and this 32-bit ARM case shows a comparable workflow. Compare the LPC2368FBD100, which shares the 512 KB array in a 100-pin package, and the LPC2468FBD208, whose EMC really does support a full external bus and SDRAM.

    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

  • LPC2129FBD64: Gateway Silicon, Two CAN Filters

    A board that will not boot is sometimes a board whose vector checksum is wrong by one word. The LPC2129FBD64 is the 256 KB, dual-CAN member of the 64-pin LPC2100 family, with 16 KB of SRAM, four 10-bit ADC channels, two UARTs, two SPI ports and two CAN controllers with a shared acceptance filter. It was a natural fit for protocol converters. Restoring an encrypted LPC2129FBD64 program from one of these boards is less about defeating a lock and more about understanding the order in which the boot ROM makes its decisions.

    The Checksum Comes Before Everything Else

    On reset the boot ROM disables the overlay of its own vectors, reads the eight words at 0x00000000, and checks that they sum to zero. The reserved location at 0x14 holds the two’s complement of the other seven. If the sum is correct, execution passes to the user reset vector; if it is not, the part enters ISP mode instead. Every programming utility that writes this family recomputes 0x14 automatically, which is why engineers rarely notice the field at all.

    That field is also the condition attached to CRP3. The highest protection level disables ISP entry through P0.14 only when valid user code exists. A board whose sector 0 has been disturbed is therefore in a different state from the one described by its protection word. Reading the first 32 bytes of the array, when that is possible, tells you more than any assumption about the CRP setting.

    The Four Interfaces That Matter

    This part exposes two UARTs, two SPI ports, a fast I2C bus and two CAN channels. Only UART0 is involved in the ISP handshake. The others are application interfaces, and none of them provides a route into flash that bypasses the boot ROM. A gateway board often brings the CAN transceivers and a service UART out to the same connector, which makes it tempting to probe the wrong pair first.

    The acceptance filter RAM is a useful thing to understand while reading the recovered code. Identifier ranges and message-object assignments live in registers and SRAM, not in flash. The firmware contains the tables that initialise them; a raw image will not show the configuration that a running unit happened to hold at power-down.

    What CRP1, CRP2 And CRP3 Remove

    The protection word is a single 32-bit value at 0x1FC. CRP1 disables JTAG and the ISP read and compare commands, and blocks writes to sector 0, but sector erase remains available. CRP2 disables read, write-to-RAM, copy-RAM-to-flash and go, leaving only full-chip erase. CRP3 closes the P0.14 ISP entry pin when user code is valid. On early bootloader revisions only the 0x87654321 level exists at all, so the first serial exchange is a version query, not a read request.

    None of these levels encrypts the array. “Encrypted” in a service description refers to the customer’s problem, not to a cipher in the silicon. The bytes at 0x00000000 are plain instruction words and constants; what makes them hard to obtain is the boot ROM refusing to hand them out. Stating that plainly saves a lot of wasted effort looking for a key that does not exist.

    Rebuilding A Runnable Image

    A brief that says restore encrypted LPC2129FBD64 program still starts with the vector checksum rather than a cipher.

    A recovered file has to be checked the same way the boot ROM checks it. We recalculate 0x14, confirm that the reset vector points into the application, and mark which of the seventeen sectors were programmed and which were left erased. Flash programming on this family moves 256 or 512 bytes at a time and a sector or full-chip erase takes roughly 400 ms, so the sector boundaries are also the natural boundaries for verification.

    ARM and Thumb code can be mixed at subroutine granularity. A gateway stack compiled for density will be largely Thumb, and a flat 32-bit disassembly will produce plausible-but-wrong instruction sequences. Where the image is going back onto a reference board, that distinction decides whether the restored firmware actually runs.

    Scope And Related Work

    We ask for the part marking, the board photographs and the observed boot behaviour before quoting a route. The contact page is where that intake starts. For the general ordering of protection layers see this walkthrough; the AT32F405 case is a useful contrast because that family really does implement an execute-only region. Within this family, compare the no-CAN LPC2114FBD64 and the 256 KB LPC2124FBD64, which share the same sector geometry.

    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

  • LPC2119FBD64: Two CAN Channels, One 4K Sector Zero

    Two CAN controllers on a 64-pin microcontroller leave very little room for anything else. The LPC2119FBD64 is the 128 KB member of the LPC2100 line with those two channels, an acceptance filter shared between them, 16 KB of SRAM and a four-channel 10-bit ADC. It was built for gateways, and twenty years later most of the boards still in service have no source tree left. Recovering a protected LPC2119FBD64 binary therefore starts with a question that has nothing to do with the debugger: which parts of the application are in flash at all?

    Acceptance Filters Are Not Firmware

    The CAN controllers keep their message objects and filter tables in RAM and in dedicated registers. None of that appears in a flash dump. A customer who expects the recovered image to explain why a gateway forwards one identifier and drops another will be disappointed unless someone also documents the filter configuration. We separate the two from the outset: the code and constants live in the array, while the runtime state lives elsewhere and has to be reconstructed from the application itself.

    That distinction is easy to miss on a part with this much peripheral integration. Two UARTs, two SPI ports, a fast I2C bus, six PWM outputs, two 32-bit timers and a vectored interrupt controller all feed the same 16 KB of SRAM. A readout gives you the logic that configures them, not the configuration captured at a particular moment.

    Sector Zero Carries Two Different Things

    To recover protected LPC2119FBD64 binary, start with the sector map.

    The flash array is organised in 4 KB sectors at the bottom and 32 KB sectors above, with 4 KB sectors again near the top. Sector 0 holds the ARM exception vectors, including the reserved word at 0x14 whose value must make the eight vectors sum to zero, and it also holds the Code Read Protection word at 0x1FC. One 4 KB erase therefore removes both the entry point of the application and the setting that governs whether it can be read.

    That is why the CRP level changes the geometry of a recovery. CRP1 forbids writing sector 0 but still allows individual sector erases. CRP2 disables read, write-to-RAM, copy-RAM-to-flash and go commands, leaving only a full-chip erase. CRP3, when valid user code exists, closes the P0.14 ISP entry pin as well. Any route that begins with an erase has already given up the objective.

    Bootloader Revision Comes First

    Early bootloader code implemented a single protection level selected by 0x87654321. Later /00 and /01 silicon added the three-level scheme with 0x12345678, 0x87654321 and 0x43218765, and NXP documented the diversified levels as available on the /00 parts too. Two boards with identical markings can behave differently at the serial prompt. Reading the boot code version over ISP is cheap and decides the whole plan, so it is the first electrical step after the marking is confirmed.

    CRP changes also require a complete power cycle. A freshly programmed board can still respond as an unprotected device until the supply has been removed and restored. We log the revision and the observed behaviour before any erase is considered.

    The Physical Route

    When the boot ROM offers no read command, the array has to be approached at the die. An LQFP64 with a 10 by 10 millimetre body gives a modest access window, and the flash controller’s check bytes have to be located before the user data can be interpreted. Reads are taken in sector-sized blocks and repeated from a second angle, then compared. A single-bit error corrected by the on-chip logic may be invisible in a raw capture, but it will change an instruction word.

    The vector table is rebuilt at 0x00000000 with the checksum word recomputed, because the boot ROM will not start an image whose vectors do not sum to zero. Thumb-heavy builds need particular care during disassembly: switching between 16-bit and 32-bit instruction streams at subroutine boundaries is normal on ARM7, and a flat 32-bit decode produces convincing nonsense.

    What A Gateway Board Asks For

    Most requests concern a unit that still works but cannot be reproduced. The useful answer is not just a binary; it is a binary, a sector map, the CRP state actually found, and a note on which peripheral registers must be re-derived from the code. For a part that shares its flash layout with the LPC2114, see that variant’s readout notes. Our contact route is where board photographs and part markings go, the memory-type comparison explains why this array is neither OTP nor mask ROM, and this ARM microcontroller case covers a related 32-bit recovery. The LPC2132FBD64 page discusses a flash array with error correction.

    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

  • LPC2210FBD144: The Firmware Is Not On The Die

    The first question about this part has an answer that surprises most people: there is no firmware inside it. The LPC2210FBD144 is a ROMless ARM7TDMI-S microcontroller in a 144-pin LQFP, with 16 KB of on-chip static RAM and an external memory controller but no on-chip flash program memory at all. Recovering locked LPC2210FBD144 source code is therefore a board-level job. The device executes code from a separate memory chip, and that chip is what has to be read.

    Boot Pins Decide Everything

    At reset the state of P2.26 and P2.27, labelled BOOT0 and BOOT1, selects the width of the memory device attached to chip select 0. Both pins have internal pull-ups, so a board that leaves them unconnected boots from a 32-bit-wide device.

    BOOT1 BOOT0 CS0 boot device
    0 0 8-bit memory
    0 1 16-bit memory
    1 0 32-bit memory
    1 1 16-bit memory

    The boot ROM initialises the external memory controller according to that choice, reads the first eight words from the external device, and transfers control to the reset vector. If the code was built for a 16-bit bus and the board straps a 32-bit one, nothing runs. Documenting the strap state is therefore part of any successful recovery, and it is a detail that a schematic or a careful photograph of the pull-up resistors can settle.

    Four Banks, Sixteen Megabytes Each

    The EMC supports four independently configured banks at 0x80000000, 0x81000000, 0x82000000 and 0x83000000. Each can hold SRAM, ROM, flash EPROM, burst ROM or memory-mapped peripherals, and each can be 8, 16 or 32 bits wide. The four BCFG registers starting at 0xFFE00000 set wait states, idle cycles, write protection and bus width. The 144-pin package brings out address lines A[23:0] and data D[31:0], while bank selection uses address bits A[25:24].

    This means a single board can carry program code on a parallel flash in bank 0, a large data table on a second device, and scratch RAM on a third. A request that says “read the firmware” has to specify which of those is the code store, because the microcontroller cannot tell you.

    Why CRP Is Not The Issue Here

    A recover locked LPC2210FBD144 source code ticket should really be addressed to the memory chip beside the MCU.

    Code Read Protection on the LPC2000 family is a word at 0x1FC inside sector 0 of on-chip flash. This device has no on-chip flash, so there is no such word and no boot ROM policy blocking a read of program memory. The protection problem moves to the external device: a parallel flash may have its own sector protection, a ROM may be mask-programmed, and an SRAM-backed design loads code from somewhere else entirely at every power-up.

    That shift also changes the risk. An erase command sent to the wrong chip destroys code that the MCU itself cannot replace. We identify the memory device by its marking and pinout before applying any programming signal, and we read it directly rather than through the microcontroller.

    What A Board-Level Read Looks Like

    The external device is usually a straightforward parallel flash with a documented command set. Where it is socketed, removing it and reading it in a programmer is the least invasive option. Where it is soldered, an in-circuit read has to account for the MCU driving the bus, so reset is held and the pin states are controlled. Byte-swapping matters: a 16-bit-wide boot device stores the ARM vector table in a particular lane order, and a dump taken with the wrong assumption produces a plausible-looking but unusable image.

    The 8 KB boot block inside the MCU, the ISP and IAP routines in it, and the JTAG and EmbeddedICE-RT debug interfaces all remain available, but none of them contains the application. The 16 KB of on-chip SRAM is volatile and holds nothing after power-down.

    Delivery

    The result is a binary and an Intel HEX covering the external code device, a note on the BOOT strap state and bus width, and a map of which banks were populated on the board. If more than one non-volatile device is present, each is identified separately. Where a chip has its own protection feature, that is recorded rather than quietly worked around.

    Related Work

    Our service scope covers board-level intake. The memory-type comparison is useful here because the code may sit in flash, ROM or an OTP device, and this AT32F405 case shows the opposite situation where everything is on one die. Compare the LPC2212FBD144, which adds 128 KB of internal flash to the same bus, and the LPC2290FBD144, the other ROMless member with two CAN channels.

    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

  • LPC2364FBD100: 34K Of RAM In Four Separate Pools

    Thirty-four kilobytes is not one block of memory on this part. The LPC2364FBD100 is the 128 KB flash member of the 72 MHz LPC23xx family, in a 100-pin LQFP with an RMII Ethernet MAC, a USB 2.0 full-speed device, two CAN channels, a six-channel 10-bit ADC, a 10-bit DAC and 70 GPIO. Its SRAM is split into four physically separate pools, and to recover encrypted LPC2364FBD100 code you must know which of them a routine can actually use.

    The Four Pools, And Why They Are Separate

    Eight kilobytes sit on the ARM local bus, sixteen serve the Ethernet controller, eight serve USB and general-purpose DMA, and two are powered from the RTC battery domain. The Ethernet and USB blocks can be used as ordinary SRAM when their peripherals are idle, but they are on a different AHB subsystem. That distinction is not cosmetic: the IAP routines in boot ROM require the source data to be in local-bus SRAM. A buffer placed in the USB or Ethernet block cannot be copied straight to flash by an IAP call.

    With only 8 KB of local SRAM, an in-application updater on this device stages 256, 512, 1024 or 4096 bytes at a time, with the destination aligned to 256 bytes. Finding that loop in a disassembly identifies the field-update path and also tells you which sectors the application treats as writable data. The 2 KB RTC-domain block survives a main power loss, so it is the one place where customer state may persist outside flash.

    Dual AHB Changes A Live Capture

    The LPC23xx uses two AHB buses so that Ethernet DMA, USB DMA and instruction fetches from on-chip flash can proceed without contention. For a readout that means bus activity is not a simple linear stream of instruction fetches. A logic analyser on external pins sees peripheral traffic and GPIO toggling, not the code being executed from the internal array. The flash sits on the ARM local bus and is best approached through the array itself rather than inferred from external behaviour.

    The Array And The Boot Block

    One hundred and twenty-eight kilobytes is eight 4 KB sectors followed by three 32 KB sectors. The 8 KB boot block is at 0x7E000 to 0x7FFFF and holds the ISP, IAP and RealMonitor routines; ISP and IAP commands cannot write, erase or branch into it. Sector 0 contains the eight exception vectors, the checksum word at 0x14 and the Code Read Protection word at 0x1FC.

    Protection here is a policy enforced by boot ROM code at reset, not an encryption layer over the array. The word at 0x1FC selects how much of the ISP command set survives. In-application programming is deliberately exempt: a shipped product must still be able to rewrite its own flash through the ROM entry at 0x7FFFFFF0, and that call is made by code already executing on the chip. Recognising an IAP wrapper in a recovered image tells us which sectors the application treats as writable, which is often where calibration values live. The vector checksum is evaluated before any of these rules, so the state of sector 0 is the first fact to establish.

    What Ethernet And CAN Do Not Store

    The RMII MAC needs an external PHY; the registers, descriptor rings and packet buffers are volatile. The two CAN controllers keep their acceptance filter in RAM. Neither contributes to a flash dump. What the array does hold is the initialisation code and any static configuration tables, and separating those from executable code is part of producing a usable delivery.

    The PHY Is Off-Die

    The external RMII PHY and the CAN transceivers hold only volatile registers and a little FIFO state. Ruling them out at intake keeps the scope on the one non-volatile array that actually contains the application.

    Handover

    The handover separates the internal array from anything found on a card. We ship a binary plus HEX for the programmed sectors with a blank-sector map, recompute the 0x14 checksum, and log the protection word and ROM revision. ECC bits captured with the data are kept alongside it; where a region had to be rebuilt rather than read, the manifest says so.

    Related Work

    The contact page handles intake. The NVRAM article explains the RTC-domain retention question, and this AT32F405 case is a contrast with a family that implements an execute-only region. The LPC2364HBD100 is the same die qualified to a higher temperature, and the LPC2368FBD100 is the 512 KB member with SD/MMC added.

    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