Repository navigation
Machine: Digitone II reboot over the development link (stock saves its working state first) - #2685
Draft
prodbysmolec wants to merge 143 commits into
Draft
prodbysmolec wants to merge 143 commits into
prodbysmolec wants to merge 143 commits into
Conversation
…SB MIDI SysEx Development bases (base.json's dev) observe stock's SysEx router at 0x4012197a (core-dn2 0.3's ev_sysex site) and answer the Analog Rytm MKII link's ident and mem requests from ev_tick through stock's sysex_send on USB. A host (tools/dn2_link.py) with a test of its frames, LINK.md, the goal row and a changelog entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chine/digitone-ii-link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The status byte of stock's USB MIDI receive parser, 0x445090ac on OS 1.12, reads 0xF0 while a SysEx message arrives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, not yet on a unit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…host on a unit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the encoder pushes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot yet on a unit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…red rate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot on a unit) DIAG, MARK and DIAG_STAGE are defined after their first use in link.c: move that block up before building. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The upload is copied to 0x47000000 before the reset, because the bootstrap reads the flashed MAIN OS into the staged upload. Host ramboot and bootdiag; LINK.md; a test that the host's limits are the gate's. Not yet on a unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the same Every Digitone II address link.c held (keys, the upload buffer, the RAM boot's copy and diagnostics, stock's boot argument, wait and drain) is a cflag in base.json, as the owner asked for one link with each machine's addresses in its recipe. The built package's sections, symbols and relocations are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the link Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 19 November records come from builds that still read through mem (review on repeat98#1763, 1 December). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-diagnostics # Conflicts: # sdk/machines/digitone-ii/GOAL.md
…ii-ramboot # Conflicts: # sdk/machines/digitone-ii/GOAL.md
…oader # Conflicts: # sdk/machines/digitone-ii/GOAL.md
…site reads it The base said version 2 but paged only the log (6,148 bytes), and device-log.ts refuses a version 2 log without the crash and stall records after it: on a unit, parseDeviceLog read nothing. LOG now pages DIAG_IMAGE_BYTES as on the Octatrack, the records zero, and a test reads a Digitone II image and refuses the log alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…silence On a unit the port disappeared during the reset and rtmidi raised InvalidPortError (or the port list changed under it), ending the command after the RAM boot had gone through. ask_ident_once now treats a port it cannot open as no answer yet. Host only: the package is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r not (measured on a unit) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… about 2 s, not 3 (measured on a unit) 60 UI ticks at about 30 a second: a freeze request was refused until 1.67 s after a person's press and accepted at 1.93 s (5 December 2026). Text only; the package is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-diagnostics # Conflicts: # sdk/machines/digitone-ii/LINK.md # sdk/machines/digitone-ii/tools/dn2_link.py
…ii-ramboot # Conflicts: # sdk/machines/digitone-ii/LINK.md # sdk/machines/digitone-ii/tools/dn2_link.py
…oader # Conflicts: # sdk/machines/digitone-ii/tools/dn2_link.py
… of the base's HELLO identity) The 2 s correction stays in LINK.md and the tool; link.c's comment follows with its next real change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…INK.md and GOAL.md One record for both sittings on the stack's development package a158dc91 (.syx 436b2afe), built from repeat98#1842 at 5a9aa01: the test procedure's fixed steps first, each run or not run with why (the runner has no Digitone II steps yet), then each PR's cases. Listening and the large flood's audio stay open. The link row and LINK.md now point at it; the 19 November run stays as history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at a late event costs a person The link's events stay held back at UPGRADE OS NOW? however late stock dispatches them; after the link has given up an event, a person's press of the same key can be held back once, so their first YES may do nothing (repeat98#1763 review, 5 December). The link row points at the new record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-diagnostics Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ii-ramboot The RAM boot row points at the 5 December record too: this version, where ramboot's own marked YES answers the prompt, ran on a unit there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oader The loader row points at the 5 December record: this head's RAM boot and loader ran on a unit there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er on 5 December Over the unit's USB audio, with 250,000 foreign SysEx sent while a pattern played, every trig interval stayed 0.48 to 0.52 s before, during and after the flood, so the sound and the sequencer go on while the UI stands still. The developer listened to Voice Spread chords on this package and said it sounded good. The sound during the RAM boot's CRC at UPGRADE OS NOW? and during a loader trial stays open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A development base's link takes `reboot` (0x15): armed, stopped, no UPGRADE OS NOW?, no person, no RAM boot or loader session open, and stock's working-state header whole. It answers with the bank stock writes; four UI ticks later the UI tick checks again, calls stock's own working-state write (0x400f1f8a, the one its OS upgrade job calls before erasing the flash) and resets as the RAM boot does, with a mailbox the gate reports as boot 9. dn2_link.py reboot waits for the new run and prints the boot field. Host tests for the refusals, the order (answer, write, reset), cancellation between the answer and the write, and the gate. LINK.md: the request, status 8, boot status 9 and what was read in OS 1.12's code. Not yet run on a unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Digitone II: a
rebootrequest for the development link. Builds on #1842 (the runtime loader), and through it on #1763, #1817, #1820 and #1821: this branch starts at #1842's head3b2da45e4until those merge intobase/digitone-ii-next, then I merge that branch here so the diff holds only the reboot.What works: on the host, everything (C host test and Python tests). What is open: it has not run on a unit yet; Lukas's session RAM-boots the test image next. Musically: an agent can restart the unit itself after a test, and the unsaved project state comes back as after a power cycle, so nobody has to reach for the power switch between runs.
sdk/machines/digitone-ii/elekloader/base/link.c:reboot(0x15, the next id the Rytm link's format leaves free; the Rytm's 0x13 stays unused). Armed only (1), refused at UPGRADE OS NOW? (6), with a person at the unit (5), while the sequencer plays (new status 8, the loader's "unsafe" check), and while a RAM boot is asked for, an upload or trial is open, or stock's working-state header is mid-change (3). Taken, it answers with the bank stock will write. Four UI ticks later the UI tick checks the same again, calls stock's own working-state write (0x400f1f8a, the one stock's OS upgrade job calls before it erases the flash), then ends as the RAM boot's reset does (interrupts masked, stock's drain, data cache out and off, reset) with a mailboxMWBR. The gate sees it andident's boot field reads 9 (a link reboot);bootdiag's marks say how far it came.base.json: the three OS 1.12 addresses (STATE_AT,STATE_BANK_AT,STATE_WRITE_AT) and the description.tools/dn2_link.py reboot: readsident, sendsreboot, then waits for an answer whose tick count is lower than before (the new run), and prints how long it took and the boot field. Success only for boot 9.bootdiagnames a reboot's marks.LINK.md: the request, status 8, boot status 9, "Where it runs" and a Reboot section with what was read in OS 1.12's code. Changelog entry.npm run check -- --base upstream/base/digitone-ii-next(all green but the known unrelatedsrc/community/usage-machine-migration.test.ts, a SQLite usage-table test this change does not touch).npm run board -- check: nothing needs a claim (no new hook or site: the reboot calls stock, patches nothing).sdk/tests/test_dn2_link.py(41 tests, all pass), with new tests:dn2_link_host.c(link.c compiled for the host, stock stubbed): each refusal (not armed, the prompt, a person, playing, a RAM boot asked for, a trial open, the header mid-change), each with nothing written; the order answer, write, reset ("AWR"), nothing before the fourth tick; a change between the answer and the write (play, the prompt, a person, a disarm) cancels with nothing written; a header mid-change is waited for, then written, or given up after about a second; the gate's boot 9 after a software reset andidentreporting it, boot 2 without one.test_dn2_link.py: the old run still answering is not taken for the restart; boot 0, 2 or a short reply after a restart fail; no restart fails and points atbootdiag; every refusal's text; every status and boot status in link.c has the host's text.dn2_link_host.csends every command the link does not have and expects status 2, soCMD_REBOOTjoins the list it skips;test_there_is_no_request_for_an_addresslists the host's commands, now withreboot(it names no address).reboot_gochecked in the package (jsr 0x400f1f8a, then the mask, the drain, the mailbox, the reset).Tested on a unit: not yet. The test image for it, built from this branch: development package
457c4899c8b05a7dc05594006eb9d6ca396752117072ca3d8e5f2742e68fd48c(HELLO basef3688a7f…), built at95148a3a1, linked with Voice Spread 0.1.0 by elekloader 0.11.0's patcher:.syxe16f8c7de92d9016c9c15b98a40ab7f07398d0794f730ec8d221399283367468.What was read in OS 1.12's code (static, not yet seen on a unit)
COKi, then a checksum over the header only (0x400bb4b0), checked at boot (0x400bb5e8). Code that writes into the block (0x400bb67e) clearsCOKiwhile it copies and sets it again after, hence the header check before the write.Edge cases
COKiwritten out leaves neither bank valid🤖 Generated with Claude Code