cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32_programmer_cli flashing with 5 stlink at the same time and not sequentially

JCuna.1
Senior

I have a python script in order to flash many stm32 chips each one connected with a stlink. 5 devices. My python script is designed to create threads by using threading package, and the idea is flash all the devices at the same time. But this is not happening in this way, and each device is flashed sequentially. So my question is, cli support many instances to flash many devices with many stlinks concurrently?

1 ACCEPTED SOLUTION

Accepted Solutions
JCuna.1
Senior

Issue solved.

I use multiprocessing package instead of threading package. Also, I use manager to create a list in order to receive the return values of my multiprocessing methods.

View solution in original post

2 REPLIES 2
JCuna.1
Senior

I am running each thread with each sn corresponding to each stlink as um2237 indicate in page 93.

0693W00000Svwh9QAB.png

JCuna.1
Senior

Issue solved.

I use multiprocessing package instead of threading package. Also, I use manager to create a list in order to receive the return values of my multiprocessing methods.