An irrigation-controller maker asked us to read out the encrypted flash data regions of its fielded controllers, built on the PIC24FJ32GA104: 32 KB of program flash, 8 KB of SRAM, 44-pin TQFP, up to 16 MIPS. The request was narrower than a full recovery, which changes the shape of the job: the maker held the code and wanted the per-unit provisioning data, the zone schedules and valve-calibration values that each controller had accumulated in service. Data-region readouts are a distinct discipline from code recovery, and this note keeps to that scope.
The configuration-word session showed boot segment security at the standard mode, so the general segment was open and the data regions were inside it. But the maker’s real constraint was time: hundreds of fielded controllers, each needing its own data preserved during a coming firmware migration. A full-array readout per unit was feasible but slow; the better plan read the configuration words once, then targeted the data regions by address range derived from one reference disassembly. The family’s row structure of 64 instruction words made the targeted reads clean: data regions began and ended at row boundaries, so reads aligned without partial-row complications.
The 44-pin package breaks out the PMP parallel port and 35 I/O lines, which the controller used for its valve-driver bus, but the fleet work ran on the ICSP header that every production fixture already mated. A three-pogo fixture over the programming header took one board per minute through its targeted read, and the fleet completed over two days of unattended sessions. Fleet-scale data extraction is as much logistics as technique: checksums per unit, a provenance row per controller, and an abort rule for boards whose configuration words differed from the reference. Three boards differed, in fact, carrying an older firmware revision whose data layout had shifted by one row, and the provenance table caught all three.
The extracted regions held zone schedules in a packed bitfield format and per-valve calibration as current-versus-flow tables. Decoding the bitfields came from the reference disassembly’s access patterns; validating the calibration tables came from the controllers’ own diagnostic mode, which reported live valve currents that matched the stored curves. Cross-validating stored data against live behaviour is the standard our recovering data from a secured part page applies to provisioning data, and it caught one unit whose calibration block had been corrupted by an interrupted write years earlier; that unit’s table was rebuilt from its live measurements.
The maker received a per-unit data archive with decoded schedules and calibration tables, the address maps per firmware revision, and a migration plan that wrote the preserved data into the new firmware’s format through the controllers’ legitimate update path. For {x-p11} fleet work, the configuration read and one reference disassembly convert hundreds of unknowns into one layout question, and the a hex image recovered from an RX62T and flash content extracted from a GD32F303RG notes show the same reference-image approach paying off on other architectures.
The extraction fleet ran on a bench schedule rather than a technique: three pogo fixtures in rotation, one operator loading boards, and an abort rule that quarantined any unit whose configuration words deviated from the reference set. Over two days the line processed the fleet with three quarantines, all three traced to an older firmware revision rather than damage, and all three re-processed under the revised layout map. Fleet data extraction is mostly this: logistics, provenance rows, and abort discipline. The binary recovery service page describes the same operational pattern for binary-recovery fleets, and the boot-mode access on an RX24T note records the reference-layout principle from the Renesas side.
The zone schedules packed seven-day programs into record structures the firmware unpacked bit by bit, and the decoded layout fed a migration tool the maker’s developer now maintains. The tool validates its own output by round-tripping: it repacks a decoded schedule, and the controller’s diagnostic mode confirms the repacked record against the original checksum. Round-trip validation is the cheapest strong guarantee available for format migrations, and it caught one bit-order assumption in the first week that static reading alone had mis-set. Delivering tools alongside data has become our default for fleet migrations, because the tool outlives the engagement and keeps the archive honest.