Skip to content

Commit

Permalink
Add GDB/OpenOCD configuration
Browse files Browse the repository at this point in the history
With this configuration, an example can be run on a Nucleo board simply
like this:
`cargo run --example=blinky --features=rt,stm32f746`
  • Loading branch information
hannobraun authored and mvertescher committed Jun 3, 2019
1 parent 4b7bad0 commit 10e3e20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@
**/*.orig
**/*.rs.bk
Cargo.lock

openocd.cfg
openocd.gdb
7 changes: 7 additions & 0 deletions openocd.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f7x.cfg]

init
arm semihosting enable
reset
3 changes: 3 additions & 0 deletions openocd.gdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target remote :3333
load
continue

0 comments on commit 10e3e20

Please sign in to comment.