source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
source [find target/stm32f4x.cfg]
$_TARGETNAME configure -rtos ChibiOS
reset_config srst_only srst_nogate

source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
source [find target/stm32f4x.cfg]
$_TARGETNAME configure -rtos ChibiOS
reset_config srst_only srst_nogate connect_assert_srst

Allow JTAG connection while in reset
Allow JTAG connection while in reset

Add OpenOCD command 'connect_assert_srst' to allow JTAG connection while
the chip is being held in reset. This allows the chip to be reprogrammed
even if the application has remapped them for other uses.

Refer to:
https://electronics.stackexchange.com/questions/61407/overwrote-stm32f4-st-link-pins
