Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Arduino Due + Segger JLink not available (Read 234 times)
Steve Scholl
Newbies
*
Offline



Posts: 5
Arduino Due + Segger JLink not available
Jan 29th, 2020 at 2:45am
 
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 Hopkinson
Administrator
*****
Offline



Posts: 179
Re: Arduino Due + Segger JLink not available
Reply #1 - Jan 29th, 2020 at 10:17am
 
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:
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)
Back to top
« Last Edit: Jan 29th, 2020 at 10:25am by Simon Hopkinson »  
 
IP Logged
 
Steve Scholl
Newbies
*
Offline



Posts: 5
Re: Arduino Due + Segger JLink not available
Reply #2 - Jan 29th, 2020 at 4:08pm
 
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 Hopkinson
Administrator
*****
Offline



Posts: 179
Re: Arduino Due + Segger JLink not available
Reply #3 - Jan 29th, 2020 at 4:14pm
 
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
Newbies
*
Offline



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



Posts: 179
Re: Arduino Due + Segger JLink not available
Reply #5 - Jan 30th, 2020 at 3:58pm
 
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 Topic Print