Releases
Releases are built with GoReleaser from the tag
workflow. They are published on the
GitHub Releases page. Pushing
a v* tag (or dispatching the release workflow with a tag) publishes a
GitHub release with both programs:
| artifact | contents |
|---|---|
rp2350sim_<version>_linux_<arch>.tar.gz |
rp2350sim, rp2350sim-ui, LICENSE, README, docs |
rp2350sim_<version>_darwin_<arch>.tar.gz |
same |
rp2350sim_<version>_windows_<arch>.zip |
rp2350sim.exe, rp2350sim-ui.exe, LICENSE, README, docs |
rp2350sim_<version>_checksums.txt |
SHA-256 checksums |
Platforms are amd64 and arm64 for Linux, macOS and Windows. rp2350sim is
the headless runner; rp2350sim-ui is the Shirei desktop UI. Both report their
version with -version.
The binaries are pure Go (CGO_ENABLED=0), including the UI’s Shirei/purego
backend, so a single Linux runner cross-compiles every target.
Replace <tag> with the release tag (for example v0.6.0) and <previous-tag>
with the prior tag. Keep the paths themselves abstract:
- repository:
https://github.com/akhenakh/rp2350sim - releases:
https://github.com/akhenakh/rp2350sim/releases - tag:
https://github.com/akhenakh/rp2350sim/releases/tag/<tag> - asset:
https://github.com/akhenakh/rp2350sim/releases/download/<tag>/<asset> - source archive:
https://github.com/akhenakh/rp2350sim/archive/refs/tags/<tag>.tar.gz - comparison:
https://github.com/akhenakh/rp2350sim/compare/<previous-tag>...<tag>
- Update this document and the user-facing docs, then commit them. Move the
work being released from Next release into
v<version> highlights, and keep Next release for work that follows the tag. - Tag that documentation commit as
v<version>and push the tag. - The release workflow builds, attests and publishes the archives.
- Update the Homebrew tap and AUR package from the published checksums.
Committing the release notes before tagging keeps the tag, source archive and release page consistent without retroactively editing the tagged commit.
Working notes for changes after v0.6 go here.
v0.6 models the Pico 2 W’s CYW43439 at the gSPI pins: the stock TinyGo Wi-Fi driver runs unmodified, the radio reaches a virtual access point backed by a gVisor userland TCP/IP stack, and Bluetooth HCI shares the same bus. The Wi-Fi clock demo and the Wi-Fi/UART tabs show it end to end. See the What’s New #6 tour.
- The Pico 2 W’s CYW43439 is modelled at the gSPI pins, so the stock TinyGo
soypat/cyw43439driver runs unmodified: reset, firmware/CLM/NVRAM download, WLC control, join/async events and theWL_GPIO0LED.-cyw43439and thepico2w-cywboard select it;firmware/pico2wcovers bring-up and join, andfirmware/pico2wnetgets DHCP, resolves a name and echoes over TCP. The legacypico2wCH9120 netdev board is unchanged. See boards.md. - The CYW43439 Ethernet data path is a virtual AP: DHCP (
10.0.2.15/24), ARP, DNS (10.0.2.3, boardhostsor the host resolver), NTP, and gVisor TCP/UDP NAT (gateway10.0.2.2maps to the host loopback). gVisor is pinned to itsgobranch and its clock runs on chip virtual time.-cyw43439-host,-cyw43439-no-netand-cyw43439-pcapcontrol it; the Wi-Fi tab lists live/recent NAT flows and saves the Ethernet capture as pcapng. - Bluetooth runs over the same gSPI transport: the CYW43439 shared-memory
host2bt/bt2host rings carry HCI into the virtual controller.
firmware/pico2wbledownloads the BT firmware, sends HCI Reset and reads BD_ADDR;-cyw43439-ble-*and-cyw43439-ble-logexpose it. The stock Pico SDK BTstack firmware still uses the-blesymbol-hook controller. See ble.md. firmware/wificlockandui:wificlockrun a Pico 2 W with a 320×240 ST7789: DHCP,pool.ntp.orgresolution, an NTP-derived UTC clock, and a 4 fps UI. The clock redraws only the digit cells that changed, leaving the background and static labels untouched; the board ispico2w-lcd.- UI: Plugins and UART are separate tabs, and the UART log groups up to 64
bytes per line with the clear text and hex on the same line, keeps the last
1000 lines and follows the newest byte (the wheel pauses following; the
Follow button resumes). Ethernet and Wi-Fi moved next to Bus so the device
tabs sit together;
--fpscaps the UI rebuild rate. See ui.md. - PIO fidelity: a forced OUT that needs a refill while the SM is halted now
completes (piolib’s
SetX/SetY), an autopull OUT resumes once the TX FIFO is filled, side-set applies on the resumed cycle, and a latched PIO pindir/output is applied when FUNCSEL switches to a PIO function — the pico-sdk cyw43 driver sets pindirs before selecting the PIO function. Forced instructions also complete at sys_clk with a divided or default SM clock, sticky OUT/PINDIRS ranges rotate and wrap through the 32-pin window, and leaving PIO releases the pad. - CYW43439 hardening:
Device.Closetears down the gVisor stack and NAT sockets on reload, virtual timers re-arm after firing, reset and capture no longer race the DNS resolver, the gSPI interface is gated on CS andWL_REG_ON, a short data frame uses the BDC header, an empty read returns the status word, length zero means 2048 bytes, and duplicate-address probes for the guest are not answered. - New demo tasks and boards:
run:pico2w,run:pico2wnet,run:pico2wble,run:wificlock,ui:wificlockandui:wificlock:png; boardspico2w-cywandpico2w-lcd. The smoke suite covers CYW firmware/join/LED, HCI Reset, Wi-Fi DHCP/NTP and the clock LCD. task ciruns lint, the unit tests and the smoke suite concurrently. Lint is split per module and the module gates run in sequence (golangci-lint holds a cache lock), the tests run as independent tasks, and the smoke suite is eight slices (basic1,network,basic2,c,pex1–pex4): the network checks stay together because they share host ports, and the Pico SDK C examples and pico-examples are built once and reused. Each slice writes its ownbuild/smoke-<slice>.log. On a 24-core host the warm full run drops from 2:18 to 36 s at about 4× CPU;bash tools/smoke.shstill runs the whole suite sequentially.task ciuses all cores locally and phases GitHub Actions into a lint/unit/QEMU pass and then a smoke pass with three slices, because the four-core runner starves the GDB/QEMU tests otherwise.- A virtual CYW43 BLE controller runs stock Pico W BTstack firmware against a
deterministic link layer and a scripted Environmental Sensing peer. The
emulator binds the CYW43 HCI symbols in the ELF, so
ble_temp_readeradvertises, connects, discovers GATT, enables notifications and printsRead temp 23.45 degcwithout a source shim.-ble,-ble-hci-log(pcapng for Wireshark) and thepico2-w-bleUI board expose it; see ble.md. One connection is modelled; pairing/bonding, LESC, extended advertising and Classic are out of scope. - The cores scheduler affinity API is covered:
firmware/assigncorepins one goroutine to each core withmachine.AssignCoreand verifiesCurrentCoreafter sleeps and channel wakeups.task run:assigncoreruns it, and the smoke suite asserts both cores reportok=true. - Cortex-M33 conformance: ADR.W and literal LDRD use
Align(PC,4); LDA/LDAB/LDAH no longer arm the exclusive monitor; undefinedVMOV.F64encodings halt instead of panicking;VMRS APSR_nzcv, FPSCRcopies only NZCV andVMSRkeeps AHP/DN/FZ/RMode;CONTROL.FPCAfollowsFPCCR.ASPEN; LDMDB, SSAT and USAT are implemented and SEL halts untilAPSR.GEis modelled. The double coprocessor keeps its result in X and models the engaged flag, so the SDK’s save/restore path survives a reentrant double operation. - The Pico SDK C examples remain the fidelity gate. The pico-examples harness now also builds and runs the clocks, boot-info, narrow-IO, board-ID, onboard-temperature, VSYS, ADC-DMA, flash-program, DMA control-block/sniff, periodic-sampler, low-power, multicore doorbell/runner/queue, low-level timer, binary-info and USB low-level examples. Those runs added the ARMv8 round-to-integral instructions, a synthesized CLOCKS frequency counter, and a bootrom park loop for a core 1 entry that returns.
- Peripheral fidelity: TIMER
ARMEDthrough the+0x3000CLR alias clears only the requested alarms, alarms use the full 32-bit window, and TIMEHW/TIMELW writes set the counter. SHA-256 CSR control bits survive the+0x2000/+0x3000aliases, sosha256_start()no longer clears BSWAP/DMA_SIZE. PIOWAIT GPIOandDBG_PADOUT/DBG_PADOEhonour GPIOBASE on RP2350B. ADC round-robin can select the temperature channel and gates its default reading onTS_EN. Hang diagnostics no longer consume a FIFO word or claim a spinlock. The bootrom answers CHIP_INFO, CRITICAL, CPU_INFO, FLASH_DEV_INFO, NONCE and BOOT_INFO, androm_rebootrecords the boot type forrom_get_last_boot_type(). The0x18000000window is cache maintenance, not a flash alias. - Interrupts and DMA: PWM wrap interrupts are delivered on IRQ 8 and IRQ 9.
An ISR that returns without clearing a still-active level-sensitive line is
re-entered, matching hardware. DMA TREQ pacing covers PIO TX/RX FIFOs,
SPI/UART/I2C, PWM wrap, ADC, HSTX and SHA-256, so DMA-driven PIO no longer
overruns the TX FIFO;
TRANS_COUNT.MODEimplements NORMAL, TRIGGER_SELF and ENDLESS, and a null trigger requiresEN. - DWARF4
.debug_locno longer double-applies relocations on linked images or uses an off-by-one symbol index, so optimized variable locations resolve. - The in-tree W6300 driver’s
RecvadvancesSn_RX_RDby the bytes actually copied on TCP, so a short read (a TLS record header) leaves the rest of the stream queued, and UDP reads the WIZnet 8-byte header to return exactly one datagram.firmware/w6300andtools/ethhost -udp-replycover the split read and two queued datagrams in CI. - OTP onboarding: boards can pre-burn the array with
otp: {file, rows, persist}andrp2350sim-ui --otp PATH; the CLI and UI shareinternal/otpfile. A selected board seeds a fresh array, while Reset, Load and--watchkeep programmed rows. A firmware fuse or lock change writes the persist file, which wins overfileand inline rows on the next start. The OTP tab names the seed source and opens its page, so an unmodified production firmware boots with its factory-burned key.
v0.5 turns the emulator into a sensor and protocol lab: scripted and timed devices, a CAN controller, NMEA GPS, ITM/DWT trace and a matching desktop UI. See the What’s New #5 tour.
- Scripted device plugins: I2C, SPI and UART models can be shipped as Lua or
WASM files and loaded from
boards.yaml, the CLI or the Plugins tab. Lua runs in a bundled wasm interpreter and both formats share one ABI; desktop and headless runs use wazero, while the browser uses native WebAssembly. Pluginprint/host_loglines are shown in the Plugins tab. - Timed wire devices: a DS18B20 on 1-Wire, DHT11/DHT22 and HC-SR04 models use
cycle-exact edge deadlines rather than scripted bus transactions. A
deterministic NMEA GPS source, a classic CAN 2.0B bus with a responding peer
and an MCP2515 SPI controller join them.
-onewire,-dht,-ultrasonic,-gpsand-canattach them headlessly;pico2-lcd-labandfirmware/labshow all of them on one LCD dashboard. - Cortex-M33 ITM stimulus ports and the DWT cycle/PC counters are modelled,
including byte and halfword ITM accesses. The Trace tab groups ITM writes
into lines, and
-itmprints them headlessly. The GPS, CAN and Trace tabs haveui:gps,ui:canandui:tracetasks. - Plugin hardening: desktop calls have a 50 ms deadline (500 ms during init),
a 64 MiB memory cap, a shared wazero compilation cache and deterministic
Lua clock/time. Lua exposes no
os/io/debug, config encoding rejects non-finite/cyclic values, and the WASM fixtures use a real static allocator. UART plugins own a UART; I2C/SPI plugins cannot inject serial bytes. Board plugin pins and the new device pins are validated against package bounds and shared GPIOs. - ITM/DWT registers are per-core, CYCCNT supports write-to-reset and
CTRL.CYCCNTENA, exact ITM write widths are preserved, and trace LAR/LSR
accesses are no-ops. DHT22 negatives use sign-magnitude, DHT11 and HC-SR04
timings are bounded, MCP2515 READ/RX STATUS and interrupt deassert are
corrected, and extended CAN IDs are covered. Device models reset with the
chip through a reset hook. GPS has explicit fix/no-fix and standards-shaped
ddmm.mmmm/dddmm.mmmmoutput. - Performance: the UI logic analyzer samples only while its tab is open or a trigger is armed, digital traces read a bit-parallel level mask, and timer IRQ resynchronisation and hang sampling were trimmed. A 20 s Touch-LCD-2 run with a WASM UART plugin went from 19 s to 9 s in the UI and from 9.8 s to 6.8 s headless.
v0.4 adds observability (profiling, coverage and hang explanations), deeper peripheral fidelity (a paced ADC and a virtual BOOTSEL drive), and a faster instruction core.
- Peripheral scheduling no longer polls every cycle. WS2812B, audio (I2S/PDM/PWM) and the W5500/W6300 Ethernet models observe pin edges through listeners, and their timed work (the WS2812B 50 µs reset gap, the audio sample window, a scripted touch) runs on the emulator’s virtual-time calendar. Boards with these devices keep the idle fast-forward when they are idle: an idle audio-plus-LED board went from about 0.30× to 9.7× real time on a desktop host. Decoder output and Ethernet behaviour are unchanged.
- USB HID joins CDC and MIDI. The emulated host follows the configuration
descriptor for HID interfaces, fetches the report descriptor, sends SET_IDLE,
and decodes keyboard, mouse and gamepad reports (including composite devices
and report IDs).
-usb-hidlogs reports,-hid-outsends host-to-device output such as keyboard LEDs, and the new HID tab monitors reports and sends output reports. - The scope gains a Show FFT view: a Hann-windowed one-sided real FFT of
the visible window, dBFS-normalised, with a log/linear frequency axis, channel
selector, interpolated peak readout and
--fftfor headless renders. The FFT is UI-only (github.com/go-fft/fftincmd/simui); the root module remains dependency-free. Spectrum and time plots resize with the window. - Scope measurements now include 10–90% rise and fall times per channel,
alongside minimum/maximum levels and the existing frequency/duty/period
readouts. A per-channel toggle switches between logic edges and analog
10–90% thresholds, and
--measurerenders the analog view headlessly. - A virtual RPI-RP2 BOOTSEL drive: the BOOTSEL tab takes a
.uf2through a file picker or path, accepts any RP2350 UF2 family, installs only flash segments after validating the boot vector, then boots the new image. The browser page also accepts a dropped file; the desktop build uses the click/path flow because Shirei exposes no native OS drop event. - Hang detection: the chip samples the PC every 64 cycles and reports a core
that stays in a tight loop, with the function/line and the polled register
resolved through DWARF and the official
RP2350.svd(for examplePLL_SYS_PWR.PD is set, so LOCK cannot set). The UI shows a HANG banner,-hang-cyclescontrols or disables the detector, andOnHang/HangInfoexpose it to tools. Only peripheral polls and pure spins count, so legitimate SRAM busy-waits such ashello_timerare not false positives. The PLL model now gatesLOCKonPWR.PD/VCOPD. - The ADC is paced instead of instantaneous: conversions take 96 ADC clocks
scaled by
DIV(500 kS/s atDIV=0), with an 8-entry FIFO, START_ONCE / START_MANY, round-robinAINSELupdates, FCS threshold IRQ 35 andDREQ_ADCpacing for DMA channels. Board analog sources gain ramp and noise waveforms, live mute/waveform switching in the Scope tab, and thepico2-adcboard exposes sine/ramp/noise/square on GP26–29. - Instruction predecode: both cores share a bounded 16K-entry direct-mapped
cache of fetched Thumb halfwords, keyed by PC and a memory generation. Flash
erase/program/load, QMI/XIP writes, writable PSRAM stores and reset bump the
generation; CPU/DMA SRAM stores clear only the overlapping entries, so
self-modifying code stays correct.
blink.elfruns about 8% faster. - Profiling and coverage:
-profilesamples the PC every-profile-intervalcycles and counts every executed instruction exactly.-coverage PATHwrites LCOV,-profile-out PATHwrites the report as JSON, and-profile-top Nlogs the hottest functions. The new Profile tab shows the summary, a function table sorted by sampled cycles with instruction coverage, the IRQ pend-to-entry latency histogram, and sampled MSP/PSP low-water marks. All of it runs on virtual time, so repeated runs produce the same report. - Selecting a board before loading a firmware keeps the machine parked. It used to execute the empty boot ROM and slide through unmapped memory, which showed up as about 0.03× in the UI and grew the unmapped-access map.
- Verification covers unit, race, lint, QEMU differential, WASM build and the full firmware smoke suite. New regressions cover ADC pacing/FIFO/DMA, predecode invalidation, hang false positives, profile LCOV/JSON and the Profile tab snapshot, and the pico-examples timer checks exercise the busy-wait path.
v0.3 focuses on virtual-time scheduling, desktop and browser performance, and UI fidelity.
- Emulator interval samplers (scope and logic traces, analog waveform sources,
IMU, SD write-back, CH9120 and touch) moved to
Chip.AddPeriodicHook: they run on their virtual-time grid instead of every cycle, so they keep the idle fast-forward available. CLI-logiccaptures and the UI scope/logic tabs no longer cost throughput, and a pin trace takes its first sample at attach so the capture window starts where it used to. Missed grid slots are skipped, never replayed. - Desktop UI pacing: a live window keeps virtual time level with wall time
instead of running flat out. The status line shows the achieved ratio over a
one-second window, turning the virtual clock red below 0.90 and clearing it
above 0.97; the new
--turboflag runs as fast as the host allows. Headless snapshots are unaffected. - UI loop: the 200 µs pacing sleep (about a millisecond of timer granularity on
Linux) is gone and repaint requests are capped at display rate. Measured on
the Touch-LCD-2 the window now runs at 1.0× real time (1.5× with
--turbo); the GEEK LCD example went from 0.11× to about 0.25×. - ST7789 frame memory is addressed column-wise under MADCTL MV (
X*240+Y), as the controller does. The Touch-LCD-2 no longer duplicates the right third of the panel on the left, which made a touch marker near an edge look like a copy on the opposite side; the GEEK output is unchanged. - Homebrew formula generation targets macOS only (Apple Silicon and Intel).
- Browser build:
task wasm:buildcompiles the desktop UI to WebAssembly with Shirei’sshirei_web, so the same window runs in a page with the board, firmware and tab chosen by URL (?board=…&fw=…&tab=…). The demo is published with the documentation at https://akhenakh.github.io/rp2350sim/demo/. Host devices (sockets, SD directory backing, GDB, the file picker) are stripped before boot and firmware is fetched over HTTP. The browser starts in turbo and hides host file/audio controls; seedocs/wasm.md. - Emulator hot-path pass: a one-entry MMIO register-block cache, monitor
invalidation without a per-write slice, cached PIO input levels, hoisted
SysTick/SHA/HSTX enable checks, a flat-XIP instruction-fetch path, and bus
taps that only format a trigger message when a trigger is armed. About 17%
more instructions per second natively (~36M/s) and ~24% on the LCD demo; the
browser build gains ~23% (2.6M → 3.2M cycles/s) plus
wasm-opt -O3.
v0.2 contains 71 commits since 093f67a, focused on RP2350
datasheet conformance and regression hardening.
- RP2350 datasheet-conformance pass across CPU/SCS, memory/boot, DMA, PIO, timers, PWM, ADC, serial peripherals, USB, HSTX, TRNG, SHA-256 and OTP.
- Host-safety fixes for FAT16 confinement, flash backing, GDB locking, bounded network I/O, socket shutdown and device lifecycle cleanup.
- TinyGo reliability: USB IRQ delivery, UART host bursts, PSP exception-entry synchronization and multicore console completion.
- DMA/PIO/PWM/timer/ADC trigger, FIFO, interrupt, timing and reset semantics corrected, with new conformance and idle-scheduling regressions.
- I2C/SPI/UART abort, FIFO, threshold, reset and narrow-write behavior aligned with the RP2350 datasheet.
- PSRAM maintenance-window safety, BOOTRAM lane writes,
+0x4000zero-fill writes, PSM core-1 reset and PADS IE/ISO/OD behavior added. - Desktop UI migrated to Shirei v0.10 with the in-window
FileBrowserModal; Zenity and its transitive dependencies were removed. - GEEK ST7789 logical-window rendering fixed, and the oscilloscope GPIO picker is now width-aware and stays inside the window.
- Debugger source rendering guards stale DWARF line tables; board validation rejects GPIO/chip-select collisions.
- Verification expanded across unit/race/lint/QEMU plus full TinyGo, Pico SDK, pico-examples, UI, network, bridge, LCD, DVI, OTA, PSRAM, OTP and RTOS smokes.
The release workflow attests every archive and the checksum file with GitHub build provenance. After downloading an archive, verify it with the GitHub CLI:
gh attestation verify rp2350sim_<version>_linux_amd64.tar.gz \
--repo akhenakh/rp2350sim
The .zip Windows archives work the same way.
Every v* release also updates
akhenakh/homebrew-tap. Install
both programs on macOS (Apple Silicon or Intel) with:
brew install akhenakh/tap/rp2350sim
The release workflow runs scripts/brew-bump.sh <tag> after the GitHub
release and artifact attestations. The script downloads the release checksums,
generates Formula/rp2350sim.rb with the two macOS platform URLs and
SHA-256 digests, and pushes it to the tap. It uses the repository secret
TAP_GITHUB_TOKEN, a token with contents: write on the tap. Without the
token it falls back to an SSH clone.
To check the generated formula locally without touching the tap:
DRY_RUN=1 CHECKSUMS_FILE=dist/rp2350sim_<version>_checksums.txt \
scripts/brew-bump.sh v<version>
The formula installs rp2350sim and rp2350sim-ui and tests both version
commands.
The Arch package is rp2350sim in the AUR and builds both programs from the
release source tarball. Install it with an AUR helper:
yay -S rp2350sim
# or
paru -S rp2350sim
The package installs /usr/bin/rp2350sim and /usr/bin/rp2350sim-ui. The
PKGBUILD tracks the latest published tag and carries that tag’s source
checksum. After a release, bump pkgver to the new tag, run updpkgsums, and
regenerate .SRCINFO with makepkg --printsrcinfo > .SRCINFO before updating
the AUR. Use the abstract source path
https://github.com/akhenakh/rp2350sim/archive/refs/tags/<tag>.tar.gz so the
PKGBUILD is not coupled to an unreleased version.
task release:check # goreleaser check
task release:snapshot # build all archives under dist/, no publish
task release:snapshot needs GoReleaser installed (goreleaser in $PATH).
The release workflow pins the v2 GoReleaser action and attests the published
archives and checksums with GitHub artifact attestations.
The project is Apache-2.0. The LICENSE file is included in every archive;
the emulator’s bundled board definitions and documentation are covered by the
same license.