Skip to content

Commit

Permalink
feat: switch to probe-run for flashing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonapap committed May 7, 2023
1 parent 54553d8 commit 3dd6203
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-run --chip ATSAME51J20A --protocol swd"
rustflags = [
"-C", "linker=arm-none-eabi-gcc",
"-C", "link-arg=-nostartfiles",
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ jobs:
- uses: actions-rs/cargo@v1
name: "Check that tests compile"
with:
command: test -p common-arm-test --no-run
command: test
args: -p common-arm-test --no-run
9 changes: 9 additions & 0 deletions Embed.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Configuration for cargo-embed. This command can be used to flash and start a gdb-server.
[default.general]
chip = "ATSAME51J20A"

[default.probe]
protocol = "Swd"

[default.gdb]
enabled = true
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@

1. Install Rust: https://www.rust-lang.org/tools/install
2. Build: `cargo build`
3. Install probe-run: `cargo install --git https://github.com/uorocketry/probe-run`
- `probe-run` currently requires a patch to flash our chip, so please use the above version while the patch is upstreamed
4. Flash: `cargo run --bin main`
5. Run tests: `cargo test -p common-arm-test`

For instructions on flashing, debugging, and more, please see [the wiki](https://avwiki.uorocketry.ca/en/Avionics/HYDRA/Software).
For more detailed instructions on flashing, debugging, and more, please see [the wiki](https://avwiki.uorocketry.ca/en/Avionics/HYDRA/Software).

## Documentation

Expand Down

0 comments on commit 3dd6203

Please sign in to comment.