Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 740 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 740 Bytes

flasher

JLinkExe wrapper for embedded projects in Rust

Converts elf to binary, calls JLinkExe and flashes MCU in an instant. Works with cargo run and cargo run --example.

Installation

  • Build and install to ~/.cargo/bin:

cargo install --git https://github.com/romixlab/flasher

Make sure that arm-none-eabi-objcopy and JLinkExe is in your $PATH.

  • Modify .cargo/config file:
[target.thumbv6m-none-eabi]
runner = "jlink-flasher"
  • Create flasher.conf file in the root of your project, each line will be passed to JLinkExe, {bin_path} will be replaced with an actual path. See provided file for reference.

  • Run cargo run or cargo run --example <example_name>, --release flag also works.