Once a protected memory has been read out, the job is only half done. The raw stream still has to become a file the customer’s programmer, emulator or production line accepts, and that is where restore IC chip work begins. The code, firmware or program obtained from a restored device can be delivered in several formats — BIN, HEX, JED, POF, SOF, OTP, S19 or CDS — and the right choice depends entirely on the brand and family of the part.
BIN is the simplest: a straight binary image from address zero to the end of the array, no framing and no checksum. Every flash programmer understands it, which makes it the default for microcontrollers. HEX (Intel HEX) wraps the same data in ASCII records: each line carries a byte count, a 16-bit address, a record type, the payload and a two’s-complement checksum. Record type 00 carries data, 01 ends the file, and extended-address records (types 02 and 04) lift the 64 KB ceiling for parts larger than that — which is why a modern a 512 KB RL78/G13 image image spans many such records.
S19 (Motorola S-record) is the classic alternative: lines start with S0 for header, S1/S2/S3 for 16/24/32-bit addresses and S7/S8/S9 for termination. Automotive teams still ask for S19 because legacy toolchains refuse anything else. JED (JEDEC) is not a memory image at all but a fusemap for programmable logic — it describes which fusible links in a device such as a GAL or a small CPLD should be blown. When the target is a complex programmable logic device, our CPLD security-bit analysis notes explain why the fusemap, not the binary, is the meaningful deliverable.
POF and SOF belong to the FPGA world: a SOF is the SRAM object file streamed into a volatile device at configuration time, while a POF programs the configuration flash. Their internal structure is vendor-proprietary, and decompressing or re-targeting one is a project of its own — see our FPGA bitstream protection page. OTP refers to one-time-programmable images for parts that accept exactly one write cycle, so the file must be verified in simulation before it ever reaches the socket. CDS, finally, is a vendor-specific container that some toolchains emit for mixed code-plus-calibration images; where a customer’s programmer demands it we build it directly from the raw dump instead of converting twice, because each extra conversion is another chance to lose the calibration block at the tail of the array.
All of these formats are freely interconvertible with software tooling, and we convert at no extra cost to match each customer’s requirement. Conversion, however, is not a formality. A careless HEX-to-BIN split can drop the configuration word at the end of the array, and an a 192 KB RL78/G13 replication image we restored last year arrived exactly that way: 192 KB of code but a blank clock configuration, so the board never started.
Our verification loop is deliberately boring. After binary recovery conversion the image is re-parsed record by record, checksums are recomputed, gaps are reported explicitly rather than silently filled, and the result is compared against the raw dump byte for byte. Only then does the file go to the customer with a short report stating the array range covered, the gaps found and the options bytes handling.
One more practical note: a normal design flow compiles source code into firmware, and both HEX and BIN are its most common carriers. If the customer’s true goal is to modify and recompile rather than to clone, a rebuilt source tree from rebuilding source from a dump is usually the better deliverable, and a raw restored image becomes the reference for validating the rebuild. Either way, a restore that arrives as a clean, checksummed, documented file is one the production line can use the same day.