Skip to content

10. Ghidra recipe

For the One's code half (one34_code.bin, 60050 bytes):

  • Processor PIC-18, little-endian, 24-bit addressing.
  • Base address 0x20000 in the CODE space.
  • Entry point 0x2EA38.
  • Mark 0x20000-0x2002F as data. It is the header plus DEADDEAD fill. Letting the analyzer run over it produces plausible-looking nonsense: 48 47 disassembles as a valid RLNCF, so it will not obviously look wrong.
  • Add the five external entry points at 0x1E00C through 0x1E014.
  • 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 point 0x1BB38 for the 700 and 0x1A26E for the 600.
  • Header is only 0x00-0x0F here; real code starts at 0x9010.
  • 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.