3. Flash layout per architecture¶
| arch 12 (Gin, Harmony One) | arch 14 (Harmony 600 / 700) | |
|---|---|---|
| firmware storage (external flash) | 0x020000 to 0x02EA92 |
0x000000 to 0x0112C0 (600), 0x012B80 (700) |
| firmware execution base | 0x020000 |
0x009000 |
| execution model | in place from external flash | copied into internal flash |
| safe-mode GSPM config | 0x002000 to 0x0042C6 |
0x020000 to 0x021BC7 |
| user GSPM config | 0x040000 |
0x030000 |
| what concordance dumps | safe-mode config, no code | first 64 KiB of the code, truncated |
Both architectures reserve a 128 KiB firmware area. Arch 12 puts it at 0x020000 with
the safe-mode config below it; arch 14 puts it at 0x000000 with the safe-mode config
above it. The two are mirror images of each other.
Why the execution models differ¶
For arch 12 the storage address and the execution address are the same (0x020000),
so the PIC18 must be executing in place from the external NOR flash. That requires an
80-pin PIC18 J-series part with an external memory bus, running in extended
microcontroller mode: addresses below 0x020000 resolve to the 128 KiB of internal
flash, addresses at and above 0x020000 go out onto the external bus.
For arch 14 the storage address (0x000000) and the execution address (0x009000)
differ, so the image cannot be executed where it is stored. remote_info.h names the
arch 14 part as PIC18F67J50, a 64-pin device with no external memory bus, which
confirms it: the bootloader must copy the image from external flash into internal flash
at 0x009000. That leaves internal 0x000000-0x008FFF (36 KiB) for the bootloader
itself.
For arch 12 the micro field is empty. Given the EMB requirement and that arch 14 is
a PIC18F67J50, the One is almost certainly the 80-pin sibling, PIC18F87J50. Worth
confirming by opening a remote and reading the marking.
Arch 12 has an extra indirection in the update file¶
The One's Region_2.EZUpgrade decodes to 68952 bytes that split in two:
[0x00000 .. 0x022C6) 8902 bytes destination flash 0x002000 (safe-mode GSPM config)
[0x022C6 .. 0x10D58) 60050 bytes destination flash 0x020000 (application code)
The first part is byte-identical to the GSPM blob read off the dumped remote at
flash 0x2000. That is what proves the split point. The split is also discoverable from the
data itself: the GSPM header's end_addr field marks where the config ends.
The file states it too, and this section did not notice, section 87. Those are two
<PHASE>elements typedConfiguration_StaticandFirmware_Main, and the reader here threw the phase structure away before recovering the boundary from the container. Both routes give 8902 and 60050, so the derivation was right and it was a derivation of something the file says out loud.
Arch 14 keeps the two parts in separate files instead: the 700's .hfw ships
Region_2.EZUpgrade (code) and Region_3.EZHex (a GSPM config based at 0x020000).
Section 2 | the archive | section 4. Section 3 of the findings archive, which is frozen; the reference holds the current answer. The archive on GitHub.