This repository contains a bootloader for the Rusty Old Smart System
project.
To build and flash this project you will need:
rust-std
components for the thumbv7m-none-eabi
target. Run:
$ rustup target add thumbv7m-none-eabi
cargo-binutils
. Run:
$ cargo install cargo-binutils
To build this project, run:
$ cargo build --release
To flash the built bootloader, run:
$ cargo objcopy --release -- -O binary ./target/thumbv7m-none-eabi/release/ross-bootloader.bin
$ openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "init; reset halt; stm32f1x mass_erase 0; flash write_bank 0 ./target/thumbv7m-none-eabi/release/ross-bootloader.bin ; reset run; shutdown;"
This project is licensed under the MIT License - see the LICENSE.md file for details.