Loading...
 
Skip to main content

System Workbench for STM32


Openocd config options

In the past I've used an external (gnuarmeclipse version of) openocd (quick start 3 years ago!!) but now wish to use an stm32f769 MCU which means using the AC6 version of openocd.

I've found the binary at ${openstm32_openocd_path}/openocd but I can't puzzle out the command line that goes in 'Config options:' section as the previous "-f board/stmxxxx " I used appears to use a path relative to the binary but the AC6 distro splits the scripts from the binary.

Is there a specific default variable I should use and what command line switch do I use?

I have it working with
-s ${openstm32_openocd_script_path}/../ -f ${openstm32_openocd_script_path}/stm32f769i_eval.cfg
but the '/../' is rather clunky and I'm sure there is a better way - maybe if I could find out what the variables are set to?