Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.67 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.67 KB

JavaScript port of picotool

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.

Examples

Name Description Links
Flash Binary Flash a .bin to the board in the browser [demo] [src]

OS Specific Setup

Linux

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.

  1. 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"
  1. Run sudo udevadm trigger
  2. Run sudo udevadm control --reload-rules
  3. If the board was plug in previously, unplug and plug it back in.

Windows

In order use this library WebUSB on Windows the WinUSB driver must be installed.

  1. Download Zadig
  2. Put board into USB boot ROM mode, by holding down Boot or BOOTSEL button while plugging in USB cable.
  3. Open Zadig
  4. In drop-down, ensure "RP2 Boot (Interface 1)" is selected.
  5. Click "Install Driver" button.
  6. WinUSB driver is installed.

License

Apache-2.0 License


Disclaimer: This is not an official Arm product.