This is an example project for using the
picowota
bootloader in an app.
Build it like so:
export PICO_SDK_PATH=path/to/pico-sdk
export PICOWOTA_WIFI_SSID=YourNetworkName
export PICOWOTA_WIFI_PASS=YourPassw0rd
git clone https://github.com/usedbytes/picowota_blink
cd picowota_blink
git submodule update --init picowota
mkdir build
cd build
cmake -DPICO_BOARD=pico_w ..
make
Then you can flash the resulting picowota_blink.uf2
, .elf
or .bin
file
in the "usual" way - via the Pico USB mass storage mode, picotool
or whatever.
See https://github.com/usedbytes/picowota for more information.
You can change the app code - for example try changing BLINK_SLEEP_MS
in
blink.c
, then re-run make
, and then upload the code to the Pico using
https://github.com/usedbytes/serial-flash.
Assuming your Pico's IP address is 192.168.1.123:
serial-flash tcp:192.168.1.123:4242 blink.elf
You'll need to find out the IP address by checking your router or scanning the network.