I’m trying to setup over the air(OTA) updates for a Raspberry pi pico + notecard running circuit python. The code.py fie I would like to update is ~16Kb so I am attempting to do this via the large file upload procedure.
I’m unsure of next steps with Circuit Python when it’s time to read the binary data as issuing a “req”: “card.binary.get” doesn’t seem to output anything. I was hoping I could load this binary into a variable and just save the variable to a file then restart the device. Any examples of OTA updates for Raspberry pi on circuit python would be great! Also the DFU documentation doesn’t include raspberry pi’s.
Make sure your Notecard firmware is on at least v5.3.1 (I assume it is, but I just want to make sure!) and you’re following these instructions to use the card.binary APIs.
Normally I would suggest using Outboard Firmware Update, but there are limitations on the Pico itself that prevent it from being supported.
Thank you for the quick response. I am using v5.3.1. I’ve spent too many hours trying to troubleshoot and I cannot seem to get access to the downloaded data in the binary buffer of the nodecard.
The following code shows that the data has been loaded into the binary buffer but I cannot seem to access it. Any suggestions would be greatly appreciated.
Quick update - I was able to break my payload file into multiple pieces and grab them with the web.get route manually not using the binary option. This seems to solve the use case I had.