Save The Program; Binary Information - Raspberry Pi RP2040 Getting Started

Table of Contents

Advertisement

Getting started with Raspberry Pi Pico

Save the program

Save allows you to save a range of memory or a program or the whole of flash from the device to a BIN file or a UF2 file.
$ picotool help save
SAVE:
 
Save the program / memory stored in flash on the device to a file.
SYNOPSYS:
 
picotool save [-p] [--bus <bus>] [--address <addr>] <filename> [-t <type>]
 
picotool save -a [--bus <bus>] [--address <addr>] <filename> [-t <type>]
 
picotool save -r <from> <to> [--bus <bus>] [--address <addr>] <filename> [-t <type>]
OPTIONS:
 
Selection of data to save
 
 
 
 
 
 
 
 
 
 
 
Source device selection
 
 
 
 
 
File to save to
 
 
 
 
For example,
$ sudo picotool info
Program Information
name:
web site:
$ picotool save spoon.uf2
Saving file: [==============================]
Wrote 51200 bytes to spoon.uf2
$ picotool info spoon.uf2
File spoon.uf2:
Program Information
name:
web site:

Binary Information

Binary information is machine-locatable and generally machine-consumable. I say generally because anyone can
include any information, and we can tell it from ours, but it is up to them whether they make their data self-describing.
Binary Information
-p, --program
Save the installed program only. This is the default
-a, --all
Save all of flash memory
-r, --range
Save a range of memory; note that the range is expanded to 256 byte boundaries
<from>
The lower address bound in hex
<to>
The upper address bound in hex
--bus <bus>
Filter devices by USB bus number
--address <addr>
Filter devices by USB device address
<filename>
The file name
-t <type>
Specify file type (uf2 | elf | bin) explicitly, ignoring file extension
lcd_1602_i2c
https://github.com/raspberrypi/pico-examples/tree/HEAD/i2c/lcd_1602_i2c
lcd_1602_i2c
https://github.com/raspberrypi/pico-examples/tree/HEAD/i2c/lcd_1602_i2c
100%
69

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RP2040 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Pico

Table of Contents

Save PDF