This tool generates the Boot2 stage for all flash chips known in a database for a Pico.
These files can e.g. be used to support new combination of a Pico with a new flash chip.
Refer https://github.com/earlephilhower/arduino-pico/tree/master/boot2.
Prerequisites: Python 3 and arm-none-eabi-gcc
toolchain in the path.
git clone https://github.com/maxgerhardt/pico-boot2-generator
cd pico-boot2-generator
git submodule update --init
pip3 install -r requirements.txt
python3 build.py
You can also use the already pregenerated files in generates/
.
These were generated using arm-none-eabi-gcc 10.2.1 (Q4 Major).
The tool is compatible with both Unix and Windows.
- @tannewt for
gen_stage2.py
in https://github.com/adafruit/circuitpython - Adafruit for https://github.com/adafruit/nvm.toml/
- Raspbery Pi Foundation for https://github.com/raspberrypi/pico-sdk