A door-access panel maker needed its locked flash firmware unlocked across a service stock of controller boards, each built on the PIC24FJ16GA004: 16 KB of program flash, 4 KB of SRAM, 44-pin TQFP, up to 16 MIPS. The 44-pin variant of the smallest family member changes the balance from its 28-pin sibling: 35 I/O lines and the parallel master port come out to the board, and on this controller the PMP lines drove the reader interface, which gave the running system an observable side the smaller package hides.
The ICSP configuration read showed boot segment security at the standard mode: the boot segment blacked out, the 16 KB general segment stayed open. Unlike the 28-pin case in this batch, that single register pair resolved the job immediately, because the maker’s real need was the access-panel logic and the reader protocol, both of which lived in the open region. The full readout of 5,504 instruction words ran in one session, and a second board’s image cross-verified it row for row.
The panel talked to its card readers through PMP-mapped lines, and the protocol had never been documented; the maker’s integration partners depended on reverse-engineering it from captures. The recovered disassembly contained the protocol handler in full, and annotating it produced the first complete protocol description the maker had ever owned, including a retry policy that explained a long-standing intermittent-reader complaint. Firmware recovery that yields a documented protocol is worth more than the binary alone, and it is the class of outcome our rebuilding source from a dump engagement model is built around. The same protocol-from-disassembly method appears in the reading a heximal out of an RL78 and the serial-programming ID case on an RL78 notes.
The protected boot segment held the image-verification logic, reconstructed through the observation-matrix method in one session: varied images in, accept and reject out, rules fitted, synthetic validation image accepted by the original boot. At 16 KB scale the whole reconstruction fits in a page of evidence. The a BGA-packaged STM32F411VCH6 report sets the comparable standard for execute-only reconstructions where the region resists longer.
The 16 GA parts halve the family’s data memory to 4 KB, and the firmware’s style showed it: stateless control flow, constants reloaded from flash, no large buffers. That style left no runtime data worth capturing, so the recovery stayed cleanly within flash. Engineers comparing the {x-p13} to its 8 KB siblings should expect exactly this: smaller RAM means a more transparent, less state-dependent recovery, as the a 16 KB RL78/G13 and a locked STM32F401CCU6 notes document on other architectures.
The unlocked firmware reflashed onto service-stock boards and passed the panel’s reader, relay and watchdog tests; the protocol document went to the maker’s integration partners under their own terms. The delivered package also included the configuration words and a short note on why the standard security mode, chosen deliberately next time, protects the boot region without blinding the maker’s own service organisation. The microcontroller recovery service page covers how such mode recommendations are evidenced rather than asserted.
The reader protocol’s electrical timing had never been written down, and the recovered handler pinned it: bit periods, inter-frame gaps and the retry backoff, each as a constant in the disassembly and each confirmed by capture against live readers. The intermittent-reader complaint that had circulated for years resolved to one backoff constant that a late firmware revision had shortened beyond a marginal reader’s tolerance, and the annotation documented it plainly. Recovered-protocol work earns trust exactly this way, by explaining a field symptom with a named constant and a capture, rather than with an opinion.
Following the backoff constant deeper into the handler revealed the complete retry policy: three attempts, an escalating gap, and a fallback path that switched the panel to a degraded single-reader mode rather than dropping the door. The fallback had never been documented and its existence changed the maker’s support guidance, because panels in degraded mode look, to installers, like dead readers. The protocol document now leads with that mode’s signature, and support tickets about it dropped to zero within the maker’s first quarter of using the documentation. Recovery value frequently lands in support economics rather than in the binary itself.