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 Arduino Due + Segger JLink not available (Read 2057 times)
Steve Scholl
Junior Member
**
Offline


Posts: 16
Joined: Jan 29th, 2020
Arduino Due + Segger JLink not available
Jan 29th, 2020 at 2:45am
Print Post  
Hi,

I'm just beginning my foray into gdb debugging with visual micro. I've connected the jlink to the due but I don't see an option to select the jlink in the list of hardware debuggers. There is Manual, Atmel Ice, and Black Magic. I'm using Visual Micro version 1912.28.2 in Visual Studio 2017. Uploading and executing with the due works fine with Debug : Off. Looking for suggestions on how I can proceed.

thanks,
steve
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Arduino Due + Segger JLink not available
Reply #1 - Jan 29th, 2020 at 10:17am
Print Post  
Not all debuggers are available pre-configured by default, and we will add this configuration in an upcoming release.

To make this work immediately:
Add a Board.txt to the Project (Right Click project > Add > Add Local board.txt)
Add the below line to the new board.txt file created
Code
Select All
tools.openocd.debug.args={debug.verbose} -s "{path}/share/openocd/scripts/" -f "interface/jlink.cfg" -c "interface cmsis-dap" -c "set CHIPNAME at91sam3X8E" -c "source [find {openocdscript}]" -c "init; reset halt" 



If you select the "Atmel ICE" option now, and attach the debugger it should work as expected for debugging (the above config will override the elements we need).

NOTE - You will need to install the Additional WinUSB Driver using Zadig for the JLink to connect, and the orientation of the ribbon cable is also important (as shown on the SAM Debugging Page)
« Last Edit: Jan 29th, 2020 at 10:25am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Steve Scholl
Junior Member
**
Offline


Posts: 16
Joined: Jan 29th, 2020
Re: Arduino Due + Segger JLink not available
Reply #2 - Jan 29th, 2020 at 4:08pm
Print Post  
Thanks for the quick reply. I will give that a try this evening. I wanted to get clarification on changing the USB driver with Zadig. Do I install a new driver for the JLink or for the Due?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Arduino Due + Segger JLink not available
Reply #3 - Jan 29th, 2020 at 4:14pm
Print Post  
The Zadig tool will replace the driver for the JLink USB Device, so it is accessible from the OpenOCD software we use to connect to it.
  
Back to top
 
IP Logged
 
Steve Scholl
Junior Member
**
Offline


Posts: 16
Joined: Jan 29th, 2020
Re: Arduino Due + Segger JLink not available
Reply #4 - Jan 30th, 2020 at 5:49am
Print Post  
That did the trick. Thank You!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Arduino Due + Segger JLink not available
Reply #5 - Jan 30th, 2020 at 3:58pm
Print Post  
Glad to help, and this is now available on the drop down menu with the Atmel ICE / Black Magic in the latest release.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint