JavaScript port of picotool.
This library allows you to interact with a Raspberry Pi Pico or any RP2040 based board using JavaScript and a WebUSB enabled web browser, when the board is in in BOOTSEL mode.
Name | Description | Links |
---|---|---|
Flash Binary | Flash a .bin to the board in the browser |
[demo] [src] |
In order use this library with WebUSB on Linux, udev rules will need to be configured. Without doing this you will get an "Access denied" error.
- Create a file named
/etc/udev/rules.d/60-rp2040.rules
as root or with sudo, which contains the following:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2e8a", MODE:="0666"
- Run
sudo udevadm trigger
- Run
sudo udevadm control --reload-rules
- If the board was plug in previously, unplug and plug it back in.
In order use this library WebUSB on Windows the WinUSB driver must be installed.
- Download Zadig
- Put board into USB boot ROM mode, by holding down Boot or BOOTSEL button while plugging in USB cable.
- Open Zadig
- In drop-down, ensure "RP2 Boot (Interface 1)" is selected.
- Click "Install Driver" button.
- WinUSB driver is installed.
Disclaimer: This is not an official Arm product.