Posts: 3
Threads: 1
Joined: Sep 2020
Reputation:
0
Is it possible to choose the active debug probe which EBlink uses by serial number on the command line?
I usually have 3+ st-links connected at the same time since I work with hardware which has 3 separate stm32s which communicate with each other via uart.
Matthew.
Posts: 246
Threads: 14
Joined: Apr 2020
Reputation:
16
That is a coincidence, I just needed that option my self.
I wasn't here, on the forum, for a while and see right now the request.
Posts: 28
Threads: 9
Joined: May 2020
Reputation:
0
"Added: Interface selection based on serial". How is it possible to use this feature?
vdaniel
Posts: 246
Threads: 14
Joined: Apr 2020
Reputation:
16
Add the option to the interface switch
-I stlink,serial=xxxxxxxxxxxx
or
-I stlink,speed=1000,dr,serial=xxxxxxxxxxxx
etc
Add options just with a comma seperator
BTW eblink -h gives a help page
Posts: 246
Threads: 14
Joined: Apr 2020
Reputation:
16
08-10-2020, 09:02 AM
(This post was last modified: 08-10-2020, 09:04 AM by embitz.)
Let me explain this a bit further. Assume you have two boards that must communicate with each other and you want them to debug simultaneously. You could create two shell (batch) files ( Windows and Linux the same approach) which will launch a GDB server on a dedicated tcp port for a dedicated USB interface with that serial.
Target 1 shell file: eblink -I stlink,serial=0671FF353567A2425E231318 -G port=1001
Target 2 shell file: eblink -I stlink,serial=024238672632A2425E231318 -G port=1002
Now you can open 2 IDE projects and hook every project on his own TCP port to debug.
This is not only for debugging but also for flashing or automated testing. E.g. if you are in a production environment and you want to flash products on multiple devices simultaneously from the same machine, just start the particular flash location by it's USB serial number.
The sky is the limit.