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 <richard.osterloh@gmail.com>
This commit is contained in:
parent
4cd0199406
commit
f9a0e20432
2 changed files with 19 additions and 0 deletions
|
@ -5,3 +5,4 @@ board_runner_args(jlink "--device=STM32F405RG" "--speed=4000")
|
|||
|
||||
include(${ZEPHYR_BASE}/boards/common/dfu-util.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
|
|
18
boards/arm/adafruit_feather_stm32f405/support/openocd.cfg
Normal file
18
boards/arm/adafruit_feather_stm32f405/support/openocd.cfg
Normal file
|
@ -0,0 +1,18 @@
|
|||
source [find interface/stlink.cfg]
|
||||
|
||||
transport select hla_swd
|
||||
|
||||
source [find target/stm32f4x.cfg]
|
||||
|
||||
reset_config srst_only
|
||||
|
||||
$_TARGETNAME configure -event gdb-attach {
|
||||
echo "Debugger attaching: halting execution"
|
||||
reset halt
|
||||
gdb_breakpoint_override hard
|
||||
}
|
||||
|
||||
$_TARGETNAME configure -event gdb-detach {
|
||||
echo "Debugger detaching: resuming execution"
|
||||
resume
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue