Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4919

General • Re: How to set up Geany for pico/pico_w

$
0
0
I don't use openocd or picoprobe, but I do use Linux Mint. I compile and upload from the command line. I'll share my scripts, in case someone might find them useful.

Full build (when files have been added/removed):

Code:

#!/bin/bashcd build && rm -rf * && cmake .. && make
Quick build (when only code changes were made):

Code:

#!/bin/bashcd build && make
Upload to Pico (assumes only one uf2 file exists; also assumes the udev rule in place to avoid sudo):

Code:

#!/bin/bashpicotool reboot -f -u && sleep 1find ./ -name "*.uf2" -execdir picotool load "{}" \; && sleep 1picotool reboot -f -a

Statistics: Posted by Mike**K — Fri Dec 06, 2024 2:39 pm



Viewing all articles
Browse latest Browse all 4919

Trending Articles