Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Nimue Guru Joined: 06/08/2020 Location: United KingdomPosts: 419
Posted: 07:54pm 16 Jun 2025
Copy link to clipboard
Print this post
Sorry all for the seemingly random questions - working on two projects at the same time that are now coming together.
Both lead to the the following question.
Say I have a functioning 'picomite project (Single BAS file, or a couple of smaller ones.).
Is there a way to save the entire 'mite state into something like a .uf2 file so that a user just needs to "flash and go"?
Trying to avoid sending the code and a user needing to upload a BAS file using TeraTerm or MMC.
This is not about copy protection - happy that they can see / edit the BAS - literally looking for a method similar to the flashing approach.
I know this is not part of MMBASIC - but buried in the PICO SDK or whatever, is it possible to take what's currently on a PICO and sort of clone it back to a UF2 -- to literally clone what's on it?
NEntropy is not what it used to be
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2505
Posted: 08:23pm 16 Jun 2025
Copy link to clipboard
Print this post
try save option list and reflash new and redo options
Amnesie Guru Joined: 30/06/2020 Location: GermanyPosts: 557
Posted: 08:37pm 16 Jun 2025
Copy link to clipboard
Print this post
Hello,
if I understand you correct, this is not a problem at all! I tried this many times. It does a 100% clone of your pico including all of the options and the program in flash. This works with the pico1 and pico2!
Just google for: "picotool-2.1.1-x64-win" there is a github with binaries, so you do not have to compile it yourself! Or use this link:
1. Plug the Pico in while holding down BOOTSEL switch 2. run a terminal window in the folder, in which picotool.exe is located and: 3. Run this command: picotool save -a filename.uf2
there you go... I really love that this is possible!
Greetings Daniel Edited 2025-06-17 06:42 by Amnesie
Nimue Guru Joined: 06/08/2020 Location: United KingdomPosts: 419
Posted: 09:44pm 16 Jun 2025
Copy link to clipboard
Print this post
Perfect - exactly what I was looking for. I'll grab those files.
Diolch
NEntropy is not what it used to be
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 1301
Posted: 08:06am 17 Jun 2025
Copy link to clipboard
Print this post
Hi Stan,
The cool thing about saving with Picotool is that the entire image is saved, including MMBasic.
If you have extended MMBasic with library routines, for example, you now have a single uf2 to program other devices with.
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2505
Posted: 09:10pm 17 Jun 2025
Copy link to clipboard
Print this post
I'll check it. thanks
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1551