| Crates.io | rp2040-panic-usb-boot |
| lib.rs | rp2040-panic-usb-boot |
| version | 0.6.0 |
| created_at | 2021-01-27 23:59:06.359639+00 |
| updated_at | 2025-01-31 22:06:21.612503+00 |
| description | On panic, boot to USB mode implemented in ROM |
| homepage | https://github.com/jannic/rp2040-panic-usb-boot/ |
| repository | https://github.com/jannic/rp2040-panic-usb-boot/ |
| max_upload_size | |
| id | 347510 |
| size | 32,557 |
On panic, the USB boot mode implemented in ROM will be
called, providing access for UF2 uploads and picotool.
Just add this to your main.rs:
use rp2040_panic_usb_boot as _;
Before rebooting, XIP caching is disabled and panic messages are written to the XIP RAM.
That way, the panic message can be read using picotool, eg.:
picotool save -r 0x15000000 0x15004000 message.bin
cat message.bin
RAM contents can be read the same way, by reading from
address 0x20000000.
The contents of this repository are dual-licensed under the MIT OR Apache
2.0 License. That means you can choose either the MIT license or the
Apache-2.0 license when you re-use this code. See MIT or APACHE2.0 for more
information on each specific license.
Any submissions to this project (e.g. as Pull Requests) must be made available under these terms.