Merge pull request #256 from vertigo-designs/feature/cargo-embed-support

Adding support for cargo-embed
This commit is contained in:
Ryan Summers 2021-02-02 18:21:24 +01:00 committed by GitHub
commit 70f6d4e1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
/target /target
openocd.gdb

3
Embed.toml Normal file
View File

@ -0,0 +1,3 @@
[default.general]
chip = "STM32H743ZITx"
connect_under_reset = true

View File

@ -40,6 +40,11 @@ See https://github.com/sinara-hw/Stabilizer
* `cargo build --release` * `cargo build --release`
* Do not try the debug (default) mode. It is guaranteed to panic. * Do not try the debug (default) mode. It is guaranteed to panic.
### Using Cargo-embed
* Install `cargo-embed`: `cargo install cargo-embed`
* Program the device: `cargo embed --bin dual-iir --release`
### Using GDB/OpenOCD ### Using GDB/OpenOCD
* Get a recent openocd, a JTAG adapter ("st-link" or some clone) and * Get a recent openocd, a JTAG adapter ("st-link" or some clone) and