2.6 KiB
Layout
fpga/rtl/: Verilog sources;fpga/sim/: testbenches;fpga/src/: Quartus projectarduino/strix/: device firmwarearduino/strix_capture/: characterization tool firmware, used bytools/jitter.pyarduino/strix_nina_passthrough/: connects USB to the WiFi module's UART for flashing its firmwarearduino/libraries/:StrixFPGA(FPGA boot, SPI access, embedded FPGA image),VidorBoot(vendored subset of Arduino's VidorPeripherals), and Arduino'sWiFiNINA,Arduino_SpiNINAandArduinoBLE, patched to drive the WiFi module through the FPGA's pin pass-through (seearduino/libraries/STRIX-NINA-LIBRARIES.md)tools/:strix.pycommand-line client, FPGA image converter, jitter and statistics experiments, API check
Development (Linux)
The toolchain is managed by devbox: arduino-cli, Intel Quartus Prime Lite (Cyclone 10 LP only, through a Nix flake in nix/), Icarus Verilog, Rust, and uv for the Python tools (pyproject.toml, uv.lock).
devbox run setup: install the Arduino SAMD core (libraries are vendored inarduino/libraries/)devbox run sim: run the FPGA testbenchesdevbox run fpga: build the FPGA bitstream (about 10 minutes)devbox run image: embed the bitstream in theStrixFPGAlibrarydevbox run build, thendevbox run upload: build and flash the firmware (PORTdefaults to/dev/ttyACM0)devbox run api-check: end-to-end check of the USB APIdevbox run strix <command>: command-line client over USB (see the README)
Serial access requires membership in the dialout group. If a firmware leaves the board unable to stay on USB, enter the bootloader: hold reset while plugging in, release, then tap reset once quickly. For characterization, flash the capture tool with devbox run upload-capture and use devbox run jitter <freq|rings|sweep|output|health|stats|amp|pairs>. devbox run onod-build builds the onod3000 test suite used by jitter output and api-check.
WiFi module firmware
BLE needs NINA firmware 3.0.0 or newer (the board shipped with 1.0.0). To flash Arduino's nina-fw NINA.bin:
- Flash the passthrough:
devbox run -- arduino-cli compile -u -p /dev/ttyACM0 --fqbn arduino:samd:mkrvidor4000 --libraries arduino/libraries arduino/strix_nina_passthrough devbox run -- uv run esptool --chip esp32 --port /dev/ttyACM0 --baud 115200 write-flash 0 NINA.bin- Flash the STRIX firmware again (
devbox run upload);wifi probereports the module firmware version.
The passthrough forwards reliably at 115200 baud, not at 460800.