Repository navigation
Model:Cycles base: core-mc 0.3 and a key-LED hook - #2077
Conversation
- sdk/imports: import record for drumkilla's core-mc 0.3 (Elekloader v0.11.0, f20ffda, GPL-2.0-or-later) and the pinned release package core-mc-0.3.elemod (e214e171), vendored in the catalog. - sdk/machines/model-cycles: the base (core-mc, core/core.s, headers, base.json, a copy of mod.json with room 8 per hook), base-binding.json (dee352df), events.json with the five hooks, guide. - sdk/model-cycles: core contract (interface 0.3, 25 firmware exports) and the empty module folder. - Builder and link tables know the Model:Cycles (LINK_DEVICES, ELE3_DEVICES, catalog sync maps). - machine.json: core and base started, flash and recovery, SDK and budgets; recipe row and changelog. - Tests: two base tests (source unchanged, hooks match sites and room); two device enumerations extended. - Verified: the base package equals the release except the collections; the image 101129e0 boots and behaves as stock 1.13 in digiemu and on a unit (docs/verification/2026-11-23-model-cycles-base.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first build's copy of core-mc's mod.json set every hook's collection to 8, read as room for eight
handlers. A collection's number is the entry size in bytes, so the linker would have refused every module
("an entry for ev_tick is not 8 bytes"); it showed when the first test module was linked. The base now
builds core-mc 0.3's own mod.json, and the recipe's check keeps its collections again. A call hook has no
fixed room: the linker puts every subscriber in its table, so events.json and the core contract drop room.
- ev_key_leds (modwerk/key-leds.s): the key-LED frame after the LEDs are cleared and before the stock views
set theirs, as the Digitakt II has it. Site 0x40006a6e, the frame's clear call; fw_led_set names the OS's
setter (2 on, 1 off, first setter wins), declared in include/mc/core.h. Hook 5 in events.json.
- Base 2e5243e6: 220 bytes .run, 6 sites. A test image with a module that blinks TRIG 16 through the hook,
asking for each LED frame from ev_tick, runs in digiemu and on a unit (verification record).
- Guide, base README, recipe row, profile budgets, changelog and the base tests follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first piece of the Cycles' USB link, after the Analog Rytm MKII's: a development base answers identity and memory reads over USB MIDI SysEx (F0 7D 'MWL', the Rytm's wire format). Release bases do not carry it; the release base stays 2e5243e6. - base/link.c, link.s: the site is stock's SysEx router 0x400812f6, whose first two instructions it takes; the link's messages go into a ring, everything else on to stock unchanged. ev_tick acts and replies with stock's SysEx send 0x400828fe on USB (port 2). Messages from other ports are dropped. - tools/mc_link.py: ident and mem from the computer (mido). - The Modwerk base sources move to elekloader/base/, as the Rytm's, so the dev-base checks find them. - Tested on a Model:Cycles over USB (LINK.md, the verification record): ident and a memory read. - machine.json: stack link started; guide, recipe row and changelog follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The development link takes keys and encoder turns from the host, as the Analog Rytm MKII's does: they go on the UI task's queue as the panel's messages do, so stock and modules see them through ev_key and ev_enc. Stock's is_key_held (0x4007faf4) is pointed at mw_link_held, so a key the link holds reads as held. The link is armed at every boot; disarm turns it off until the next one, and a press or turn on the panel lets go of every held key and refuses the link's for about 3 s. - tools/mc_link.py: key, tap, enc, release, disarm. - Tested on a Model:Cycles (dev base 26dee268, image ccb406b4): TRACK held and let go from the host, encoder 2 turned PITCH. LINK.md and the verification record list it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The development link boots an image without flashing it, as the Analog Rytm MKII's does. The host uploads the image with stock's own OS upgrade (SysEx ID 0x11, 0x50/0x51) and sends RAMBOOT with the container's and the MAIN OS's lengths and CRC32s. The bootstrap stages the flashed OS over stock's upload buffer (0x4028da80) on every boot, so the link copies the container to high DDR (0x46000040), writes a mailbox at 0x46000000 and resets. The base's ev_boot handler takes the mailbox only after a software reset, checks it and the CRCs, unpacks the MAIN OS over the flashed one and enters it. Each mailbox is used once; a power cycle brings the flashed OS back. - tools/mc_link.py: ramboot IMAGE.syx (the Rytm's upload helpers); ident reports the mailbox, the status and the running image's CRC. - Tested on a Model:Cycles (dev base 984a4508, image 089e13a9 flashed): a RAM boot of f39676d6 (with a TRIG 16 test module) blinked TRIG 16, ident reported booted from RAM with the uploaded CRC, and a power cycle brought the flashed image back. LINK.md and the verification record list it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A development base takes the CRC32 and length of its .run block (the base and every linked module) at boot, before any handler runs, and ident reports them. mc_link.py runid computes the same from a built image and rundiff lists every word of the running block that differs from it. Passed on a unit with dev base cef3a17a and a test module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first reading on a unit was right: 4076761892 is 0xf2fe7324. It was misread in decimal, and LINK.md recorded it as a CRC that differed once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A development base's probe replaces the audio interrupt's call of the audio function and times it with DMA timer 0; over half a second it gives the audio's share of the CPU, the window's dearest block and the dearest since boot, and the link's load reports them. Passed on a unit (dev base 4cd5cdd9): 73-75 %, stopped and playing, sounding as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Development bases keep a diagnostics log in the Octatrack's layout (version 2), so the site's parser reads it: five-minute load records (the audio's mean and dearest block, the longest block gap, the longest run without a UI tick), and START, BASE, HOT and FREEZE incidents with the tracks' machines and the last keys. The link's diag (0x22, as on the Digitone II) names its place; load moves to 0x23. A test checks the layout against the Octatrack's diag.h and runs the log on the host. Read on a unit with images 407fa7d5 and 520f99e7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Development bases carry the Octatrack's runtime loader and upload controller (sdk/runtime/). base/runtime.c is the Cycles' glue, read from OS 1.13: the twelve kernel tasks, the cache setup and DDR's uncached mirror, the playing words, a level-4 lock that keeps the audio running, stock code below .data, and the hook trampolines. base/modules.c carries wire frames in parts over the link (UP_PART 0x30, UP_RUN 0x31, MODS 0x32) and runs them on the UI tick; ten quiet seconds undo a trial. machine-base.py stages sdk/runtime/ sources for dev bases (base.json dev.shared). mc_link.py gains mods, try, keep and undo; examples/hello.c is a test module. On a unit (image acb91ea5, dev base 4d8f07a0, RAM-booted): try, undo, keep, the refusal while playing, a trial beside a playing pattern, the lapse and a power cycle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build.py takes --sites for C runtime modules: jsr or jmp detours to the module at declared stock sites, in base.json's format, as ABI 7 sites that carry the stock bytes' SHA-256 and no stock byte. mc_link.py gains remove (an empty package with the module's id). examples/frames.c detours the call that ends each composed frame and counts frames; frames2.c is its next version. On a unit (image acb91ea5, dev base 4d8f07a0, RAM-booted): the site patched and put back, interrupts masked at most about 6.5 us, a new version on trial and undone, two modules side by side and a removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Digitone II's link takes a whole upload frame at 0x30 in one SysEx (dn2-link.ts uploadTransport). The Model:Cycles takes a frame in parts, so its commands move to 0x31 (part), 0x32 (run) and 0x33 (modules), and 0x30 stays free for a whole frame should the Cycles' SysEx limit allow it. The recipe's USB-link row names both ways. On a unit: image 7c794349 (dev base d1cc7df8), RAM-booted, a module with a stock-code site on trial and undone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mc_link.py ramboot asks ident before it uploads and stops while the link is disarmed: once stock has the image it asks "Upgrade OS now?", and a refused RAM boot left that question on the unit, where YES flashes the image. A refusal after the upload now says to answer NO. LINK.md records the edge tests run on a unit: a package past the 32 KiB staging, the 64 KiB pool full, three modules with one taking every key and turn, a person at the unit while the link holds a key, release and disarm, a RAM boot of the stock .syx and the power cycle after it, and NO at "Upgrade OS now?". link.c's comment no longer names TRACK + TRIG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runtime loader's build.py is one of the files the Octatrack base is built from, so changing it makes the committed Octatrack base stale. The --sites option for C modules moves into the Model:Cycles' own tools/build_sites.py, which wraps build.py's build_c and adds the declared sites to its package; build.py is main's again. frames.mwrm and its next version build byte for byte as the packages tested on the unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, this is a great stack. The test record is the most thorough I've seen for a new machine. One change before the base ships: please put the link into the release base, so the status page, loading without a reflash and diagnostics reach musicians' units, not only development bases. Today Please split it the way the Octatrack does:
With it I'd need:
I'm building the Model:Cycles status page now, on top of #2126's |
As the owner asked on the base draft, the Model:Cycles' release base now carries what musicians' units need, as the Octatrack's does: the link's identity with the set identity, the audio load, the diagnostics log and the runtime loader (up_part, up_run, mods). The log is read through a new request, log (0x24), that reads nothing outside it, so no host needs mem. Memory reads, panel keys and encoder turns, disarm and the RAM boot stay in development bases (MODWERK_DEV); a release base answers them bad request, and ident keeps its fields (the arm's five read 0). Release base 4d4d91d2: 37994 bytes .run, 115796 .bss (the 64 KiB pool and 32 KiB staging), recorded in base-binding.json and the profile's budget. Its image ec928894 (stock 1.13 and the base alone) ran flashed on a unit: the loader's edge cases again and Transfer connected beside the link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for putting the link into the release base so quickly. The split in The release base now patches stock's SysEx router on every musician's unit, so I'd like the way back covered on that exact build before it gets more testing:
It stays a draft as planned. I'll decide when the base ships once it has had more time on units. |
|
Done, all on
One small thing I found and left: a release base still sends the three RAM-boot words of Musically: nothing changes; the base alone is still stock to play. |
|
Thanks, the record now covers everything I asked for: the way back from the release base, two modules on one hook, and a table that matches what ran. I've also read the code itself now. Nothing in it can brick a unit or block the way back to stock, and a release base answers only what it should. A few things for your next push (it stays a draft):
Since 1 and 2 change the base's code, the record needs a run on the new build anyway, so it's fine to take them together with the slot table. |
|
Thanks for going through the code, these are good catches. Since the base changes anyway, I'd like to bundle everything into one build and one run on the unit for all three PRs. Here's what I'm planning:
If anything else comes to mind for any of the three, especially for the base or the unit, I'd be glad to hear it now so it can go into the same round. And could you say a bit more about the slot table change you have in mind? Then I'll fold it in as well. Thanks! |
|
Thanks, your plan covers everything I asked for on all three, and one build with one run on the unit is the right way to do it. First a correction: there is no slot table change. That was my mistake in point 7; nothing like it is planned for the Model:Cycles. What I meant still holds for another reason: 1 and 2 change the base's code, so the base gets a new identity in this round anyway. Send 0 for the three RAM-boot words in release bases in the same build. I've read the base again with the unit run in mind. A few more things for the same round:
For the unit, this is what I'd like in the record, all on the new build. Release base, flashed with stock's upgrade:
Development build of the same source:
It stays a draft afterwards. I'll decide when the base ships once it has had more time on units. |
- RAMBOOT (development bases) parses into locals and stores only an accepted request; a second one while the first waits for its copy is refused BUSY. link.c builds on the host; test_link.c covers it. - modwerk_machine_flush_data pushes all four cache ways, as the Octatrack's cached path does. - A release base sends 0 for ident's three RAM-boot words. - Stock's SysEx send frees its USB lock between 144-byte parts, and stock answers Transfer from the MIDI task (LINK.md). The link now writes a reply through stock's USB writer under the lock from first part to last, and acts on no request while another SysEx is open. - CONTAINER_MAX follows the flash: the container ends below 0x1e0000 (ele3.ts was right). - "Development bases only" wording fixed where every base carries the code; machine-base.py's docstring and a test for add.shared staging. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The machine profile and its README said to send the stock .syx over 5-pin MIDI. The Model:Cycles' MIDI IN is a 3.5 mm TRS jack (a DIN interface through a TRS-to-DIN adapter). Registry regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Pushed the code for this round to all three, before building and running on the unit, so you can look at it first:
Stock's send from two tasks: it isn't safe for whole messages. Its USB lock is freed between 144-byte parts, the USB writer keeps its SysEx state across parts, and stock answers Transfer from the MIDI task. So the link now writes a reply under that lock from first part to last, and waits while another SysEx is open. Details are in LINK.md, "Stock's send from two tasks". If you'd rather handle it differently, now would be the best time, before the run on the unit. The records, the pin and the sizes still name ec928894. They follow with the new build and the unit run. |
|
Thanks, I've read the code for all three. Nothing in it can brick a unit or block the way back to stock, and the fixes from my last two comments are all in. The send: please keep it as you built it. A reply goes out whole under stock's lock, and no request is acted on while another SysEx is open. Your reason for not holding the lock across stock's own send is right. There's one change to it, and two things next to it, before the build:
One question, and no change is needed unless you find something: the link now waits for as long as The red The list for the unit run from my last comment stands. It stays a draft afterwards. |
- A reply that meets a SysEx opened between the tick's look and stock's USB lock is held in reply[] and written at a later tick; the link acts on no request while one is held, and a RAM boot waits for its reply. Its request has run, so dropping it left an UP_RUN that kept or undid a set looking like a timeout. - The wait for another sender's open SysEx has a limit of 30 UI ticks (about a second): the writer behind Transfer's replies sends what it holds when closed, and an F7 before that was not shown (LINK.md). - test_link.c: a lock call that opens a SysEx, the reply order after it, and a SysEx left open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Done, all three pushed:
Your question: it's cleared when a write ends a SysEx and by the USB MIDI driver's setup (0x40003112), so a message cut short by unplugging is gone on reconnect, and 0x40fe4228 is never cleared, so stock's send doesn't stop between parts. But the writer behind Transfer's replies sends what it holds when it's closed (0x40082324), and I couldn't show every reply ends in F7 before that. So the wait has a limit: about a second (30 UI ticks), then the reply goes out and its F7 ends the open one. It's in LINK.md. |
Built from this branch with the kit at 3b31ef3 and GCC 16.2.0 / binutils 2.47: package 646706ff…, 76 bytes .boot, 38214 .run, 115796 .bss, 8 sites. base-binding.json records it; the README, LINK.md and the machine profile's note and footprint budget (154010) follow, and the registry is regenerated. The unit run on its image follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nt (#2181) The contract, suite and Windows path checks took the event's base.sha, which can be an older main than the one GitHub merged the pull request onto. Main's later changes then counted as the pull request's own: on 25 November main's migration 0105 failed the board check of PRs that never touched it (#2077, #2125, #2126), and the checks behind it never ran. The scope step already used HEAD^1 for this reason; these steps now resolve the same parent to a commit. The workflow test pins it. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ramboot checked containers up to 0x200000; link.c refuses past 0x1c0000, where a flashed container would reach the OS's stores at 0x1e0000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the submitter's Model:Cycles, 25 November 2026: the release base's image 89edf78e flashed (identity 0x7c774e99, RAM-boot words 0, the loader's edge cases, Transfer beside the link, stock 1.13 over it and back from the site's send dialog) and the development base d0a26304 (stock bytes after each undo and removal, masked spans at most 7.27 µs, a RAM boot, a FREEZE incident from a module that held the UI tick for 6 s). LINK.md's evidence and Not tested, and the verification record's new section for 646706ff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Built and run on my unit, all on the new build, 25 November: Release base 646706ff (image 89edf78e, byte for byte what the site's kit builds), flashed with stock's upgrade:
Development build of the same source (d0a26304):
One thing I noticed: a development base shows the RAM-boot words as DDR holds them after a cold boot, since it only writes the mailbox at a RAM boot. Release bases send 0, so I left it. Records: the verification record, LINK.md's evidence and the three descriptions are updated. Not run: Windows. |
Model:Cycles (#2077, #2125, #2126) landed on main beside the Digitone II: both machines kept in every device list; the core build preview uses main beta-only gate (coreBuildPreviewOpen) for both; MACHINE_RECIPE keeps this branch Digitone II row with main Model:Cycles and Analog Keys rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Model:Cycles' cumulative base draft. It starts the Modwerk base from drumkilla's core-mc 0.3 (Elekloader v0.11.0, GPL-2.0-or-later), imported unchanged and credited, plus one Modwerk hook,
ev_key_leds, that lets modules light the key LEDs, as on the Digitakt II.npm run machine:base -- model-cycles. As you asked, every base now carries the link's part for musicians' units, as the Octatrack's does (sdk/machines/model-cycles/LINK.md):identwith the set identity (fields unchanged; the five arm fields read 0 in a release base),load, the diagnostics log through a newlogrequest (0x24) that reads nothing outside the log, and the runtime loader (up_part,up_run,mods: try, keep, undo, remove, the 10 s lapse).modsis unchanged too. Memory reads, panel keys and encoder turns,disarmand the RAM boot stay in development bases (MODWERK_DEV); a release base answers thembad requestand sends 0 forident's RAM-boot words. The link writes each reply whole under stock's USB lock and holds it while another SysEx is open, so its replies and Transfer's no longer break each other (LINK.md, "Stock's send from two tasks"). The release base646706ff: 76 bytes.boot, 38,214.run, 115,796.bss(the 64 KiB module pool and 32 KiB staging), 8 sites (0x40006a6ekey LEDs,0x400812f6the SysEx router,0x40059382the load probe, plus core-mc's five), about 150 KiB of the 256 KiB shared mod area; recorded inbase-binding.jsonand the profile's budget.fw_led_set.89edf78e…(stock 1.13 and646706ffalone, byte for byte what the site's kit builds), flashed: identity0x7c774e99and RAM-boot words 0, load and log, the loader's edge cases with two modules on the draw hook andframes.mwrmon a stock-code site, Transfer connected beside the link, stock 1.13 over it and the base back from the site's send dialog. The development base of the same source (d0a26304,1d6c4052…): stock bytes back after each undo and removal, the masked-span counters, a RAM boot, and a FREEZE incident from a module holding the UI tick for 6 s (rows below). Earlier: the first build alone (101129e0…), the base with the LED test module (7bdfbcde…) (record). Stock 1.13 was flashed over the development base and the base again after it, both with stock's own upgrade.mc-link.ts(identandmodsreplies unchanged). The site build of this base and the MCP device tools are outside the base and get their own pull requests, as the recipe says. Control All Config, built onev_keyandev_key_ledsand tested on a unit, waits for the base.Tested on a unit: release base 646706ff, image 89edf78e flashed: identity and RAM-boot words 0, load, log and the loader's edge cases, two modules drawing side by side and one removed, frames.mwrm on a stock-code site, Transfer beside the link, stock 1.13 flashed over it and the base back from the site's send dialog. Dev base d0a26304, image 1d6c4052: the site's stock bytes after each undo and removal, the masked-span counters, a RAM boot, a FREEZE incident. Before: release base 4d4d91d2, image ec928894 flashed: the same list without the RAM-boot words. Base 2e5243e6 with the LED test module, image 7bdfbcde, my Model:Cycles on OS 1.13: boots, TRIG 16 blinks in every view. Dev base 984a4508, image 089e13a9: the link reads, holds keys, turns encoders and boots an uploaded image from RAM; a power cycle brings the flashed image back. Dev base 0740bb23, image 520f99e7: the log reads START and BASE with the running set and the six tracks' machines; dev base bfde5a8e, image 407fa7d5: a five-minute load record at 73.8 %. Dev base 4d8f07a0, image acb91ea5 RAM-booted: a test module on trial, undone, kept, refused while a pattern plays, played beside a running pattern without dropouts, a module with a stock-code site, its next version, two modules and a removal, gone after a power cycle and undone 10 s after the host fell quiet.
Edge cases
ev_boot) and five stock UI sitesev_key_ledstakes the frame's clear call; the frame runs only when askedev_tickand setsctrl + 0x21, sequencer stoppedev_key_ledsf8b652a0(this base alone) sent over USB and installed, 24 November 202689edf78eflashed:hello(top-right square) and a test module drawing a bottom-left square, both on the draw hook, kept; thenremove corner --keep.syx89edf78ewith Transfer, then89edf78eagain from the site's send dialog (#2125), 25 November 2026ident0x7c774e99, 38,272 bytesmc_link.py identafter a fresh flash of the dev imagemc_link.py mem 0x40000400 16is_key_heldis pointed at the linkmc_link.py key 2 1, thenkey 2 0mc_link.py enc 2 10,enc 13/14/15 10on the main pageev_bootunpacks an uploaded image over the running OSmc_link.py rambootof an image with a TRIG 16 test module,089e13a9flashedidentsays booted from RAM with the uploaded CRC.runbefore any handleridenton924efa4c(dev basecef3a17aand the TRIG 16 module) after a flash and after a power cycle;runidon the image0xf2fe7324, 5764 bytes, as computed, every time0b9fe54c(dev base4cd5cdd9) on my unit,mc_link.py load, pattern stopped and playing, listening407fa7d5(dev basebfde5a8e),mc_link.py log520f99e7(dev base0740bb23) writes them at the first tick: 0, 4, 4, 2, 0, 5407fa7d5, six minutes with a pattern playingtest_diag.con the host; on the unit,1d6c4052RAM-booted with a test module that holdsev_tickfor 6 s on TRIG 16, a pattern playing, thenlogloadmoved from 0x22 to 0x23diagtakes 0x22 as on the Digitone IImc_link.py loadonec928894(release base4d4d91d2), flashedacb91ea5(dev base4d8f07a0) RAM-booted,mc_link.py try hello.mwrm --seconds 20try … --keep,mods15 s latertrywith a pattern playingunsafe, the kept module unchangedunsafeat the end, the set went back about 10 s after the tool ended0x4f182a66), the module gonetry frames.mwrm(site0x40007678),mem1d6c4052(dev based0a26304): frames tried, undone, kept, removed,mem 0x40007678 6after each, then the masked-span counterstest_link.con the host; on the unit,rambootof1d6c4052okbefore the resettest_link.c(a lock call that opens a SysEx; a SysEx left open); on the unit, Transfer connected besideload,log, a trial andidentremove frames --keeptrya 33,832-byte packagelimit (too large), the pool untouchedrejected(memory), the two still drawingrelease,disarmkey 2 1, a press on the panel,encat once and 4 s later;release;disarma person is at the unit, then ok;not armedafterdisarm.syxrambootwith stock 1.13, then a power cyclemem, no RAM boot89edf78eflashed:ident,load,log0x7c774e99, 38,272 bytes (asrunidcomputes), armed 0, RAM-boot words 0; 74.3 %; START and BASE throughlog. Onec928894before:keyandmembad requestunsafewhile playing, Ctrl-C lapse, a new version, a module taking every key and turn, a removal, 33 KiB, the pool full, a power cycle89edf78e, Transfer open and connected, a trial,load,log,identrambootdisarmed (old tool), then the fixed tool; NO after a stock upgrade uploadGuides: the recipe's USB-link row did not say that the Digitone II already carries upload frames over SysEx (
dn2-link.tsuploadTransport); I found it late and kept 0x30 free for it. The row says it now. The loader README's porting list held up for a SysEx machine; the one thing it did not say is that GCC needsmemcpyandmemsetfrom the base, since a base has no C library (runtime.chas them). Earlier: nothing said what the number in an elemod core'scollectionsmeans; I read it as room. It is the entry size in bytes, and a hook takes every subscriber. The Model:Cycles base README and guide say it now. Also, two community tests (PageTraffic,community-activity) fail on a computer with a German system locale (66,7%); they pass withLANG=en_US.UTF-8. Not fixed here; it belongs in its ownFix:pull request.What the branch adds and how it was checked
sdk/imports/core-mc-source-f20ffda.json: the import record, every file with its SHA-256;sdk/imports/elekloader-core-mc-v0.3.jsonpins the release packagecore-mc-0.3.elemod(e214e171…), vendored withnpm run elekloader:update -- --overlay.sdk/machines/model-cycles/elekloader/: core-mc,core/core.sand the headers, byte for byte;base.jsonbuilds core-mc's ownmod.jsonand addsmodwerk/key-leds.s(site0x40006a6e, the LED frame's clear call).base-binding.json: package646706ff…,.boot76,.run38,214,.bss115,796 bytes, 8 sites. The recipe's check: it keeps everything of the release.sdk/machines/model-cycles/events.json: the six hooks in the Octatrack's registry format (site, length, SHA-256 guard, prototype).include/mc/core.h:fw_led_set.sdk/model-cycles/core-profile/interface.json: the core contractmodules:checkreads.sdk/model-cycles/modules/: empty.machine.json: core and base started, flash and recovery, SDK and budgets; the page stays beta-only.MACHINE_RECIPE.mdrow, guide, changelog.LINK_DEVICES,ELE3_DEVICES, the catalog sync maps); two enumeration tests list it.test_machine_base.pygains two (the source is core-mc 0.3 unchanged; the hooks match the sites the base builds, every entry 4 bytes, no room).npm run pr:readywith Node 24 onbase/model-cycles-next: check passed; board claims for the hooksmodel-cycles/events/0-5taken on this branch. The elemod package rebuild (Docker) was not run locally; this pull request's CI runs it.elekloader/base/link.c,link.s: the link, its part for musicians' units in every base since4d4d91d2; base.json'sdevadds memory reads (dev basebf2f8ac4), keys and encoders (26dee268), the RAM boot with anev_boothandler (984a4508: 5624 bytes.run, 1284.bss, 8 sites);tools/mc_link.pyon the computer. The Modwerk base sources sit inelekloader/base/, as the Rytm's.model-cycles_OS1.13.syx(44fe5862…):101129e0…(first build alone; boots and plays as stock) and7bdfbcde…(this base and the LED test module; TRIG 16 blinks once a second stopped, playing, with TRACK held and under PATTERN, over the stock LEDs). Both flashed as an OS update, then a power cycle.base/load.c,load.s: the audio load probe at0x40059382and the link'sload(dev base4cd5cdd9).base/diag.c,diag.h,test_diag.c: the diagnostics log;sdk/tests/test_machine_base.pychecks its layout against the Octatrack'sdiag.hand runs it on the host.mc_link.py logreads it.link.c's set identity (ident's last two fields) andmc_link.py runidandrundiff(dev basecef3a17a).4d4d91d2:base/runtime.c(the Cycles' glue: tasks, caches, the playing words, the lock level, the patchable range, hook trampolines),base/modules.c(wire frames in parts over the link, 32 KiB staging, 64 KiB pool, the 10 s lapse), base.json'saddwithshared(sdk/runtime/ sources staged beside the base's in every base;scripts/machine-base.pylearns the key, andtest_machine_base.pychecks the staging per part), link commands 0x31-0x33 (0x30 stays the Digitone II's whole-frameupload),mc_link.py mods,try,keep,undo,remove,examples/hello.c,frames.c(a stock-code site) andframes2.c;tools/build_sites.py --sitesfor C modules (ABI 7, hashes only) around the loader'sbuild.py, which stays main's because the Octatrack base is built from it; a test intest_runtime_loader.py.test_machine_base.py: the transport on the host (test_modules.c), the link on the host (test_link.c: RAMBOOT, whole replies, an open SysEx) and the shared sources staged with the part that names them.🤖 Generated with Claude Code