Rendered from lab/sessions/session32/README.md in the repository.
Why. Reading Datel's firmware offline (tools/probes/fw_regscan.py, written up in
docs/REGISTERS.md) showed 24 control registers, an AR button on LINK_IN
bit 10, a bit-banged SPI port on LINK_OUT bits 10-12 (the DS card's save chip), four write-only slots
that look like ROM-patch hardware, and a code window at 0x09FE0400. None of it has been read on the
real DUO except LINK_IN/OUT, 0x09FE0160 and 0x09FFE140.
Set-up. Firmware v4.2, any GBA cartridge in the slot, USB SERVER MODE. For p_switch, be at the
console: during its ~20 s, flip the AR switch OFF and back ON, press the AR button, and (if you have
one) push in and pull out a DS card.
Run (only after Fred's yes): see tools/probes/README.md. In short:
python lab_runner.py runs the 17 queued jobs (core probes, a restart then the garble hunt, five timed
speed reads, the save-chip ID probe and the cartridge report; about five minutes), then the console
probe p_switch, the USB check, and duo_probes.py report, which writes summary.md here.
| Probe | Question |
|---|---|
| p_regs | Do Datel's write-only registers read back? What do all 24 hold at rest? |
| p_decode | Which address bits does the Actel decode? Anything Datel never touches? |
| p_window | What reads at 0x09FE0400 with the DUO's own mapping? (summary only) |
| p_flash | Are the two undescribed stretches of the DUO's flash blank? (summary only) |
| p_busmap | Is anything else mapped in the cartridge space, DUO and game mapped? |
| p_waitcnt | Which ROM wait states can the DUO's flash and the game keep up with? |
| p_mirror | Where do the flash and the game mirror; does the header overlay repeat in the mirror? |
| p_idexit | How does the Sanyo save chip leave ID mode? (October's probe contradicts the simulator) |
| p_garble | Straight after a restart, are the first bytes ever garbled? |
| speed_* (5) | How long do 1, 16 and 64 KB take, compressible and not? (refits the speed model) |
| p_switch | Which LINK_IN bits follow the switch, the button and a DS card? (at the console) |
Safety. Reads, samples and delays only; the only writes are the mapping register (Datel's own
values) and WAITCNT, which the PC and the GBA both enforce. Every probe was run against the simulated
DUO first (tests/test_probes.py: all pass). A read can at worst upset the link (cure: power cycle);
none can write the DUO's flash or the cartridge.
Results (full table: summary.md)
- USB: "Datel" / "GBA Link", USB 1.1, release 0x0001, 100 mA; interrupt IN interval 10 ms, OUT 1 ms. HELLO round trip median 48 ms (min 11 ms); a stream costs about 16 ms per 8-byte packet.
- Control area: only 0x09FE0000-0x09FE01FF is decoded. All of it reads 0 at rest except 0x09FE0080 (0x0FF0), LINK_IN (0xF5xx with the switch ON, also readable at 0x09FE01C2) and LINK_OUT (0x0002, not the GBA's last write). From 0x09FE0200 up, including the four "patch slots", reads are open bus, with no mirrors. 0x09FFE140 was never a readable register: its 0xF0A0 is open bus.
- 0x09FE0400 window (DUO mapped): open bus.
- Flash: 0x0802EAC4-0x0802FFFF holds zeros; 0x0803C000-0x0803FFFF is 99% blank.
- Bus map: nothing else anywhere in the 32 MB cartridge space, DUO or game mapped.
- Wait states: the DUO's flash reads correctly at all 16 settings.
- Sanyo ID mode: AA-55-F0 never exits it (seven waits up to 0x40000); a lone F0 does. The lab probe therefore left the chip in ID mode, which made the cartridge report's "two identical 32 KB halves" warning a false alarm (session 33 confirmed: after a lone F0 the report is clean).
- Garble: none in 16 reads after a restart.
- p_switch: run with no one at the console, so only the idle state (0xF538) was seen.