[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109775":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":14,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":14,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},109775,"dinghy","zvenson\u002Fdinghy","zvenson","The smallest firmware for the M-VAVE FM-1 to build your own on: the plumbing done and documented (updates, USB rescue, USB-MIDI, USB audio, panel, screen, settings), a sine on top.","https:\u002F\u002Ffm1.designburgapps.com",null,"C",54,32,1,3,0,45.39,"GNU General Public License v3.0",false,"main",true,[23,24,25,26,27,28,29,30],"embedded","firmware","fm1","jieli","m-vave-fm1","synthesizer","template","usb-midi","2026-11-07 13:00:33","2026-11-20 07:53:07","\u003Cp align=\"center\">\u003Cimg src=\"assets\u002Flogo.svg\" width=\"96\" alt=\"Dinghy\">\u003C\u002Fp>\n\n# Dinghy\n\n**The smallest firmware for the M-VAVE FM-1 to build your own on.**\n\nDinghy plays a sine wave on the keys, and that is all it does. Under it is everything an FM-1 firmware needs\nbefore it can be any fun: the update path, the USB rescue, MIDI over USB and the TRS jack (with clock), USB audio, the\nkeys, knobs and LEDs, the screen, flash storage, and the same again for the M-Vave SMK-37. It all works, so you start\nwith the part you actually want to write.\n\n```\nfirmware\u002Fsrc\u002Fdinghy.c     \u003C- your firmware: ~300 lines, a 4-voice sine. Start here.\nfirmware\u002Fsrc\u002Fplatform.c   \u003C- the plumbing (boot, USB, MIDI, updates, audio ISR, storage). Done; read it, don't fight it.\nfirmware\u002Fsrc\u002Fstore.h      \u003C- where your data lives in flash, per board\nfirmware\u002Fsrc\u002F*.c, hal\u002F    \u003C- Felucca's platform, as SLOOP \u002F sloopDX \u002F OberVave carry it; the SMK-37 layer\n```\n\nDinghy is based on [Felucca](https:\u002F\u002Fgithub.com\u002Fhugelton\u002FFelucca) by Leo Kuroshita (Hügelton Instruments), with its\nplatform as [SLOOP](https:\u002F\u002Fgithub.com\u002Fisod89\u002Fsloop-fm1) (isod89) carries it: it keeps that platform and throws away the\nrest. The smallest boat of the family, after the felucca and the sloop.\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fscreen.png\" width=\"240\" alt=\"Dinghy's screen: the name, the note played, a keyboard with the keys that sound\">\u003C\u002Fp>\n\n> **Status: 0.5.** 0.5 runs on newer FM-1s too: their flash chip, the UC25HQ80 (0xB36014), beside the Puya (0x856014);\n> before, a firmware built on Dinghy saved to RAM only on them. Dinghy's platform runs on the FM-1 in VIBE FM Link\n> (zvenson\u002Fvibe-link), tested there on 7.11.2026. 0.3 was tested on the FM-1: the install, MIDI in (pitch exact, 4 voices), USB audio at\n> 44.1 \u002F 48 kHz, the keys, the screen, the octave kept in flash, and back to another firmware through the hub.\n> 0.4 brings OberVave's platform over: the TRS MIDI IN, the clock, blobs and slots, the loader's screen, the SMK-37.\n> That code runs on the device in OberVave (FM-1 and SMK-37); Dinghy 0.4 itself is tested on the host only so far.\n\n## What you get\n\n| | |\n| --- | --- |\n| **Updates that always work** | `tools\u002Ffm1_install.py`, the web installers and the [FM-1 Firmware Hub](https:\u002F\u002Fthefirmwarehub.com) reach your firmware over USB, so you (and your users) can always install the next build, or go back to the official firmware. |\n| **USB rescue** | Hold **OCT-** while switching on: no sound, only the updater. If your firmware crashes twice at boot, the FM-1 goes there by itself. |\n| **MIDI** | USB in and out (class compliant) and the FM-1's TRS MIDI IN, in one queue: `midi_get()` says where a message came from, `midi_send()`. Clock, start, stop and continue reach your app. |\n| **USB audio** | The FM-1 shows up as a 16-bit stereo audio input (44.1 or 48 kHz): record it into any DAW or phone. Nothing to do. |\n| **Panel** | 27 keys, 14 buttons, 7 encoders, the MASTER knob, the LEDs, by name (`BTN_PLAY`, `ENC_KNOB1`, ...). |\n| **Screen** | 240 x 240, text in two sizes, rectangles, lines, pixels. |\n| **Storage** | `settings_*` (4 KB), 8 blobs of 4 KB (`blob_*`), 8 slots of 16 KB (`slot_*`), each with a CRC, in places no other part of the flash is in reach of. |\n| **Never waits for the screen** | `LCD_IDLE`: your app reads MIDI and the keys while the screen's DMA runs, so a chord never stumbles over a redraw. |\n| **The SMK-37 too** | `.\u002Fbuild.sh --board smk37` (Pro, Elite, MKE-P37): the same app on M-Vave's 37-key keyboard, with velocity, outer keys, 16 coloured pads, faders and wheels. [docs\u002FSMK37.md](docs\u002FSMK37.md) |\n| **An update screen** | The update loader draws your name in your colour, a progress bar and what to do, also after an install was cut off (FM-1). |\n| **A crash screen** | A fault shows where it happened (the PC), then the FM-1 restarts. |\n| **Host mode** | The same `dinghy.c` on your computer: the screen as an image, the sound as a WAV, scripted keys, knobs, MIDI (USB and TRS, a clock), SMK-37 pads and wheels. No FM-1 needed to try an idea. |\n| **Tests and CI** | `tests\u002Frun_tests.sh`: the host app, the flash maps, the update path, the loader, the installer. A tag `vX.Y` on GitHub builds, tests and releases the packages with a build attestation. |\n| **Checks** | The build fails on what bricks or breaks an FM-1 firmware: a 64-bit division, a call into the chip ROM, too much RAM, a register touched outside `hal\u002F`. |\n\n## Build your own\n\nFrom nothing to your own firmware on the FM-1, step by step. Each step works before you go to the next.\n\n### 1. Copy it\n\nOn GitHub: **Use this template** (top right on this page) or fork it, then clone your copy. Rename nothing yet:\nfirst make sure the unchanged Dinghy builds on your machine.\n\n### 2. Set up once\n\nYou need Linux on x86-64 (or macOS \u002F Windows with Docker or WSL), Python 3 with Pillow, the JieLi toolchain\nand three files of the JieLi AC79 SDK:\n\n```sh\npip3 install Pillow mido python-rtmidi\ntools\u002Fget_toolchain.sh                      # JieLi's clang for the chip, to ~\u002F.jieli\u002Ftoolchain\ngit clone --depth 1 --branch AC79NN_SDK_V1.2.1_2023-12-13 \\\n    https:\u002F\u002Fgitee.com\u002FJieli-Tech\u002Ffw-AC79_AIoT_SDK.git ~\u002Ffw-AC79_AIoT_SDK\n```\n\nOn macOS the build runs the toolchain in a `linux\u002Famd64` Docker container by itself (have Docker running).\n`JIELI_TOOLCHAIN` and `AC79_SDK` point elsewhere if your copies live somewhere else.\n\n### 3. Hear it without an FM-1\n\n```sh\ntests\u002Frun_host.sh                           # -> build\u002Fhost\u002Fdinghy.wav and screen PNGs\n```\n\nHost mode runs the same `dinghy.c` on your computer: the sound as a WAV, the screen as images. Most ideas can be\ntried here first, in seconds.\n\n### 4. Your first change\n\nOpen [firmware\u002Fsrc\u002Fdinghy.c](firmware\u002Fsrc\u002Fdinghy.c) (~200 lines). The sound is `app_audio()`: it gets an empty\nbuffer of stereo frames and adds to it. Make the sine a square:\n\n```c\ns = ((int32_t)ph \u003C 0 ? 8000 : -8000) * amp >> 15;     \u002F* instead of s = (sine(ph) * amp) >> 15; *\u002F\n```\n\nRun `tests\u002Frun_host.sh` again and listen to `build\u002Fhost\u002Fdinghy.wav`. The screen is drawn in `app_main()`, the keys\nare read there too: change the text, add a knob ([docs\u002FAPI.md](docs\u002FAPI.md) has every call).\n\n### 5. Onto the FM-1\n\n```sh\n.\u002Fbuild.sh                                       # -> build\u002Fdinghy.fwsc (fails on what would brick the FM-1)\npython3 tools\u002Ffm1_install.py build\u002Fdinghy.fwsc   # over USB; asks before it writes, restarts into your build\npython3 tools\u002Ffm1_install.py --info              # what runs on the connected FM-1\n```\n\nThat is the whole loop: change, hear it on the host, build, install. Back to another firmware, or to the official\none, with the [FM-1 Firmware Hub](https:\u002F\u002Fthefirmwarehub.com) in Chrome or Edge: Dinghy (and every copy of it)\nanswers the hub's updater like every firmware there. Installing firmware is at your own risk.\n\n### 6. When it goes wrong\n\n- **It crashes:** the screen shows where (the PC), then the FM-1 restarts. Twice at boot and it goes to the\n  USB rescue by itself.\n- **It won't start at all:** hold **OCT-** while switching on: the USB rescue, no sound, only the updater. Install\n  a working build (or another firmware from the hub) from there.\n- **The build refuses:** it checks for a 64-bit division, a call into the chip ROM, too much RAM, a register touched\n  outside `hal\u002F`. [docs\u002FRULES.md](docs\u002FRULES.md) says why each one matters; read it before your first crash.\n\n### 7. Make it yours, release it, get into the hub\n\nYour name and logo, your own package identity (so the FM-1 and the installers tell your firmware from Dinghy),\na GitHub release with the `.fwsc`, and how to get listed next to the others in the\n[FM-1 Firmware Hub](https:\u002F\u002Fthefirmwarehub.com): **[docs\u002FMAKE-IT-YOURS.md](docs\u002FMAKE-IT-YOURS.md)**.\n\n## Where to go next\n\n- **[docs\u002FAPI.md](docs\u002FAPI.md)**: everything `platform.c` gives you, with the panel's ids, the screen calls, the\n  audio contract, MIDI, storage, the flash map, timing, the SMK-37.\n- **[docs\u002FSMK37.md](docs\u002FSMK37.md)**: building and installing for the M-Vave SMK-37.\n- **[docs\u002FMAKE-IT-YOURS.md](docs\u002FMAKE-IT-YOURS.md)**: turn Dinghy into your firmware: the name, the package\n  identity, releases, getting into the FM-1 Firmware Hub.\n- **[docs\u002FRULES.md](docs\u002FRULES.md)**: the chip's rules (no FPU, no libgcc, the audio ISR's budget) and what the build\n  checks for you. Read it before your first crash, not after.\n\n## License\n\nGPL-3.0-only, as Felucca and SLOOP: you may change and share it, and whoever gets your firmware gets its source.\nDetails, credits and third-party parts in [LICENSING.md](LICENSING.md).\n\nThe platform is Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments, with SLOOP's changes (isod89);\nthe SMK-37 layer by M. Geisler (genkigenki); the loader's screen after Skiff (illuminus5). Dinghy (the app, the host\nmode, the docs) by zvenson.\n","Dinghy 是一款专为 M-VAVE FM-1 硬件设计的极简嵌入式固件模板，仅实现基础正弦波发声（4 声部），核心价值在于提供开箱即用的底层支撑能力：USB 固件更新、USB 救援模式、USB-MIDI（类标）、TRS MIDI 输入与时钟同步、USB 音频输入（44.1\u002F48 kHz）、按键\u002F旋钮\u002FLED\u002F屏幕驱动及 Flash 参数存储。基于 Felucca\u002FSLOOP 平台精简重构，代码结构清晰，平台层（platform.c）与应用层（dinghy.c）职责分离，便于开发者快速启动定制合成器开发。适用于硬件爱好者、MIDI 设备原型验证、FM-1 二次开发及嵌入式音频教学等轻量级合成器固件构建场景。",2,"2026-11-24 04:37:25","CREATED_QUERY"]