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 Debugging Adafruit Feather M4 with JLink (Read 945 times)
Rich R
Junior Member
**
Offline


Posts: 31
Joined: Mar 2nd, 2016
Debugging Adafruit Feather M4 with JLink
Jan 23rd, 2022 at 9:47pm
Print Post  
I am just starting to do real debugging including step by step.  I have a JLink and am trying to debug an Adafruit M4 Feather using the SWD hardware.   Does anyone know if there is a tutorial for VM that I can start from?   I wasn't able to find a clean simple approach but am guessing I'm certianly not the first one to do it so I'm likely not looking in the right place.

Any help appreciated.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2173
Joined: Feb 13th, 2019
Re: Debugging Adafruit Feather M4 with JLink
Reply #1 - Jan 24th, 2022 at 10:10am
Print Post  
There is the below page which shows how to setup the software for use with the JLink and a SAMD board, like the Feather M4:
https://www.visualmicro.com/page/SAMD-Debugging.aspx

The SWD IO and CLK pins look to be broken out to pads on the underside of the board (depending on the model) so some soldering may be required to link these to the JLink.

NOTE: The 3.3v pin of the board will need connecting to Pin 1 of the JLink to ensure it can detect the board power, assuming the board is still being powered via the USB cable.
  
Back to top
 
IP Logged
 
Rich R
Junior Member
**
Offline


Posts: 31
Joined: Mar 2nd, 2016
Re: Debugging Adafruit Feather M4 with JLink
Reply #2 - Jan 25th, 2022 at 4:00pm
Print Post  
Thanks, I tried to connect in a standard blink project but I dont see the debug->hardware option.  I'm on VS 17.01 Community 2022.   See attached, I think I'm missing something.  The J-Link software sees the device via USB.
  

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


Posts: 2173
Joined: Feb 13th, 2019
Re: Debugging Adafruit Feather M4 with JLink
Reply #3 - Jan 25th, 2022 at 4:08pm
Print Post  
Thanks for the update.

Have you installed the WinUSB Driver for the JLink?
https://www.visualmicro.com/page/Zadig-Driver-Installation-Guide.aspx

The "Debug: Hardware" option is on the vMicro > Debugger Menu, and once selected go back to the vMicro > Debugger Menu, and you will be able to select the JLink as the probe.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint