-
Notifications
You must be signed in to change notification settings - Fork 0
Setup and Flashing
setup.ps1 is the release entrypoint. It calls couchlink.exe setup, which detects which Pico you have in BOOTSEL and flashes the matching firmware. The user does not have to know whether they have a Pico 2 W (RP2350) or a Pico W / Pico WH (RP2040).
- Checks that the release folder has
couchlink.exeand at least one firmware file (couchlink-pico2w.uf2orcouchlink-picow.uf2). - Tells the user what hardware is needed.
- Starts the bridge setup wizard.
- Detects the Pico in BOOTSEL mode and copies the matching UF2 onto it.
- Sends Wi-Fi credentials over USB setup mode.
- Waits for the Pico on the LAN.
- Runs a simple XInput smoke test.
- Offers to create a Windows Startup shortcut.
The Wi-Fi password is held only long enough to send it to the Pico. It is not written to disk on the PC.
Either of these works -- the wizard auto-picks the right firmware:
| Board | Chip | BOOTSEL volume label | UF2 file |
|---|---|---|---|
| Pico 2 W | RP2350 + Wi-Fi | RP2350 |
couchlink-pico2w.uf2 |
| Pico W / Pico WH | RP2040 + Wi-Fi | RPI-RP2 |
couchlink-picow.uf2 |
Wi-Fi is 2.4 GHz only on both -- the underlying CYW43439 radio doesn't do 5 GHz.
Use this when setup asks for the Pico in BOOTSEL mode:
- Unplug the Pico.
- Hold the BOOTSEL button.
- Plug the Pico into the PC while holding BOOTSEL.
- Release BOOTSEL after Windows shows the removable drive (
RPI-RP2orRP2350).
The bridge looks for either drive label, picks the matching UF2 from the release folder, and copies it. The Pico usually reboots as soon as the copy completes.
After flashing, the Pico should reboot as a USB serial setup device. The setup wizard sends:
- Wi-Fi SSID.
- Wi-Fi password.
- Reboot-to-run command.
Then the Pico joins Wi-Fi and starts listening for the bridge on UDP port 4242.
If the Pico has bad Wi-Fi credentials:
- Unplug the Pico.
- Hold BOOTSEL.
- Plug it back in.
- Keep holding BOOTSEL for at least 3 seconds after power-on.
The firmware clears saved Wi-Fi and reboots into setup mode. Then run:
.\couchlink.exe configure-wifiIf the Pico appears as a removable drive instead, it is in the hardware bootloader rather than firmware setup mode. Re-run setup (which will re-flash) and then retry the recovery steps.
Manual flash is still available. With no --uf2, the bridge picks the matching file from next to couchlink.exe:
.\couchlink.exe flashTo force a specific file:
.\couchlink.exe flash --uf2 .\couchlink-pico2w.uf2
.\couchlink.exe flash --uf2 .\couchlink-picow.uf2You can also drag the appropriate UF2 onto the RPI-RP2 or RP2350 drive in Explorer. Make sure you use couchlink-picow.uf2 for the RPI-RP2 drive and couchlink-pico2w.uf2 for the RP2350 drive -- the chip families aren't cross-compatible and the bootloader rejects the wrong one.