Skip to content

boot stage2: double reset to uf2 #87

Closed
@hathach

Description

@hathach

Hi hi, thank you for the pico.

It is great to have uf2 built into the bootrom, as maintainer of similar tinyuf2 (cross-platform uf2 bootloader), I kind of miss the double tap on reset button to enter uf2 feature. Which set a sram location to a magic number and wait for 0.5 second. If another reset occurs (double reset) during wait time then mcu will enter uf2 mode as following code does:

https://github.com/adafruit/tinyuf2/blob/master/src/main.c#L84

  • pros: it requires only 1 button (RST) for small form factor PCB and in general easier to operate than press reset and hold BOOTSEL.
  • cons: it does introduce additional 0.5s to boot process.

I wonder if RPI would be interested in adding this feature, my approach would be modify boot stage2 for double reset detection then use watchdog reset to jump to UF2. https://github.com/raspberrypi/pico-sdk/tree/master/src/rp2_common/boot_stage2

Thanks

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions