2025-07-27 11:36 PM
Hey all,
I wanted to check if there’s a way to program multiple PCBAs in parallel using multiple ST-Links. I have 6 PCBAs and 6 ST-Links, but since we currently have only one DLL, we can target only one ST-Link at a time, this makes the overall programming process quite time-consuming.
If anyone has a solution or any suggestions, please let me know. Your help would be greatly appreciated.
Thanks and regards,
Lakshya
2025-07-28 1:42 AM
The STM32CubeProgrammer command line interface should be able to do that, see user manual UM2237: "For the parallel programming of more than one STM32 device using multiple instances of
STM32CubeProgrammer, it is mandatory to add the serial number of each device in the
suitable instance..."
hth
KnarfB
2025-07-28 1:49 AM
Hey KnarfB,
I’ve already tried that. See, whenever I connect one ST-Link in STM32CubeProgrammer, it connects successfully. But when I open another instance of STM32CubeProgrammer, it’s unable to connect to the second ST-Link.
I suspect this is because all instances are targeting the same DLL. What do you think?
2025-07-28 1:55 AM
On the Software development tools from partners - Products page, select 'Programming Tool' under 'Tool Type'
See also: Looking for a programming tool to flash up to 10 MCU STM32 simultaneously.
Try putting "SWD Gang programmer" or "STM32 Gang programmer" into your favourite internet search engine...
#GangProgrammer #GangProgramming
2025-07-28 6:01 AM
You can open multiple STM32CubeProgrammer instances and connect to different ST-Links. If it's not working, the problem is somewhere other than the software.
Why do you think it's a DLL problem?
2025-07-28 9:31 AM
Segger J-Link/J-Flash documentation mentioned something called multi-drop or multi-port SWD.
ST-LInks do not support this but you can try Segger, they make production programmers.