Let any board ROM take DTE input, not just the reference build

The ROM harness has produced no serial output for any image since b013186,
which is what the two test_rom_serial failures have been. Bisecting it: that
commit gated receive delivery on [0x026A] holding 0x9a06, a callback pointer
read out of the IDSDL302 reference build. The captured board ROM holds zero in
that cell for the whole run, so no ROM but that one could ever take a
character. What the gate has to establish is that a receive callback exists,
which the DTE-open edge already establishes on its own.

With that fixed the ROMs take their input - capture-01 receives all four bytes
of "ATI\r", which is what its test expects - and still transmit nothing. The
capture is not the problem: writes to S0TBUF are picked up from MMIO for any
build, and uart.transmitted stays zero, so the ROM is not replying at all.
That is the remaining half and it is older than this commit.

Also corrects the board's identity in the README. The unit runs supervisor
7.4.16 / DSP 3.1.2 - the capture-403 image - having previously reported
7.3.14 / DSP 3.0.13, which is what the older notes describe.

Noted while here and not fixed: ram_dump cannot import. It asks flash_dump for
FIRST and RESET, its two board anchors, and neither exists any more; the
correct values are not recoverable from the code, so this needs whoever
removed them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Cryan209andClaude Opus 5 committed 2026-09-05 17:17:31 +12:00
1 parent 0f9ab7f705
commit 229ef5b952
2 files changed
+13 -2

No files matched your search

+4 -1
View File
@@ -15,7 +15,10 @@ and a RAM supervisor launcher for the 20.16 MHz reference. Its offline test
executes reset/download, DSP mailbox output and supervisor serial readback.
Hardware handshakes remain modeled; a physical RAM-load and launch mechanism
is still unverified. The same document describes the read-only `ATGLK2` serial
collector for the user's 20.16 MHz, 512 KiB, supervisor 7.3.14 modem:
collector for the user's 20.16 MHz, 512 KiB modem. That board now runs
supervisor 7.4.16 / DSP 3.1.2 - the image under
`artifacts/courier-board-21210-capture-403/` - having previously reported
7.3.14 / DSP 3.0.13, which is what the older notes below describe:
```sh
.venv/bin/python -m courier_emu.flash_dump \
+9 -1
View File
@@ -1317,7 +1317,15 @@ class CourierMachine:
and self.instructions >= DTE_TYPING_INSTRUCTIONS
and (
not self._rom_tick
or int.from_bytes(_uc.mem_read(0x026A, 2), "little") == 0x9A06
# The ROM must have a receive callback installed
# before a character means anything to it. Requiring
# one specific pointer value here was reading a
# constant out of the IDSDL302 reference build: the
# captured 7.4.16 board holds zero in this cell for
# the whole run, so no ROM but that one could ever
# take input. What the callback has to be is present.
or self._rom_dte_opened
or int.from_bytes(_uc.mem_read(0x026A, 2), "little") != 0
)
):
# Put the character on the wire before handing it over.