21 October: a driver that wouldn't install
The MAX DUO's Datel drivers are 32-bit and unsigned, so Windows 11 won't load them. Rather than write a kernel driver, the DUO was attached to Windows' generic WinUSB driver with Zadig and spoken to from Python, using Datel's protocol worked out from their 2005 PC program.
Reading Datel's firmware
Datel's firmware had no way to read a GBA save at all - its cartridge commands are for DS cards. Read offline (Ghidra, Capstone), it showed the command table, the send and receive routines, the mapping register that swaps the game in, and a large empty padding area. That padding is where all this project's code lives.
v1 and v2: reading nothing
v1 swapped the game in, read 0x0E000000, and returned nothing but FF. v2 let the PC choose the mapping value and added a guard so a failed swap waits safely in RAM. Still nothing useful.
The lab, and the wake read (22 October)
The next firmware added a lab: CRC-checked, read-only experiments run from the GBA's RAM. Within an hour: reading the save straight after a swap gave FF every time; reading the game's header first gave the real save. That morning the first complete save came off the cartridge.
v3: fast, and stalled
Compressed, checksummed, fast - and on the real DUO it stopped with "upload timed out". The link between the GBA and the USB chip strictly takes turns; v3 sent packets back to back. The rule went into the simulator, which reproduced the stall, and only then was it fixed. v3.1 read a 128 KB Ruby save in 58 seconds.
v4 and v4.1
A restart command, Datel's original look, a known-games list, the cartridge report. The simulator caught a restart race; real hardware caught the 8-bit save bus (32-bit checksums never matched - the tool refused, as designed). v4.1 was confirmed: 21 identical saves.
v4.2 and everything after
v4.2 runs programs from the GBA's RAM, and every link feature became one: the Wireless Adapter and its distributor (the Old Sea Map, 28 October), the e-Reader (the Eon Ticket, 30 October), the trade partner (the WISHMKR Jirachi, 31 October), Record Mixing (6 November), the Colosseum (7 November), the GameCube discs' gifts, the save explorer, and the over-the-air work with real Wireless Adapters. The evidence page lists every session.
Lessons worth passing on
- Measure, model, test, correct the model. When the hardware disagrees, reproduce it in the simulator first.
- Test the tests. Every bug ever met is planted again and must be caught.
- Make failure safe. Every real-hardware failure ended in a refusal or a timeout, never a damaged save.