Multiple targets flashing with openocd
Hello,
And why not using STLink utility CLI (on windows) or the new Cube Programmer (all Oses).
You could call the CLI exe from your tool software.
But it is the same approach using the STLINK S/N to select the ID.
Not using S/N, you could use the STVP_CMdLine.exe for windows only.
ST Visual Programmer can program STM32 and with the CLI, you can use an option “NbTools” to loop on all STLink connected.
It will program your appli on all targets automatically.
ST toolset Install available here :
http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stvp-stm32.html
Rgds,
Laurent