Skip to main content
Kasapoglu.Orkun
Senior
March 31, 2017
Solved

Two Different STLink Debugger on One PC to Debug Two Different System

  • March 31, 2017
  • 3 replies
  • 3239 views
Posted on March 31, 2017 at 15:55

Hi all.

I want to know, can I use two different SLink-v2 (SWD) debugger to debug separate STM-ARM based system? I have STLink v2 debugger and discovery boards (which can be used as a debugger). I've designed a board which has two MCU and they need to talk with together and do something after that. So I need to debug them in the same time.

    This topic has been closed for replies.
    Best answer by Max
    Posted on April 05, 2017 at 10:01

    I have tried IAR and Keil, both can discriminate between several STLink connected on the same PC by using their serial number.

    You can run 2 project debugger windows at the same time.

    BR,

    Max

    3 replies

    Tesla DeLorean
    Guru
    March 31, 2017
    Posted on March 31, 2017 at 20:14

    Consider also VirtualBox

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Kasapoglu.Orkun
    Senior
    April 3, 2017
    Posted on April 03, 2017 at 17:36

    Thanks

    Turvey.Clive.002

    Thomas Legrand
    Associate II
    April 3, 2017
    Posted on April 03, 2017 at 18:25

    Hello,

    I've never tried it but isn't JTAG supposed to be a daisy chain ? That would means you can put multiple MCUs on the same JTAG port (does the ST-Link support it ?).

    I guess your debugging software would need to support it too (I'm using SEGGER probes and Atollic Pro, I'm pretty confident they both support it).

    Thomas.

    AvaTar
    Senior III
    April 4, 2017
    Posted on April 04, 2017 at 08:46

    I've never tried it but isn't JTAG supposed to be a daisy chain ? That would means you can put multiple MCUs on the same JTAG port (does the ST-Link support it ?).

    The ST-Link on Nucleo/Discovery board support only SWD, not JTAG.

    Tesla DeLorean
    Guru
    April 4, 2017
    Posted on April 04, 2017 at 17:15

    >>

    The ST-Link on Nucleo/Discovery board support only SWD, not JTAG

    Correct

    They should however have different serial numbers permitting a solution with appropriate drivers and DLLs to support multiple ST-LINK attached to *different* SWD ports.

    We use full JTAG, not least because it permits boundary scan and daisy-chaining of all devices on the boards.

    The multi-chip situation is not a battle I've fought at this level. Better to understand what your code is doing than rely on single-stepping it to find out. Better to instrument systems so interaction can be determined in real time, many situations where stopping one/both chips can have catastrophic effects.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Max
    MaxBest answer
    ST Employee
    April 5, 2017
    Posted on April 05, 2017 at 10:01

    I have tried IAR and Keil, both can discriminate between several STLink connected on the same PC by using their serial number.

    You can run 2 project debugger windows at the same time.

    BR,

    Max

    Kasapoglu.Orkun
    Senior
    April 5, 2017
    Posted on April 05, 2017 at 13:44

    My new STM32F4-Discovery kit has arrived and I tried it too with Keil and it is possible with selecting the ST-Link/V2-1 (not the in-use one) from the Flash/Configure Flash Tools/Debug/Settings and again under the Debug/Debug Adapter's Unit section. Thanks for your kind helps.