Skip to main content
Explorer
September 21, 2022
Solved

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

  • September 21, 2022
  • 2 replies
  • 1547 views

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?

    This topic has been closed for replies.
    Best answer by JCuna.1

    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.

    2 replies

    JCuna.1Author
    Explorer
    September 22, 2022

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

    0693W00000Svwh9QAB.png

    JCuna.1AuthorAnswer
    Explorer
    September 22, 2022

    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.