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:
Yannis Damigos 2017-04-13 14:07:11 +03:00 committed by Anas Nashif
parent fe7aa3f4fa
commit 7f30487866
2 changed files with 21 additions and 0 deletions

View 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

View 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
}