Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Connect multiple ST-Link V2 programmers (Read 924 times)
Indrid kold
Junior Member
**
Offline


Posts: 18
Joined: May 15th, 2017
Connect multiple ST-Link V2 programmers
Dec 3rd, 2019 at 9:22pm
Print Post  
How can I connect multiple ST-Link V2 programmers? Each programmer/probe has a unique serial number, but I can't find a spot for it in the vMicro config. My pjt has two boards that communicate with each other and I'd like to debug both. Thanks for any info, IK
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Connect multiple ST-Link V2 programmers
Reply #1 - Dec 3rd, 2019 at 11:13pm
Print Post  
There will be a board property override but it can depend on the specific targets in use as to the specific format of this.

The below process will work for any board / configuration via the Debugger Launch JSON

Attach Debugger to STLink in your project
Copy output from Micro Build Window
Project > Add > Custom GDB Debugger 
Replace the JSON file contents with the Output from above
Select the Manual/Custom Debugger Option to use your JSON file

Then edit the "debugServerArgs" to have an additional command for your serial as below:

Snippet from "debugServerArgs" property:
Code
Select All
 ... -f fg\"  -f  -c \"init\"",

 



With added Serial definition (escaped in JSON) - [OpenOCD information]
Code
Select All
 ... -f fg\" -c \"hla_serial \"\\xaa\\xbc\\x6e\\x06\\x50\\x75\\xff\\x55\\x17\\x42\\x19\\x3f\"\" -f  -c \"init\"",
 


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint