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
Hot Topic (More than 8 Replies) Problem using custom hardware JLink with Arduino Giga (Read 285 times)
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Problem using custom hardware JLink with Arduino Giga
Mar 21st, 2026 at 11:04am
Print Post  
I downloaded the Trial version of Visual Micro and having problems using the Debug hardware option with a Segger J-Link. The J-Link works fine with the Arduino IDE and Visual Studio Code PlatformIO.

I tried following the web site instructions for Debugging Using Custom Hardware but can’t get it working.  I get a few errors, see attached image and compile log.

The  GIGA.Debug.debugger_launch.json file attached in my reply to this message.

Thank you in advance for any help in resolving this issue.
Sheldon
« Last Edit: Mar 21st, 2026 at 11:08am by Sheldon »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #1 - Mar 21st, 2026 at 11:07am
Print Post  
Here is the GIGA.Debug.debugger_launch.json file
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #2 - Mar 23rd, 2026 at 10:31am
Print Post  
Thanks for the report and detail.

Could you attach the output from the Arduino IDE when debugging so we can compare the setup in use.  If you have a launch.json for either Arduino IDE or PlatformIO please also send this over.

I suspect the Arduino IDE configuration is the default OpenOCD route (not using the Segger software at all), in which case selecting the vMicro > Debugger > Debug: Arduino option should use the same configuration.
« Last Edit: Mar 23rd, 2026 at 10:32am by Simon@Visual Micro »  
Back to top
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #3 - Mar 23rd, 2026 at 10:39am
Print Post  

Sorry, The Arduino uses Segger Ozone for debugging.

Attached is the platformio.ini file used.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #4 - Mar 23rd, 2026 at 10:58am
Print Post  
Thanks for the update, if you change the launch.json in Visual Micro to use the same exe and command arguments as PlatformIO does this help at all?
  
Back to top
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #5 - Mar 23rd, 2026 at 11:09am
Print Post  
I get an error message
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #6 - Mar 23rd, 2026 at 11:40am
Print Post  
Apologies, I meant just replacing the two entries in the file you had previously, like the attached.
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #7 - Mar 23rd, 2026 at 2:12pm
Print Post  
I have made some progress by making the changes, now the GDB Server says Waiting for connection and then times out.

The error is Unable to start debugging. Debug server process failed to initialize.
« Last Edit: Mar 23rd, 2026 at 2:13pm by Sheldon »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #8 - Mar 23rd, 2026 at 3:25pm
Print Post  
OK thats good progress, does adding the additional flags below to the debugServerArgs improve this further?
-endian little -noir -LocalhostOnly -nologtofile

There is more logging in Visual Studio which can be enabled to show exactly why GDB is failing, which is enabled from View > Other Windows > Command Window, and then typing "Debug.MIDebugLog /OutputWindow /On" and pressing enter.
  
Back to top
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #9 - Mar 23rd, 2026 at 3:46pm
Print Post  

The additional flags do not make any difference. 

I set the more logging, where do I view it? I don't see any additional information shown in the Output from Micro Build, Debug, etc.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #10 - Mar 23rd, 2026 at 4:39pm
Print Post  
Quote:
I set the more logging, where do I view it? I don't see any additional information shown in the Output from Micro Build, Debug, etc.

It will be visible in the Output Window > Debug, however if it fails too soon this may not appear.

The error you are seeing "Debug server process failed to initialize" means Visual Studio doesn't think the JLink software has started correctly, so it isn't then firing off GDB to connect to it.

Ill get a similar setup running here to work out what is missing and get back to you tomorrow realistically.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #11 - Mar 24th, 2026 at 11:09am
Print Post  
Ive got a setup running with the same version of JLink Software and firmware as you have here, which required moving to the JLinkGDBServerCL.exe and a few other tweaks to the JSON.

Can you try the attached file as-is and see if this helps at all?
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #12 - Mar 24th, 2026 at 1:47pm
Print Post  
I get the following error
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #13 - Mar 24th, 2026 at 2:06pm
Print Post  

I changed the device to STM32H747XI_M7 and it works.

Thank you for all your help.
Sheldon
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2883
Joined: Feb 13th, 2019
Re: Problem using custom hardware JLink with Arduino Giga
Reply #14 - Mar 24th, 2026 at 3:32pm
Print Post  
Thanks for confirming, just for the avoidance of doubt and to help anyone else trying to achieve the same task, can you attach the final launch.json that works?
  
Back to top
IP Logged
 
Sheldon
Newbies
*
Offline


Posts: 9
Joined: Mar 20th, 2026
Re: Problem using custom hardware JLink with Arduino Giga
Reply #15 - Mar 25th, 2026 at 10:13am
Print Post  
Attached is the file that works with the GIGA board.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint