Skip to content

romixlab/flasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

JLinkExe wrapper for embedded projects in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages