Reverse Engineering Microcontroller LPC2106FHN48 Firmware: Package Is Not Silicon
Two ordering codes, one die. The LPC2106FHN48 is the same 256 kilobyte ARM7 device as the LPC2106FBD48, mounted in a different package — the suffix tells you which, and the difference is entirely mechanical: leads versus pads, gull-wing versus land grid, and a thermal pad that changes how the part is soldered and how it is removed.
That distinction looks like a purchasing detail and behaves like an engineering constraint the moment a board has to be worked on. It does not change a single bit of the protection logic. It changes nearly everything about access.
What the suffix means
The family uses a three-part ordering code: the device, the package, and the temperature and packing options. The package field is the one that matters here — the same die is offered with leads for conventional assembly and with pads for a smaller footprint on a denser board.
For the recovery bench this has three consequences, and none of them are about the firmware:
| Aspect | Leaded package | Pad package |
|---|---|---|
| Pitch | 0.5 mm, accessible from the side | 0.5 mm, accessible only from the top surface |
| Probing | clip or fine probe on the lead | probe pad or via underneath, or nothing |
| Removal | hot air, leads visible | hot air plus preheat, pad invisible |
| Thermal path | through the lead frame | through the exposed pad to the ground plane |
| Decap | mould compound over the die, conventional | thinner body, pad on the back |
| Protection behaviour | unchanged | unchanged |
The two rows that cost time are probing and removal. A leaded part can be worked on with the board flat on the bench; a pad part usually needs the board lifted, preheated from below, and held while the joints reflow, because the thermal pad solders the device to an internal plane that acts as a heat sink.
Why the firmware is identical
Protection is implemented in the silicon, and the silicon does not know what package it was bonded into. The control word sits at the end of sector 0, the boot loader answers the same commands at the same addresses, and the debug unit responds to the same scan chain.
This has a practical value that is easy to overlook. When a customer has one variant and documentation for another, the procedures transfer exactly. A recovery plan written for the leaded part runs unchanged on the pad part, provided the connection to the pins can be made at all.
It also means a mixed bill of materials is not a firmware problem. Products that shipped in both packages over their production life carry the same code, and a dump from either is valid for the other.
The board is the real variable
If the silicon is the same, why does the job differ? Because the board around it does not.
A design that uses the pad package is usually denser, which means shorter traces, more layers, and fewer test points. The debug header may have been dropped to save space. The UART that the boot loader uses may be brought out only to a connector that is populated on some builds. The reset supervisor may be a tiny part with no accessible pin.
The practical work therefore starts with a survey rather than a connection: find the reset net, find the clock, find the two pins the boot loader needs, and find the ground plane the thermal pad is bonded to. That last one is unexpectedly useful — the exposed pad is a solid ground connection directly under the die, which makes it an excellent reference point for probing and, when the part is removed, a clean place to attach a lead before the die is exposed.
Decapsulation differences
Opening a pad package is a different mechanical exercise from opening a leaded one. The body is thinner, the mould compound is often filled differently to control warpage, and the die sits closer to the surface. The back of the die is bonded to the exposed pad, which means the thermal path is also a mechanical anchor and the die is less likely to lift when the compound is removed.
For a job that ends in a read of the array, that is good news: the back-side connection holds the die flat, and the front side can be worked with a shorter etch. For a job that ends at the debug port, none of this matters, because the package never has to be opened.
Matching the approach to the variant
The decision tree is short and worth stating explicitly.
If the boot loader answers, work through the UART and never touch the package. This is the fastest route and it applies identically to both variants — see LPC2102FBD48 data recovery for the command sequence.
If the debug port answers but the loader does not, attach and capture live, as described in LPC2106FBD48 live capture. The pad package makes no difference to the debug logic, only to how you reach the five debug pins.
If neither answers, the package becomes the deciding factor in cost, and the honest options are the ones in LPC2104FBD48 erase behaviour: a blank running part, or an invasive attempt with the risks that carries.
What to quote
Quote the variant. A job on a pad package includes board handling, preheating, and often a reball or re-solder step at the end, and none of that appears in a quote written for a leaded device. The firmware work is the same; the handling is not, and it is the handling that determines whether the board goes back to the customer working.
Ask for a photograph of the device markings before accepting the job, confirm the suffix against the schematic, and record which package the recovered image came from. When the customer later builds a replacement board in the other package, that record is what tells them the binary is still correct.
The general rule
Package variants are a common source of misquoted work across the whole industry, not just this family. The rule that keeps it honest is simple: identify the die to decide what is possible, identify the package to decide what it costs, and never let the second answer change the first. The silicon sets the ceiling; the package sets the price.