Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : Saving the entire pico "image" - .uf2 ??

Posted: 07:54pm
16 Jun 2025
Copy link to clipboard
Nimue
Guru


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?

N
 
Posted: 08:23pm
16 Jun 2025
Copy link to clipboard
stanleyella
Guru


try save option list and reflash new and redo options
 
Posted: 08:37pm
16 Jun 2025
Copy link to clipboard
Amnesie
Guru

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:

https://github.com/raspberrypi/pico-sdk-tools/releases

Then:

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
 
Posted: 09:44pm
16 Jun 2025
Copy link to clipboard
Nimue
Guru


  Amnesie said  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:

https://github.com/raspberrypi/pico-sdk-tools/releases

Then:

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


Perfect - exactly what I was looking for.  I'll grab those files.

Diolch

N
 
Posted: 08:06am
17 Jun 2025
Copy link to clipboard
PhenixRising
Guru

  stanleyella said  try save option list and reflash new and redo options


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.
 
Posted: 09:10pm
17 Jun 2025
Copy link to clipboard
stanleyella
Guru


  PhenixRising said  
  stanleyella said  try save option list and reflash new and redo options


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.

I'll check it. thanks
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025