eamars / OpenTrickler-RP2040-Controller

OpenTrickler controller application on RP2040 platform
https://discord.gg/ZhdThA2vrW
GNU General Public License v3.0
13 stars 8 forks source link

OTA update capability #27

Closed dirtbit closed 1 year ago

dirtbit commented 1 year ago

Dear eamars - first of all: Many thanks for your engagement on this project and also sharing this with the community. This is very much appreciated!

This patch provides an OTA feature by implementing @usedbytes picowota bootloader. The bootloader creates an AP, over which by using @usedbytes serial-flash, the app can be updated OTA.

There's one downside: Because there's no solution known yet for creating a blob for cyw43 (firmware for the wifi chip on PICO), the bootloader is about 400 kB in size. As we have, after implementing this bootloader, still >50% of free flash, I consider this as a "future problem".

Please excuse this contribution is focusing on Windows users. I'll create/test/add the shell script for downloading app.elf if you consider add this to your baseline.