Wireless update of files on a Pico

I read a good while back somewhere (maybe not here) about someone who had created code, I think for an ESP32, which enabled files on the device’s flash to be updated wirelessly.

Wondering if anyone has done something similar in Python for a Pico. I suppose it could be done using a simple web browser system, but what I have in mind probably has complications… like, if I want to update main.py… I’m guessing something may break… if micropython allows you to clobber the running image at all… I wouldn;t assume that it wil… If it does, next step is to reload the new main.py.

So.. plenty of potential gotchas…

Regards,
T.

1 Like

Hi Trevor,

On mobile ATM, but have a look into WebREPL and OTA flashing, both are methods of wirelessly updating the program.

1 Like

ESP32 with Arduino or ESP-IDF has built-in OTA support. Pico with MicroPython? You have to roll your own.

2 Likes

Hi Trevor,

I have a project where there will be multiple micro’s and didn’t want my desk to be any messier…
Anyways, I’ve had great success with webrepl, this forum post was handy and worked a treat: WebREPL Set Up for Micropython - Tutorials - Arduino Forum

Using ProS3

Thanks… I have WebREPL set up and working just fine.. thanks! Only real issue I had was to tell Firefox to NOT translate the URL into https… after that it was fine.

Cheers,
T.

2 Likes

Hi @Trevor277988

Great to hear that you managed to get it working!