cancel
Showing results for 
Search instead for 
Did you mean: 

Multi ST-Link on one device

LAKSHYA
Visitor

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 timethis 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

5 REPLIES 5
KnarfB
Super User

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

 

LAKSHYA
Visitor

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?

Andrew Neil
Super User

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

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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.

TDK_0-1753707685089.png

Why do you think it's a DLL problem?

If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Super User

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.