An HVAC controller retrofit programme needed a readout of the protected flash firmware from controllers it had shipped years earlier, each built on the PIC24FJ64GA008: the 80-pin variant of the family, same 64 KB of program flash and 8 KB of SRAM at up to 16 MIPS, but with enough pins exposed to make the bench work genuinely different. Retrofit programmes live or die on their ability to service shipped units, and firmware recovery is usually the cheapest path back to a maintainable baseline.
The GA008 exposes the same peripheral set as its 64-pin sibling but with more ports broken out, which matters twice: the ICSP pair is reachable on a production fixture without desoldering, and the running system offers more observable interfaces. The configuration-word session ran first, as always: FBS showed boot segment security in the stronger mode, where both the boot segment and general segment read back as zeros through ICSP. That is the strongest guard this family offers, and it converts the job from a readout into a reconstruction exercise.
The controller’s firmware self-programs its own flash: the family supports self-reprogramming under software control, and the retrofit programme’s own field-update path had been built on it. The update path accepted a signed image over its service UART, verified it, and wrote it row by row, with each 64-instruction-word row preceded by a verification step. Reading the verification logic told us what the bootloader checked, and the boot region’s behaviour was then mapped by exercising the update path with deliberately malformed images, a controlled-probe technique the boot-cluster recovery on an RL78 note develops on Renesas silicon. Each response narrowed the reconstruction of the protected region until its checksum routine and entry logic were re-derived with confidence bounds we could state numerically.
The family programs flash in rows of 64 instruction words and erases in larger pages, which shapes both the update protocol and the recovery verification: our reconstruction checked contiguity at row boundaries, since that is where partial writes leave scars. The 10,000-cycle endurance rating and 20-year retention figures from the family datasheet framed the risk assessment for units that had been through many field updates; two units showed row-level damage consistent with an interrupted update years earlier, and their damaged rows were reconstructed from the surviving units’ images. The partial program-data recovery on an RX62T report covers the same interrupted-update archaeology on a different architecture.
The programme received a verified general-image reconstruction, the re-derived boot region with its derivation evidence, and a heximal assembly of the whole array suitable for reflashing service stock. Retrofit units came back under one maintainable codebase, and the field-update path was rebuilt around the reconstructed bootloader with the security mode now chosen deliberately rather than by accident. Engineers planning the same work on PIC24FJ64GA008 hardware should budget for the reconstruction phase honestly: it is measured in sessions on multiple units, not in one probe session, and our recovering data from a secured part service page explains how that phase is scoped and quoted. The flash content extracted from a GD32F303RG and boot-mode access on an RX24T notes give comparable baselines for the reconstruction discipline on other vendors’ silicon.
The family’s fail-safe clock monitor, which switches to the internal RC oscillator when the main clock fails, shaped the bench work in an unexpected way. Early reconstruction attempts drove the controller’s crystal input with a signal generator, and the monitor tripped, silently migrating the system to the internal oscillator and invalidating the timing measurements. Once recognised, the behaviour became a tool: deliberately failing the main clock let us observe the boot flow’s response under a second, well-defined condition, adding a controlled dimension to the observation matrix. Bench recoveries advance by turning accidents like this into instruments, and the discovery is now a standard line in our planning checklists for parts of this family.
The retrofit programme’s acceptance requirement produced a small but useful artefact: a matrix crossing three controller vintages against four firmware baselines, with a pass verdict for every combination on the bench rig. The reconstructed firmware passed all twelve cells, and the matrix itself became the retrofit programme’s regression document, replacing a decade of tribal knowledge about which vintage tolerated which baseline. Deliverables of this kind cost little once the recovery is verified, and they outlast the engagement, because they are the first thing a successor engineer reads. We now include the matrix as a standard section in every fleet recovery report, and several customers have adopted the format for their own regression testing.