Does Debugging a CubeMX Project work out of the box?
Default openocd scripts for ST boards, uses ST-Link as debug probe. So you need to customize your openocd script :
example (to be used as local script)
# This is an STM32F4 discovery board with a single STM32F407VGT6 chip. # http://www.st.com/internet/evalboard/product/252419.jsp source [find interface/jlink.cfg] transport select jtag source [find target/stm32f4x.cfg] # use hardware reset, connect under reset reset_config srst_only srst_nogate
EDIT : for further information @see this topic
Regards,
Tarek