Hi, I just want to share a solution to a possible problem. I created a custom board based on STM32F407 MCU. When trying to upload firmware or debug there was OpenOCD error. I solved it by changing this configuration file include in the ProjectName.cfg file:
because my ST-Link device on STM32F4-Discovery is v2. Newer Nucleo boards have ST-Link v2.1 in which case no correction is needed.
I would suggest OpenSTM32 developers to have a setting in the GUI to select the ST-Link version.