Skip to content

Commit f9a0e20

Browse files
rosterlohcarlescufi
authored andcommitted
boards: adafruit_feather_stm32f405: OpenOCD support
This board has pads for and SWD header as per https://learn.adafruit.com/adafruit-stm32f405-feather-express/pinouts#swd-port-3050618-16 This commit addes OpenOCD support to the board Signed-off-by: Richard Osterloh <[email protected]>
1 parent 4cd0199 commit f9a0e20

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

boards/arm/adafruit_feather_stm32f405/board.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ board_runner_args(jlink "--device=STM32F405RG" "--speed=4000")
55

66
include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)
77
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
8+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
source [find interface/stlink.cfg]
2+
3+
transport select hla_swd
4+
5+
source [find target/stm32f4x.cfg]
6+
7+
reset_config srst_only
8+
9+
$_TARGETNAME configure -event gdb-attach {
10+
echo "Debugger attaching: halting execution"
11+
reset halt
12+
gdb_breakpoint_override hard
13+
}
14+
15+
$_TARGETNAME configure -event gdb-detach {
16+
echo "Debugger detaching: resuming execution"
17+
resume
18+
}

0 commit comments

Comments
 (0)