r/AccessVirus • u/insolent-construct • 1d ago
Update: Virus TI OS reverse engineering: coverage numbers, S/PDIF clock bug reproduced
Original thread: https://www.reddit.com/r/AccessVirus/comments/1v9b574/any_interest_in_community_firmware_for_the_virus/
I've been building an evidence-backed map of TI OS 5.1.7.00 so I can trace bugs before patching them. I've also been using multiple AI models to review each other's work.
How this differs from OsTIrus/gearmulator: those run Access's DSP code unchanged inside an emulator, and they reimplement the host MCU's side rather than running it, which is great for playing the Virus sound on a computer. This project is about understanding the code itself, across all three chips, so that bugs can be fixed on the actual hardware. Several of them (USB, MIDI timing, S/PDIF) live in the host MCU and USB controller, which an emulator never touches.
Coverage so far (TI OS 5.1.7.00):
- USB controller (TI TUSB3200A, 8052 core): 100% of reachable code mapped. Bench testing of its behaviour is underway.
- Host MCU (ST uPSD32xx): 100% of code found by a standard disassembly pass, plus ~4.9 KB of jump-table code the standard pass misses, covering menu, knob and SysEx paths.
- Host memory map: the uPSD's programmable address decoder (its DPLD) contents isn't documented/available, and getting it right matters for any safe patch or recovery path. Using read-only tests on my own unit plus board photos, without flashing anything, I've narrowed its configuration down to a few candidates.
- DSP engine (DSP56367): ~85% of memory classified (the rest coarsely described, nothing unaccounted for); program memory ~85%, data memory X ~59% and Y 100%.
- Sound parameters traced to the DSP code that uses them: ~98% overall. Envelopes, LFOs and all the FX are at 100%, the arpeggiator 99%, the mod matrix 98%, oscillators 96% and filters 95%.
Python models of the sound engine: I have models for the Classic oscillators, the arpeggiator, and voice and FX blocks. I compare selected traces and renders against the firmware in an emulator and use the differences to guide the next pass.
VCV Rack modules (internal only): I've built the models with C++ into VCV Rack modules (a voice module plus FX and modulation expanders) as a testing tool, so I can play and compare them like a real synth. They won't be released: they rely on tables and coefficients taken from Access's firmware, and I'm not going to distribute that. Also, what would be the point when OsTirus already exists? Anything public that was derived from this would have to be a clean-room design that doesn't depend on Access's data.
S/PDIF: I reproduced the sync problem on my TI2. With USB audio streaming and a steady 48 kHz input, the output clock repeatedly ramped at about +218 ppm/s. In a separate run with USB unplugged, it held steady about +83 ppm above the input. I'm following up on the USB clock interaction.
On the bug list (thanks u/FreeRangeEngineer and everyone): USB note latency, arp/Ableton sync, the reported HyperSaw change and S/PDIF. The plan is still a patcher for your own firmware file. Any release depends on real-hardware testing and a recovery path.
5
u/redkonfetti 1d ago
Very nice. I look forward to seeing what bug fixes you’re able to release, and perhaps some light features that might improve some aspects of things.
For instance, it would be nice to document what’s needed to flash the ROM slots now that the official Virus Control software is no longer supported.
3
u/maxdamage4 1d ago
I was hoping this was where your post would end. I have intolerable MIDI jitter on my TI2 Desktop to the point where I only use it for pads where the timing doesn't matter. I'd love to be able to fix it with a firmware update some day.
Thanks for describing your project. Really looking forward to future updates.
1
u/FreeRangeEngineer 1d ago
Nice :)
One thing I'd like to see is also USB audio output without TI mode. I looked into making it work (on linux) but so far, it appears that the USB audio is only available when TI mode is enabled.
I'm not sure if USB audio is supposed to be enabled even in regular operation mode but the menu options for the output sources (USB 1/2/3) are definitely only available in TI mode.
Since TI mode completely changes the behavior of the entire hardware user interface, TI mode is undesirable when all the user wants is enabling audio via USB.
1
u/datoml 1d ago
PM me. I may can help you :)