Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Commit

Permalink
Add a flash.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Mar 20, 2017
1 parent 4a2d47c commit b5b955e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Expand Up @@ -9,13 +9,10 @@ A bare metal example of blink written in rust for the teensy 3.1
* arm-none-eabi-gcc
* arm-none-eabi-ar
* arm-none-eabi-objcopy
* teensy-loader-cli

## Compile and upload

```bash
cargo build --target thumbv7em-none-eabi
arm-none-eabi-objcopy -O ihex -R .eeprom target/thumbv7em-none-eabi/debug/blink blink.hex

echo "Reset teensy now"
teensy-loader-cli -w --mcu=mk20dx256 blink.hex
./flash.sh
```
5 changes: 5 additions & 0 deletions flash.sh
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
cargo build --target thumbv7em-none-eabi --release
arm-none-eabi-objcopy -O ihex -R .eeprom target/thumbv7em-none-eabi/release/blink target/blink.hex
teensy-loader-cli -v -w --mcu=mk20dx256 target/blink.hex

0 comments on commit b5b955e

Please sign in to comment.