Cornell University ECE4760
Double-click program button

Pi Pico RP2040

Cycling the power to program and reset the system gets tedious and is hard on connectors.
There is an easy fix for this which requires minimal software and hardware additions.
See also the Runtime Infrastructure section of the SDK docs.

Software:
Add the line:
pico_bootsel_via_double_reset
to the target_link_libraries list.
That's all!

Hardware:
Refer to the Pi Pico pinout diagram and identify pin 30, the RUN signal. Note that pin 28 is ground.
The button you will add shorts the RUN pin to ground when you push it. The official Pi page uses more
wires and a bigger button.
-- Straighten the leads on the switch using small pliers so that they make better contact
in the solderless board and to make the lead spacing closer to 0.2 inch (2 rows apart on board).

-- Connect button leads to pins 28 and 30. (click image to expand).
I find it easier to hold the button with pliers when pushing it into the solderless board.

Use:
--Push the button once to reset the program to re-start.
--Push the button twice, quickly (within 0.5 second), to enter program mode.
No more power cycling or unplugging!


Copyright Cornell University September 30, 2023