Skip to main content
Visitor II
June 3, 2021
Solved

Multiple STLink, one for each Project in STM32CubeIDE

  • June 3, 2021
  • 2 replies
  • 5600 views

Trying to have multiple ST-Link connected at one time.

Not working like I hoped.

Anyone got it working? (Multiple projects each with own STLink, all connected at same time)

Using STM32CubeIDE v1.6.1

---- My results ----

I try to set each project to a specific STLink Serial Number (I have 5 modules interconnected, and that list is growing), using:

  • Project > Right Click > Debug As > Debug Cofigurations... > Tab:Debugger
  • [+]ST-Link S/N > Scan > Select the correct one > Apply > Close
  • It works with one, but gets confused when I have more than one

I've written the serial number on each device by connecting one at a time and scanning for changes.

  • I've noticed that the first serial number listed seems to be incorrect, as it is often for an STLink I've disconnected. ****This may be a bug****

---- Suggestion ----

ST-Link serial numbers should be:

  • Shown on the Virtual disk that opens when you connect the USB to the STLink (maybe in Details.txt)
  • Printed on the label (STLink/V3, STLink/Mini, etc.)

Paul

    This topic has been closed for replies.
    Best answer by Paul1

    Works now, see notes in attached:

    - MultipleSTLink=SN#.docx

    I wasn't properly creating a separate Debug Configuration for each project.

    2 replies

    Paul1AuthorAnswer
    Visitor II
    June 9, 2021

    Works now, see notes in attached:

    - MultipleSTLink=SN#.docx

    I wasn't properly creating a separate Debug Configuration for each project.

    ST Employee
    June 10, 2021

    Glad to see it worked out. I'll run some tests to see if I can get the same result you mentioned with the disconnected STLink!

    Visitor II
    November 7, 2022

    You had mentioned Printed on the label (STLink/V3, STLink/Mini, etc.) in the last! Can we use a thermal Bluetooth printer to print these labels?