Scroll to navigation

PICOTOOL-ERASE(1) User Commands PICOTOOL-ERASE(1)

NAME

picotool-erase - Erase the program / memory stored in flash on the device.

SYNOPSIS

picotool erase [-a] [device-selection]

picotool erase -p <partition> [device-selection]

picotool erase -r <from> <to> [device-selection]

OPTIONS

Selection of data to erase

Erase all of flash memory. This is the default
Erase a partition
<partition>
Partition number to erase
Erase a range of memory. Note that erases must be 4096 byte-aligned,so the range is expanded accordingly
<from>
The lower address bound in hex
<to>
The upper address bound in hex

Source device selection

Filter devices by USB bus number
Filter devices by USB device address
Filter by vendor id
Filter by product id
Filter by serial number
Force a device not in BOOTSEL mode but running compatible code toreset so the command can be executed. After executing the command(unless the command itself is a `reboot') the device will berebooted back to application mode
Force a device not in BOOTSEL mode but running compatible code toreset so the command can be executed. After executing the command(unless the command itself is a `reboot') the device will be leftconnected and accessible to picotool, but without the USB drivemounted
December 2025 picotool 2.2.0-a4+dfsg