2017-03-31 06:55 AM
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.
Solved! Go to Solution.
2017-04-05 01:01 AM
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
2017-03-31 11:14 AM
Consider also VirtualBox
2017-04-03 09:25 AM
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.
2017-04-03 10:36 AM
Thanks
Turvey.Clive.002
2017-04-04 01:46 AM
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.
2017-04-04 10:15 AM
>>
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.
2017-04-04 12:49 PM
Thanks for all of you. I didn't draw the pcb forJTAG just SWD for both MCUs. I've got an STLink debugger v2which has JTAG interface. @Thomas Legrand maybe next revision I can do it with JTAG thanks anyway. I'm not thinking to develop the programs in the same time while debugging but sometimes I'll need I think so I want to learn if I can or not with SWD interface but not on the discovery kits/nucleo boards but I think they are similar (or maybesame). Sorry for my ignorance, what do you mean exactly with '... with appropriate drivers and DLLs to support multiple ST-LINK ...'
Turvey.Clive.002
. Drivers and DLLs of STLink or Drivers and DLLsof USB and can you detail it?Again thanks for all.
2017-04-05 01:01 AM
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
2017-04-05 01:34 AM
There is a stand-alone version of the ST-Link, wich does support JTAG.
Not sure if it has any advantages, compared to a JLink.
Sorry for my ignorance, what do you mean exactly with '... with appropriate drivers and DLLs to support multiple ST-LINK ...'
Turvey.Clive.002
. Drivers and DLLs of STLink or Drivers and DLLsof USB and can you detail it?I think you can test that easily.
Start two instances of your toolchain (possibly with different projects), attach both Nucleo boards, and see if you can run and debug both. This requires the USB driver (supplied by ST) to be able to handle multiple instances of the same device.
I never tried that.
2017-04-05 06:44 AM
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.