<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss/styles.xsl" type="text/xsl"?><rss version="2.0"><channel><title>gotnull: Rusty Nail</title><description>A fantasy console that runs bare metal on a microcontroller, with PICO-8 carts, emulators, and its own HDMI and cartridge hardware.</description><link>https://blog.gotnull.com/</link><language>en-us</language><item><title>Reading a Game Boy cartridge through a GBFlash</title><link>https://blog.gotnull.com/reading-a-real-cartridge-through-a-fake-ch340/</link><guid isPermaLink="true">https://blog.gotnull.com/reading-a-real-cartridge-through-a-fake-ch340/</guid><description>The console&apos;s USB host port meets a cartridge reader that pretends to be a CH340 serial chip. By the end of the day the firmware read and validated a real cartridge header.</description><pubDate>Thu, 13 Aug 2026 05:55:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>usb</category><category>gameboy</category><category>stm32</category></item><item><title>Speculative execution against the SNES sound chip</title><link>https://blog.gotnull.com/running-ahead-of-the-sound-chip/</link><guid isPermaLink="true">https://blog.gotnull.com/running-ahead-of-the-sound-chip/</guid><description>The SNES core was losing four million cycles a frame waiting on a sound chip on another board. Predicting the answer lifted Super Mario World from 35 to about 50 fps.</description><pubDate>Tue, 04 Aug 2026 07:45:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>snes</category><category>emulation</category><category>stm32</category><category>rp2350</category><category>performance</category></item><item><title>A flight recorder for firmware</title><link>https://blog.gotnull.com/a-flight-recorder-for-firmware/</link><guid isPermaLink="true">https://blog.gotnull.com/a-flight-recorder-for-firmware/</guid><description>Building a recorder that captures a good run and a bad run of the same firmware workload so a tool can find the first difference that matters.</description><pubDate>Fri, 31 Jul 2026 00:11:06 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>debugging</category><category>tooling</category><category>stm32</category></item><item><title>Proving where the SNES bottleneck was</title><link>https://blog.gotnull.com/the-receiver-was-innocent/</link><guid isPermaLink="true">https://blog.gotnull.com/the-receiver-was-innocent/</guid><description>Days optimising the HDMI coprocessor because every symptom said it was holding the SNES back. The measurements pointed at the wire instead.</description><pubDate>Mon, 27 Jul 2026 12:40:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>snes</category><category>stm32</category><category>rp2350</category><category>hdmi</category><category>performance</category></item><item><title>The RP2040 as a SNES sound chip, at 97 per cent of realtime</title><link>https://blog.gotnull.com/when-97-percent-is-the-most-valuable-number/</link><guid isPermaLink="true">https://blog.gotnull.com/when-97-percent-is-the-most-valuable-number/</guid><description>Two bodge wires taught the HDMI coprocessor to talk back and run the SNES sound chip with real Super Mario World music. It reached 97 per cent of realtime.</description><pubDate>Fri, 24 Jul 2026 01:30:00 GMT</pubDate><category>rusty-nail</category><category>snes</category><category>rp2040</category><category>firmware</category><category>audio</category><category>hdmi</category></item><item><title>Profiling the SNES core on the H7</title><link>https://blog.gotnull.com/every-millisecond-now-has-a-name/</link><guid isPermaLink="true">https://blog.gotnull.com/every-millisecond-now-has-a-name/</guid><description>The from-scratch SNES core matches the reference emulator to the cycle. Five optimisations measured on hardware, and a profiler that says the problem is memory.</description><pubDate>Thu, 23 Jul 2026 12:20:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>snes</category><category>emulation</category><category>stm32</category><category>performance</category></item><item><title>The Amiga gets a mouse and boots Turrican II</title><link>https://blog.gotnull.com/press-left-mouse-button/</link><guid isPermaLink="true">https://blog.gotnull.com/press-left-mouse-button/</guid><description>Mouse input for the emulated Amiga, then a commercial game whose custom trackloader refused to work until the floppy drive learned to spin.</description><pubDate>Mon, 20 Jul 2026 17:00:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>amiga</category><category>emulation</category><category>games</category></item><item><title>The emulated Amiga boots Workbench 1.3</title><link>https://blog.gotnull.com/363960-free-memory/</link><guid isPermaLink="true">https://blog.gotnull.com/363960-free-memory/</guid><description>The Amiga core on the STM32H753 boots a real Workbench 1.3 floppy to the desktop, and what it took to get the floppy controller right.</description><pubDate>Mon, 20 Jul 2026 13:44:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>amiga</category><category>emulation</category><category>stm32</category></item><item><title>A desktop flasher for the cartridge</title><link>https://blog.gotnull.com/one-rom-three-chips-and-the-missing-cable/</link><guid isPermaLink="true">https://blog.gotnull.com/one-rom-three-chips-and-the-missing-cable/</guid><description>A host tool that turns one ROM into the matching H7 runtime, RP2040 receiver and cartridge image, and refuses to declare success until the cart reads back the exact bytes.</description><pubDate>Mon, 20 Jul 2026 11:39:35 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>cartridge</category><category>tooling</category><category>rust</category><category>gui</category></item><item><title>Kickstart 1.3 runs under budget on the STM32H753</title><link>https://blog.gotnull.com/kickstart-13-meets-the-cycle-counter/</link><guid isPermaLink="true">https://blog.gotnull.com/kickstart-13-meets-the-cycle-counter/</guid><description>First hardware numbers for the Amiga core: a real Kickstart 1.3 ROM executing deterministically at a p99 of 2.51M cycles per PAL frame, against a gate of 3.35M.</description><pubDate>Mon, 20 Jul 2026 09:00:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>amiga</category><category>stm32</category><category>emulation</category></item><item><title>Mega Drive emulation over an 8 MHz jumper-wire link</title><link>https://blog.gotnull.com/the-red-square-before-sonic/</link><guid isPermaLink="true">https://blog.gotnull.com/the-red-square-before-sonic/</guid><description>A Mega Drive emulator on a 480 MHz Cortex-M7 with perfect music beside a screen that tore in half. The fix was to make a slow frame arrive atomically.</description><pubDate>Sun, 19 Jul 2026 06:24:40 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>mega-drive</category><category>emulation</category><category>hdmi</category></item><item><title>Why Celeste sounded wrong</title><link>https://blog.gotnull.com/same-bytes-different-song/</link><guid isPermaLink="true">https://blog.gotnull.com/same-bytes-different-song/</guid><description>The cart was byte-identical to the BBS copy, so the fault was in the synth: a music clock cutting bars to a quarter, and a noise fit matched to the wrong metric.</description><pubDate>Sat, 18 Jul 2026 10:10:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>audio</category><category>pico-8</category></item><item><title>Planning USB floppy support</title><link>https://blog.gotnull.com/the-drive-is-not-a-usb-stick/</link><guid isPermaLink="true">https://blog.gotnull.com/the-drive-is-not-a-usb-stick/</guid><description>Four transport dialects from 1998 and a FAT12 layer nobody ships, which is why the first firmware milestone is just reading descriptors.</description><pubDate>Sat, 18 Jul 2026 07:30:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>usb</category><category>stm32</category><category>architecture</category></item><item><title>The console&apos;s second shell</title><link>https://blog.gotnull.com/the-shell-the-stack-and-the-secret-palette/</link><guid isPermaLink="true">https://blog.gotnull.com/the-shell-the-stack-and-the-secret-palette/</guid><description>Two days building the console&apos;s second shell, including a crash hunt that ended eight kilobytes from the stack floor.</description><pubDate>Sat, 18 Jul 2026 07:20:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>pico-8</category><category>ui</category><category>stm32</category><category>hdmi</category></item><item><title>Cattle Crisis from 9 fps to 58</title><link>https://blog.gotnull.com/nine-fps-under-the-clouds/</link><guid isPermaLink="true">https://blog.gotnull.com/nine-fps-under-the-clouds/</guid><description>One day of hardware A/B tests on the H753. The biggest single win was a compiler flag I should have set weeks ago.</description><pubDate>Thu, 16 Jul 2026 07:40:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>pico-8</category><category>lua</category><category>stm32</category><category>performance</category></item><item><title>Game Boy first light</title><link>https://blog.gotnull.com/the-wire-learns-a-second-shape/</link><guid isPermaLink="true">https://blog.gotnull.com/the-wire-learns-a-second-shape/</guid><description>Two days from a feasibility study to DMG code on the TV, with the console&apos;s SPI video wire carrying two frame geometries at once.</description><pubDate>Wed, 15 Jul 2026 14:45:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>gameboy</category><category>emulation</category><category>hdmi</category><category>stm32</category></item><item><title>A crash reporter for a bare-metal console</title><link>https://blog.gotnull.com/the-console-that-files-its-own-bug-reports/</link><guid isPermaLink="true">https://blog.gotnull.com/the-console-that-files-its-own-bug-reports/</guid><description>Giving the console a crash reporter that survives the reset and emails me, and the ways an STM32H7 loses data across a warm reset.</description><pubDate>Tue, 14 Jul 2026 10:40:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>stm32</category><category>crash-reporting</category></item><item><title>A 9 by 9 demoscene square in the launcher header</title><link>https://blog.gotnull.com/seventeen-demos-in-forty-nine-pixels/</link><guid isPermaLink="true">https://blog.gotnull.com/seventeen-demos-in-forty-nine-pixels/</guid><description>The launcher&apos;s blinking sparkle became a 9 by 9 pixel demoscene with seventeen tiny effects dealt from a shuffled deck.</description><pubDate>Tue, 14 Jul 2026 08:30:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>graphics</category><category>demoscene</category><category>stm32</category></item><item><title>Redesigning the cartridge shell around the label</title><link>https://blog.gotnull.com/the-cart-is-the-artwork/</link><guid isPermaLink="true">https://blog.gotnull.com/the-cart-is-the-artwork/</guid><description>The 3D-printed cartridge shell gets a flush sticker pocket and a chamfered corner, test-fitted virtually before printing anything.</description><pubDate>Mon, 13 Jul 2026 09:20:00 GMT</pubDate><category>rusty-nail</category><category>cartridge</category><category>3d-printing</category><category>pico-8</category></item><item><title>What all the wires are for</title><link>https://blog.gotnull.com/what-all-the-wires-are-for/</link><guid isPermaLink="true">https://blog.gotnull.com/what-all-the-wires-are-for/</guid><description>A tour of Rusty Nail as it stands, from the OS on screen to the four breakout boards and the cartridge shell with a 16 MiB flash chip inside.</description><pubDate>Mon, 13 Jul 2026 08:25:00 GMT</pubDate><category>rusty-nail</category><category>hardware</category><category>pico-8</category><category>cartridge</category><category>firmware</category></item><item><title>A 3x palette scanout for the HDMI picture</title><link>https://blog.gotnull.com/three-by-three-and-the-heap-that-lied/</link><guid isPermaLink="true">https://blog.gotnull.com/three-by-three-and-the-heap-that-lied/</guid><description>The HDMI picture was pixel-perfect and still looked soft. A full-resolution palette scanout fixed that, after an afternoon lost to a heap that only sometimes existed.</description><pubDate>Mon, 13 Jul 2026 06:05:00 GMT</pubDate><category>rusty-nail</category><category>hdmi</category><category>firmware</category><category>pico-8</category><category>rp2040</category></item><item><title>Why the speakers started clicking</title><link>https://blog.gotnull.com/the-cartridge-that-killed-its-own-soundtrack/</link><guid isPermaLink="true">https://blog.gotnull.com/the-cartridge-that-killed-its-own-soundtrack/</guid><description>The morning after deleting the old Lua core, everything played and then the speakers started clicking. A command trace found three lines of channel semantics and a missing crossfade.</description><pubDate>Sun, 12 Jul 2026 23:55:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>audio</category><category>pico-8</category><category>stm32</category></item><item><title>The fixed-point Lua core becomes the default</title><link>https://blog.gotnull.com/the-default-flips/</link><guid isPermaLink="true">https://blog.gotnull.com/the-default-flips/</guid><description>Stage 9 of the runtime migration, ending the night at 59 fps on jumper wires after a one-byte regression that cost 19 carts.</description><pubDate>Sun, 12 Jul 2026 13:40:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>lua</category><category>pico-8</category><category>stm32</category><category>benchmarks</category></item><item><title>An evening of unrelated fixes</title><link>https://blog.gotnull.com/the-ghost-the-ladder-and-the-cartridge/</link><guid isPermaLink="true">https://blog.gotnull.com/the-ghost-the-ladder-and-the-cartridge/</guid><description>Three unrelated fixes from one evening. The biggest was a cartridge that finally keeps its saves; the strangest was an iterator that duplicated the player.</description><pubDate>Sat, 11 Jul 2026 12:52:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>pico-8</category><category>lua</category><category>stm32</category><category>hardware</category></item><item><title>z8lua lands behind a flag</title><link>https://blog.gotnull.com/the-swap-measured/</link><guid isPermaLink="true">https://blog.gotnull.com/the-swap-measured/</guid><description>The new Lua core measured against the old one on identical silicon, with a licensed PICO-8 as the oracle and a per-cart compatibility matrix.</description><pubDate>Sat, 11 Jul 2026 08:10:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>lua</category><category>pico-8</category><category>stm32</category><category>benchmarks</category></item><item><title>A runtime baseline before the Lua swap</title><link>https://blog.gotnull.com/measure-first-the-runtime-baseline/</link><guid isPermaLink="true">https://blog.gotnull.com/measure-first-the-runtime-baseline/</guid><description>A permanent benchmark and input tapes recorded from real play, so the new Lua VM has numbers to beat before it lands.</description><pubDate>Sat, 11 Jul 2026 03:40:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>benchmarks</category><category>lua</category><category>pico-8</category><category>stm32</category></item><item><title>Why I didn&apos;t replace the PICO-8 runtime</title><link>https://blog.gotnull.com/why-i-didnt-replace-the-pico8-runtime/</link><guid isPermaLink="true">https://blog.gotnull.com/why-i-didnt-replace-the-pico8-runtime/</guid><description>Whether the homegrown PICO-8 runtime should be replaced with an existing emulator. After twenty-one test cartridges the answer was to keep everything and swap the Lua core.</description><pubDate>Fri, 10 Jul 2026 15:27:06 GMT</pubDate><category>rusty-nail</category><category>pico-8</category><category>lua</category><category>architecture</category></item><item><title>Threading the HDMI funnel by hand</title><link>https://blog.gotnull.com/threading-the-hdmi-funnel-by-hand/</link><guid isPermaLink="true">https://blog.gotnull.com/threading-the-hdmi-funnel-by-hand/</guid><description>The eight wires into the HDMI connector were the one part of the board I had decided to hand off. A script almost did it, then KiCad&apos;s push-and-shove router did.</description><pubDate>Tue, 07 Jul 2026 04:34:10 GMT</pubDate><category>rusty-nail</category><category>hdmi</category><category>pcb</category></item><item><title>Getting console frames onto the Feather RP2040 DVI</title><link>https://blog.gotnull.com/four-wires-five-villains/</link><guid isPermaLink="true">https://blog.gotnull.com/four-wires-five-villains/</guid><description>Two days between the H7 and a real HDMI picture, including a missing ground return and a clock divider that misreported its rate.</description><pubDate>Fri, 03 Jul 2026 14:40:00 GMT</pubDate><category>rusty-nail</category><category>hdmi</category><category>rp2040</category><category>displays</category><category>audio</category><category>hardware</category><category>debugging</category></item><item><title>First light on the Feather RP2040 DVI</title><link>https://blog.gotnull.com/sixteen-bars-and-a-bouncing-box/</link><guid isPermaLink="true">https://blog.gotnull.com/sixteen-bars-and-a-bouncing-box/</guid><description>The DVI board had the console&apos;s palette on a monitor within 45 minutes of arriving, despite a wrong-variant pinout diagram and a slicer typing G-code into my REPL.</description><pubDate>Fri, 03 Jul 2026 02:55:00 GMT</pubDate><category>rusty-nail</category><category>hdmi</category><category>rp2040</category><category>displays</category><category>hardware</category></item><item><title>Downloading PICO-8 carts over WiFi</title><link>https://blog.gotnull.com/it-was-never-the-password/</link><guid isPermaLink="true">https://blog.gotnull.com/it-was-never-the-password/</guid><description>Rusty Nail can download carts from a pop-up launcher. The WiFi reason-15 failure was my own off-by-one, and a GPIO pin really did die on the bench.</description><pubDate>Wed, 01 Jul 2026 15:05:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>wifi</category><category>esp32</category><category>pico-8</category><category>launcher</category></item><item><title>Reading the framebuffer out of RAM</title><link>https://blog.gotnull.com/reading-the-framebuffer-out-of-ram/</link><guid isPermaLink="true">https://blog.gotnull.com/reading-the-framebuffer-out-of-ram/</guid><description>The standalone build sends nothing back to a host, so before I could redesign the boot splash I had to work out how to screenshot a screen my Mac cannot see.</description><pubDate>Tue, 30 Jun 2026 14:15:58 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>displays</category><category>stm32</category></item><item><title>Planning a flash cartridge for the console</title><link>https://blog.gotnull.com/16-megabytes-for-a-32-kilobyte-game/</link><guid isPermaLink="true">https://blog.gotnull.com/16-megabytes-for-a-32-kilobyte-game/</guid><description>Picking a W25Q flash chip for a physical PICO-8 cartridge and mapping how the firmware would read it. Nothing is built yet.</description><pubDate>Tue, 30 Jun 2026 10:02:06 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>pico-8</category><category>stm32</category><category>cartridge</category></item><item><title>The HDMI board I bought before reading the datasheet</title><link>https://blog.gotnull.com/the-hdmi-board-before-the-datasheet/</link><guid isPermaLink="true">https://blog.gotnull.com/the-hdmi-board-before-the-datasheet/</guid><description>I bought a 50-pin RGB888-to-HDMI board, then counted the pins. The Nucleo never had 24 to give, so the fix is probably a second microcontroller whose whole job is HDMI.</description><pubDate>Tue, 30 Jun 2026 07:50:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>hdmi</category><category>displays</category><category>stm32</category><category>rp2040</category></item><item><title>A divide per pixel</title><link>https://blog.gotnull.com/a-divide-per-pixel/</link><guid isPermaLink="true">https://blog.gotnull.com/a-divide-per-pixel/</guid><description>Profiling the PICO-8 runtime found a stretched-sprite blit doing an integer divide on every pixel, on a chip with no fast divide.</description><pubDate>Tue, 30 Jun 2026 07:15:35 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>pico-8</category><category>lua</category><category>stm32</category></item><item><title>Moving the SPI panel to DMA</title><link>https://blog.gotnull.com/off-the-critical-path/</link><guid isPermaLink="true">https://blog.gotnull.com/off-the-critical-path/</guid><description>The SPI blit was a blocking row-by-row write that stalled the console for about 13 ms every frame. DMA fixed it and the data cache nearly broke it.</description><pubDate>Tue, 30 Jun 2026 06:18:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>displays</category><category>dma</category><category>stm32</category></item><item><title>Swapping the ESP32 for a Bluetooth gamepad</title><link>https://blog.gotnull.com/the-controller-layer-was-the-chip/</link><guid isPermaLink="true">https://blog.gotnull.com/the-controller-layer-was-the-chip/</guid><description>I picked an ESP32-C6 for the controller bridge and learned that BLE-only is a property of the silicon, so the fix was a different chip and one build flag.</description><pubDate>Mon, 29 Jun 2026 15:14:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>esp32</category><category>bluetooth</category></item><item><title>The SPI panel and me</title><link>https://blog.gotnull.com/i-keep-choosing-hard-mode/</link><guid isPermaLink="true">https://blog.gotnull.com/i-keep-choosing-hard-mode/</guid><description>I had a working HDMI path at 12:48am. The next morning I picked up the tiny SPI screen instead and spent nine hours reinventing flicker.</description><pubDate>Mon, 29 Jun 2026 09:40:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>displays</category><category>hdmi</category><category>stm32</category></item><item><title>The SPI panel, from a blank screen to 25 MHz</title><link>https://blog.gotnull.com/the-spi-panel-saga/</link><guid isPermaLink="true">https://blog.gotnull.com/the-spi-panel-saga/</guid><description>Getting the desktop off the USB stream and onto a real LCD, then climbing from 1 MHz to 25 MHz without losing the audio.</description><pubDate>Sat, 27 Jun 2026 07:18:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>displays</category><category>stm32</category></item><item><title>Getting sound out of it</title><link>https://blog.gotnull.com/getting-sound-out-of-it/</link><guid isPermaLink="true">https://blog.gotnull.com/getting-sound-out-of-it/</guid><description>Wiring an I2S DAC to the console over SAI and DMA, and why the audio stayed silent for most of a day.</description><pubDate>Sun, 21 Jun 2026 10:45:00 GMT</pubDate><category>rusty-nail</category><category>audio</category><category>firmware</category><category>stm32</category></item><item><title>Running real PICO-8 Lua on a Cortex-M7</title><link>https://blog.gotnull.com/real-pico8-lua-on-a-cortex-m7/</link><guid isPermaLink="true">https://blog.gotnull.com/real-pico8-lua-on-a-cortex-m7/</guid><description>Vendoring Lua 5.4 into bare-metal firmware, and why a hardware watchdog beat an instruction-count hook for stopping runaway carts.</description><pubDate>Tue, 16 Jun 2026 11:30:00 GMT</pubDate><category>rusty-nail</category><category>lua</category><category>firmware</category><category>pico-8</category></item><item><title>How Rusty Nail is put together</title><link>https://blog.gotnull.com/a-fantasy-console-on-a-dev-board/</link><guid isPermaLink="true">https://blog.gotnull.com/a-fantasy-console-on-a-dev-board/</guid><description>Rusty Nail is a windowed pixel desktop running bare metal on a Nucleo-H753ZI. This is the architecture, and why the display is an abstraction from the start.</description><pubDate>Thu, 11 Jun 2026 00:30:00 GMT</pubDate><category>rusty-nail</category><category>firmware</category><category>rust</category><category>architecture</category></item></channel></rss>