Test firmware for the node-usb project.
This project has been built for the STM32F103 Microprocessor, specifically the low-cost blue-pill device.
Grab a binary from the releases and flash it to your hardware.
Execute the node-usb tests and ensure they pass.
There are many ways to flash binaries to target hardware, this project was built using an ST-LINK/v2 on MacOS as follows:
Connect 3V3, SWDIO, SWCLK and GND wires of the SWD connector to the ST-LINK device:
Install the OSS ST-LINK tools
> brew install stlinkConfirm the device can be found:
> st-info --probeFlash the firmware to the device:
> st-flash --reset write firmware.bin 0x08000000If you want to build this locally (for example to target a different device), clone this repository recursively:
> git clone https://github.com/node-usb/node-usb-test-firmware --recurse-submodulesEnsure the arm-embedded gcc toolchain is installed. eg. on MacOS:
> brew install --cask gcc-arm-embeddedBuild the project:
> make -C libopencm3
> make
