|
Forum Index : Microcontroller and PC projects : Is it possible to ‘backup’ everything in a PicoMite into a single file
| Author | Message | ||||
| WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2966 |
Probably a question for Peter, but will ask here hoping someone else may have some experience. I have an almost finished product that is based around a PicoMite (standard RP2350 firmware). Throughout development, I updated the firmware (typically to test Peter’s latest set of ‘goodies’), and OPTIONs were tweaked as I adjusted things. I also have a data file stored in the built-in flash drive that is used by my code. If I were to build another unit, then I would manually do the following: 1. Nuke Pico 2. Load standard RP2350 firmware (.uf2) 3. Configure OPTIONs manually (TeraTerm into Pico) 4. Load data-file into Pico (TeraTerm) 5. Save data file to drive A: 6. Load program code into Pico (TeraTerm) 7. RUN program….. Doing this as a one-off is fine, but the question is to ask if there is any way to take a ‘snapshot’ of everything in a configured Pico, generate a single file (.uf2?), and then simply load that into a ‘blank’ Pico so that everything is ‘pre-configured’. Hope this makes sense; and appreciate any help pointing me towards a solution…… |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 322 |
Hi WhiteWizzard Some time ago, I wrote a Python tool („picom“) to backup and restore a picomite installation. It saves everything in a folder on the connected PC (not a single file, though). I use it for my projects, maybe you want to have a look. https://github.com/teuler/picom Best Thomas |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11232 |
I haven't done it but Geoff certainly has and it is definitely doable to create a uf2 ready to go. |
||||
| WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2966 |
Thanks Peter. I think I may have read something in his original Pico game console about this so will have a look when back home. Maybe Geoff can steer me on this if he sees this thread. |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1083 |
We used to have a program here that allowed you to read out an RP2040 and use it to generate a uf2 file. I'm not sure if that works with a RP2350, though... Frank |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 606 |
I got no errors in any of the install steps. Even though I did the pip install pyserial and even tried pip install serial, I get ModuleNotFoundError: No module named 'serial' I use Win 11. Footnote added 2026-04-25 05:27 by toml_12953 Ignore the above. I got out of PowerShell and back in then all the modules loaded properly. The list of serial ports only lists 5 although it finds 14. No big deal since the PicoCalc is always on COM5. I kept editing picom.py and not getting anything to work. Finally I saw that I have to change picom.toml to actually change the parameters. Everything works, now. picom.toml is an easy name for me to remember. Tom Lake |
||||
| ebbandflow Regular Member Joined: 31/08/2023 Location: United StatesPosts: 43 |
I have not tried this (yet) but I read about picotool here: https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=18048 |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 606 |
I'm getting close but now I get this (I'm showing just the first part): PicoM v0.1.9 (beta) Save options to "202604241532.opt" file ... Save library, if exists, to `202604241532.lib` ... Retrieving file tree from `B:` : Parsing `B:/` ... Warning: Entry #0 (`B:/`) not recognized. Warning: Entry #1 (`ine.mp3`) not recognized. Warning: Entry #4 (`s`) not recognized. Warning: Entry #6 (`bas`) not recognized. Warning: Entry #8 (`e_johnybot.nes`) not recognized. Warning: Entry #11 (`as`) not recognized. Warning: Entry #13 (`as`) not recognized. Warning: Entry #14 (`11:47 22-04-2026 383 Going Up.b`) not recognized. Warning: Entry #15 (`as`) not recognized. Warning: Entry #19 (`s`) not recognized. Warning: Entry #21 (`as`) not recognized. Warning: Entry #23 (`txt`) not recognized. 13:59 27-11-2023 2408 Lemmings.t`) not recognized. Warning: Entry #25 (`xt`) not recognized. Warning: Entry #29 (`Test.bas`) not recognized. Warning: Entry #35 (`s`) not recognized. Warning: Entry #39 (`mp`) not recognized. Warning: Entry #41 (`as`) not recognized. 23:22 10-06-2025 135 savage.bas`) not recognized. Warning: Entry #51 (`.bas`) not recognized. Warning: Entry #53 (`02R.bas`) not recognized. Warning: Entry #55 (`.bas`) not recognized. Warning: Entry #57 (`bas`) not recognized. Warning: Entry #60 (`s.txt`) not recognized. |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3359 |
This describes how I do it: Instructions.pdf Geoff Graham - http://geoffg.net |
||||
| WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2966 |
Many-Thanks for all the replies. Geoff - I will try following your clear instructions to generate an .uf2 file over the weekend; hopefully it will work for me here and generate what is needed. Thanks again. |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3163 |
Geoff's "clear instructions" are exactly that. Worked first try. Worth including in the "Extra Documentation" folder. Edited 2026-04-25 16:30 by phil99 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |