Code Monkey home page Code Monkey logo

pico-reboot's Introduction

Pico Reboot

A small utility to send a reboot request to a Raspberry Pi Pico.

Uploading code to a Pico board involves resetting the board by plugging the USB cable while holding down the boot button. This can be annoying for quick compile-upload cycles and can be stressful for the hardware itself.

The Pico standard library can, if enabled, respond do a reboot request via USB and reboot the device in either flash mode, just rebooting the device to the currently uploaded app, or in bootsel mode, to boot into the boot loader, akin to plugging the Pico while holding the 'boot' button.

Note: The reboot request handling is opt-in, and requires the pico application to be properly setup for it. Check the Pico SDK documentation for more information.

Additionally, the Pico bootloader does not handle reboot requests, so if the device is currently in bootsel mode (you can see the USB media for uploading .uf2 files), the reboot request will not be handled, and no reboot occurs.

Usage

By default, invoking the command will issue a request to boot to bootsel.

willy@Hitagi pico-reboot main$ pico-reboot
USB Reset tool
Opening device...
Claiming interface...
Requesting reboot to bootsel...
Done
willy@Hitagi pico-reboot main$ 

Use the --mode argument to specify either bootsel or flash

USAGE: pico-reboot [--mode <mode>]

OPTIONS:
  -m, --mode <mode>       reset mode: 'bootsel' or 'flash' (default: bootsel)
  -h, --help              Show help information.

pico-reboot's People

Contributors

biappi avatar

Stargazers

nnlychai avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.