Datasheet

Table Of Contents
Table 169. PICOBOOT
Exclusive access
command structure
Offset Name Value / Description
0x08 bCmdId 0x01 (EXCLUSIVE_ACCESS)
0x09 bCmdSize 0x01
0x0c dTransferLength 0x00000000
0x10 bExclusive NOT_EXCLUSIVE (0) No restriction on USB Mass Storage operation
EXCLUSIVE (1) Disable USB Mass Storage writes (the host should
see them as write protect failures, but in any case
any active UF2 download will be aborted)
EXCLUSIVE_AND_EJECT
(2)
Lock the USB Mass Storage Interface out by
marking the drive media as not present (ejecting the
drive)
2.7.5.4.2. REBOOT (0x02)
Reboots the RP2040 out of USB boot mode. Note that USB boot mode might be re-entered if rebooting to flash and no
valid second stage bootloader is found.
Table 170. PICOBOOT
Reboot access
command structure
Offset Name Value / Description
0x08 bCmdId 0x02 (REBOOT)
0x09 bCmdSize 0x0c
0x0c dTransferLength 0x00000000
0x10 dPC The address to start executing from. Valid values are:
0x00000000 Reboot via the standard
Flash boot mechanism
RAM address Reboot via watchdog and
start executing at the
specified address in RAM
0x14 dSP Initial stack pointer post reboot (only used if booting into
RAM)
0x18 dDelayMS Number of milliseconds to delay prior to reboot
2.7.5.4.3. FLASH_ERASE (0x03)
Erases a contiguous range of flash sectors.
Table 171. PICOBOOT
Flash erase command
structure
Offset Name Value / Description
0x08 bCmdId 0x03 (FLASH_ERASE)
0x09 bCmdSize 0x08
0x0c dTransferLength 0x00000000
0x10 dAddr The address in flash to erase, starting at this location. This must be sector (4K)
aligned
0x14 dSize The number of bytes to erase. This must an exact multiple number of sectors
(4K)
RP2040 Datasheet
2.7. Bootrom 131