Cross-platform compatible firmware download tool for use with the NEORV32 bootloader.
- Python 3.8 or newer
pip
utilityvenv
module
A quick walkthrough for setting up this tool using a Python Virtual Environment, to prevent polluting your Python installation. Example command line inputs shown for a Windows Powershell session.
-
Download or clone this repo.
-
Create a new virtual environment in
.venv
.python -m venv .venv
-
Activate the virtual environment (if not done automatically).
.\.venv\Scripts\activate
-
Install modules from the
requirements.txt
file usingpip
.pip install -r requirements.txt
-
Done. Remember to activate the
.venv
when running the tool in a new shell session.
-
Compile the NEORV32 binary and generate a bootloader image file (example sw use "
make exe
"). -
Prepare the command line to launch this tool (bootloader timeout may be too short to enter it later)
.\neorv32load.py <serial_port> <path_to_.bin_file>
-
Reset the Target to enter the bootloader.
-
Execute the prepared command line inputs.
Other options are listed in the included help output. Use the following command to access it:
.\neorv32load.py --help