Skip to content

Commit 10e3e20

Browse files
hannobraunmvertescher
authored andcommitted
Add GDB/OpenOCD configuration
With this configuration, an example can be run on a Nucleo board simply like this: `cargo run --example=blinky --features=rt,stm32f746`
1 parent 4b7bad0 commit 10e3e20

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
**/*.orig
33
**/*.rs.bk
44
Cargo.lock
5-
6-
openocd.cfg
7-
openocd.gdb

openocd.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source [find interface/stlink-v2-1.cfg]
2+
transport select hla_swd
3+
source [find target/stm32f7x.cfg]
4+
5+
init
6+
arm semihosting enable
7+
reset

openocd.gdb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target remote :3333
2+
load
3+
continue

0 commit comments

Comments
 (0)