The stability test this repository recommended for 'C50 vs 'C51 cannot work. It
expected two reads of 0x0800 to differ on a 'C50 because that is the firmware's
live SARAM scratch, but the probe resets the DSP and takes it over, so nothing is
running underneath to move. It scores every part as 'C51.
What separates them without needing the firmware alive is whether the region
accepts a write: SARAM seen from both spaces is one physical memory, so a write
through data space must read back through program space, and ROM cannot. New
kernel build_memory_test_probe, wired as probe_transport --memory-test, two
patterns per address so a constant cannot pass by coincidence. Run twice on the
25 MHz board, identical both times:
0x0800 write lands in data space, program space unaffected
0x1800 same
0x2400 program space follows the write exactly
With MP/MC=0 and PMST.RAM=1 a 'C50 maps 9K of SARAM into program space over
0x0800-0x2BFF and all three would follow. That split is the 'C51 map instead - 8K
of ROM at 0x0000-0x1FFF winning over SARAM in program space, writable memory
above. The same kernel run against the emulator fixture, which maps a 4K ROM at
0x0000-0x0fff, reports the opposite split, so a null result would have shown.
MP/MC has now been read directly, discharging the caveat on every ROM reading
here: PMST is 00b0, so MP/MC=0, microcomputer mode - the opposite of the MP/MC=1
that board.md and board-parts.md assumed. PMST also has RAM and OVLY already set
on entry, so the opl @07,#0030 in every kernel has never changed anything.
The remaining three quarters of the ROM are now read. The full 8K is mostly
unprogrammed: 1920 words of boot code at 0x0000-0x077F, a 128-word mailbox block
the mask carries twice at 0x0F80 and 0x1F80, and 6016 words of a 32-word
FFFF/0000 array pattern. 0x0780-0x07FF is that same pattern, so the old 2K
capture ran off the end of the programmed part rather than stopping at a
boundary.
The memory-map rows in board.md are left flagged rather than reworked: they were
written against MP/MC=1 and a 2K ROM and both are now known wrong.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>