Skip to content
Back to skills

Digitone 2 Modding Skill

ASecurity

Develop your own firmware mods for the Elektron Digitone II (OS 1.11) — reverse-engineer and patch the ColdFire MAIN OS (UI, sequencer, parameters, p-locks, LFOs, screen) in C, add SHARC DSP audio code (effects, per-track processing, new machines), verify both in a ColdFire emulator (the real OS) and a whole-DSP SHARC emulator, then rebuild, re-sign and flash the .syx. Use for any Digitone II / DN2 / ELE3 / ADSP-21569 SHARC+ / ColdFire MCF5445x firmware work, Elektron OS image unpacking or si...

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentspythongoc++gitdatabase

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add complex-ping/digitone-2-modding-skill --skill digitone-2-modding-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Digitone 2 Modding Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Digitone 2 Modding Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/complex-ping-digitone-2-modding-skill/badge)](https://www.skillsdirectory.com/skills/complex-ping-digitone-2-modding-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: digitone-2-modding-skill
description: Develop your own firmware mods for the Elektron Digitone II (OS 1.11) — reverse-engineer and patch the ColdFire MAIN OS (UI, sequencer, parameters, p-locks, LFOs, screen) in C, add SHARC DSP audio code (effects, per-track processing, new machines), verify both in a ColdFire emulator (the real OS) and a whole-DSP SHARC emulator, then rebuild, re-sign and flash the .syx. Use for any Digitone II / DN2 / ELE3 / ADSP-21569 SHARC+ / ColdFire MCF5445x firmware work, Elektron OS image unpacking or signing, DSP load, flash budget, or flashing over USB MIDI.
---

# Digitone II firmware modding

Everything here works on **your own copy of Elektron's Digitone II OS 1.11** (sha256 `2af43e65…72e0`). No Elektron code
ships with this skill; never commit or share extracted sections, snapshots or built images. Every mod is reversible:
reflash stock (references/setup.md "Recovery").

## Start
1. `python3 scripts/dn2setup.py` — checks / sets up the workspace (`$DN2_WORKSPACE`, default `~/dn2-workspace`): your stock
   image, **dnfw** (container + signing + C builds), the m68k toolchain, **digikit** (ColdFire emulator), PyPy. It prints
   the exact command for anything missing (ask the user before cloning or installing). Then `--boot` and `--template` once.
2. Work through an example, then copy it:
   - `examples/double_time/` — a **ColdFire C hook** (the sequencer clock runs at 2x): `build.py` → `test_emu.py` in the
     ColdFire emulator (stock control in the same test).
   - `examples/track_trim/` — a **SHARC DSP mod** (track 1 −6 dB in the main mix): a new L2 code block, a CALL hook,
     an fxdsl kernel; `test_emu.py` = A/B against stock in the SHARC emulator.
3. Flash: `scripts/rpc_flash.py IMAGE.syx` over USB (or Elektron Transfer), confirm on the unit.

## Read only what the task needs
| task | read |
|---|---|
| install, workspace, build, image size, flashing, recovery, other public work | `references/setup.md` |
| the hardware, the image format, free memory, the ColdFire → DSP frame and side channels, voices vs tracks | `references/firmware.md` |
| ColdFire: adding C, parameters, p-locks, trigs, sequencer clock, arp, the audio ISR budget, UI / screen / keys | `references/coldfire.md` |
| SHARC: reading, where code may go, hook sites, the hardware rules, fxdsl, the audio path, engines, FX | `references/sharc.md` |
| driving the emulators, what they cannot see, their gotchas, measuring on the unit | `references/emulators.md` |
| the working loop, rules, diagnosing a silent unit, **the spec questions to ask before building** | `references/workflow.md` |

## Tools (`scripts/`, all paths via `dn2paths.py`)
| tool | what |
|---|---|
| `dn2setup.py` | workspace check / setup from your stock image |
| `cfmod.py` | ColdFire mod builder: C / asm → linked at 0x46800000, dnfw loader, stock-checked hook sites, signed .syx, flash-size check |
| `dspblocks.py` | add L2 / DDR blocks to the SHARC boot stream, CALL hooks, 32-byte line padding |
| `fxdsl.py`, `sasm.py`, `sisa.py` | DSP kernels in Python (code + bit-exact model) / a verifying mini assembler / 48-bit packer |
| `cfatlas.py` | **start here for stock ColdFire code:** database of functions, callers, C++ classes, vtable slots and strings recovered from your image; records your findings |
| `sharcatlas.py`, `sharc_checks.py` | **start here for stock DSP code:** database of SHARC functions and callers, compact reading, your findings; run stock routines in the emulator and compare (`references/sharc.md` "Map of the code" is the overview) |
| `visa.py`, `cfdis.sh`, `cfx.sh` | SHARC disassembler; ColdFire disassembly, xrefs, functions |
| `deadscan.py` | unreferenced SHARC functions (caves) |
| `hwrules.py`, `shapecheck.py`, `encodecheck.py`, `bootblocks.py` | the static hardware-rule checks the emulator cannot do |
| `sim.py`, `simc.py`, `dn2frame.py`, `dn2boot.py`, `dspsnap.py`, `dn2synth.py`, `dsptrace.py`, `simc_check.py` | whole-DSP emulator: boot, render real patches to WAV, A/B, trace |
| `cfkit.py`, `fastemu.py`, `cfemac.py`, `cfhooks.py`, `dn2capture.py` | ColdFire emulator harness on digikit: panel, screen, sequencer, firmware calls, call rings |
| `rpc_flash.py`, `transport.py`, `send_syx.py`, `dn2rpc.c` | flash over USB MIDI RPC, start / stop, DIN-paced recovery send, Screenshot RPC |

## Rules that cost hardware round trips (details: references/workflow.md)
- **Settle the spec** in one round of questions first; **reproduce a bug as a failing emulator test** (with a stock
  control) before fixing it; **emulator + static checks before every flash**; flash one clearly named image with its
  sha256 and a list of what to try.
- **Voices ≠ tracks.** **Stock routines bound `slot <= 100`.** **Hooks keep every register the code after them reads.**
- **SHARC:** whole 32-byte boot blocks, stock encodings only, the PRM loop / DAG / branch rules, no L2 above 0x200B0000,
  never read memory you did not write (power-on DDR is NaN garbage). The emulator runs all of these "fine".
- **The unit pays for memory, not instructions**; the ColdFire's audio ISR budget is small (late frames = silent trigs).
- **Image ≤ 2 MiB as received** (`cfmod.flash_check`); section 7 < 1 MiB.
- After 2 failed flashes on one problem, stop and restate what is proven.
- **Compare an anomaly against the previous build** before chasing it, and bisect with build variants early.

Files in this skill

  • SKILL.md5.3 KB
  • examples/double_time/build.py852 B
  • examples/double_time/hooks.S444 B
  • examples/double_time/mod.c1.1 KB
  • examples/double_time/test_emu.py1.3 KB
  • examples/track_trim/build.py4.6 KB
  • examples/track_trim/test_emu.py1.2 KB
  • references/coldfire.md13.2 KB
  • references/emulators.md7 KB
  • references/firmware.md6.8 KB
  • references/setup.md5.7 KB
  • references/sharc.md15 KB
  • references/workflow.md5.7 KB
  • scripts/bootblocks.py1.3 KB
  • scripts/cfatlas.py14.2 KB
  • scripts/cfdis.sh862 B
  • scripts/cfemac.py7.2 KB
  • scripts/cfhooks.py2.8 KB
  • scripts/cfkit.py20.1 KB
  • scripts/cfmod.py8.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.