10. Ghidra recipe¶
For the One's code half (one34_code.bin, 60050 bytes):
- Processor PIC-18, little-endian, 24-bit addressing.
- Base address
0x20000in the CODE space. - Entry point
0x2EA38. - Mark
0x20000-0x2002Fas data. It is the header plusDEADDEADfill. Letting the analyzer run over it produces plausible-looking nonsense:48 47disassembles as a validRLNCF, so it will not obviously look wrong. - Add the five external entry points at
0x1E00Cthrough0x1E014. - Expect to define the SFR names by hand from the PIC18F87J50 register map. Ghidra's generic PIC-18 spec does not name them, and the peripheral code is unreadable without them.
For arch 14 (h700_r2.bin, 76672 bytes, or the 600 dump):
- Same processor, base address
0x9000, entry point0x1BB38for the 700 and0x1A26Efor the 600. - Header is only
0x00-0x0Fhere; real code starts at0x9010. - Prefer the 700 image over the 600 dump: it is complete, whereas the 600 dump is missing its last 4800 bytes.
Independent sanity check outside Ghidra: gpdasm -p p18f67j50 (arch 14) or
-p p18f87j50 (arch 12) from gputils, after converting to Intel HEX.
Section 9 | the archive | section 11. Section 10 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.