Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:47 18 Jun 2025 Privacy Policy
Jump to

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.

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

Author Message
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 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?

N
Entropy is not what it used to be
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 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: Germany
Posts: 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:

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
 
Nimue

Guru

Joined: 06/08/2020
Location: United Kingdom
Posts: 419
Posted: 09:44pm 16 Jun 2025
Copy link to clipboard 
Print this post

  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
Entropy is not what it used to be
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1301
Posted: 08:06am 17 Jun 2025
Copy link to clipboard 
Print this post

  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.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2505
Posted: 09:10pm 17 Jun 2025
Copy link to clipboard 
Print this post

  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
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1551
Posted: 09:50pm 17 Jun 2025
Copy link to clipboard 
Print this post

deleted, wrong thread.
Edited 2025-06-18 07:51 by twofingers
causality ≠ correlation ≠ coincidence
 
Print this page


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