Command-line tool to interface with the Pico SST39SF0x0 Programmer.
Note
Although the tool is designed for Linux machines in general, testing of the tool is primarily done on the Raspberry Pi.
Ensure you have the required dependencies on your system
sudo apt update && \
sudo apt install -y build-essential cmake libcurl4-openssl-dev \
libopenssl-dev libtclap-dev pkg-config libudev-dev
mkdir build
cd build
cmake ../src
make -j
To install picoflash systemwide, run
sudo make install
Pico Flasher has 4 operational modes:
- Read: Read data from chip and write to binary file
- Write: Write data to chip from binary file
- Verify: Verify data on chip using binary file
- Erase: Erase all data on chip (set everything to
0xFF
)
Without any further parameters, these modes operate on the whole chip. For the write and verify operations, it is also possible to execute these for a single 16 KiB bank.
Read
picoflash -o <BINFILE> -r
-o
: Output files-r
: Read mode
Write
picoflash -i <BINFILE> -w [-b <bank>]
-i
: Input file: Can be either local file or URL. If a URL is supplied, the data is automatically grabbed from the internet via an internal CURL routine.-w
: Write mode- *(optional)
-b
: Bank to write to. Input file has to be strictly 16 KiB for this mode.
Verify
picoflash -i <BINFILE> -v
-i
: Input file: Can be either local file or URL. If a URL is supplied, the data is automatically grabbed from the internet via an internal CURL routine.-v
: Verify mode- *(optional)
-b
: Bank to write to. Input file has to be strictly 16 KiB for this mode.
Erase
picoflash -e
-e
: Erase mode
There is also a test mode which will perform a number of operations on the chip, basically checking both the working of the Pico Flasher as well as of the SST39SF0x0 chip. To use this mode, simply run
picoflash -t
Important
This will irrevocably remove all data on the chip. If this is not your intention, make sure you make a copy of the chip's contents first using the read operation.