boards/arm/olimexino_stm32: add openocd file
Add openocd.cfg to control flashing and debugging of the olimexino-stm32 board Change-Id: Ia40d964b737792864efd85076bc599b2de15ebb0 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
parent
fe7aa3f4fa
commit
7f30487866
8
boards/arm/olimexino_stm32/Makefile.board
Normal file
8
boards/arm/olimexino_stm32/Makefile.board
Normal file
|
@ -0,0 +1,8 @@
|
|||
FLASH_SCRIPT = openocd.sh
|
||||
DEBUG_SCRIPT = openocd.sh
|
||||
|
||||
FLASH_BASE_ADDRESS = 0x08000000
|
||||
OPENOCD_LOAD_CMD = "flash write_image erase ${O}/${KERNEL_BIN_NAME} ${FLASH_BASE_ADDRESS}"
|
||||
OPENOCD_VERIFY_CMD = "verify_image ${O}/${KERNEL_BIN_NAME} ${FLASH_BASE_ADDRESS}"
|
||||
|
||||
export FLASH_SCRIPT OPENOCD_LOAD_CMD OPENOCD_VERIFY_CMD
|
13
boards/arm/olimexino_stm32/support/openocd.cfg
Normal file
13
boards/arm/olimexino_stm32/support/openocd.cfg
Normal file
|
@ -0,0 +1,13 @@
|
|||
source [find interface/ftdi/jtag-lock-pick_tiny_2.cfg]
|
||||
source [find board/olimex_stm32_h103.cfg]
|
||||
|
||||
$_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…
Reference in a new issue