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
Can you debug for an Adafruit Feather M0 (Read 172 times)
Nicholas Schoessling
Newbies
*
Offline



Posts: 3
Can you debug for an Adafruit Feather M0
Jul 3rd, 2019 at 8:11pm
 
Hello, I was just wondering whether or not the debugging (I assume uses the serial port) will work for the Adafruit feather M0 board that requires the use of serialusb. 
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Can you debug for an Adafruit Feather M0
Reply #1 - Jul 3rd, 2019 at 8:17pm
 
Hi,

Serial Debug

The Serial debugger will work with the SerialUSB port. If you own code sends without line terminators or send byte or reads the port then you should configure the debug to use an alternative serial port or softwareSerial.

Hardware Debug

I don't think the feather has EDGB on-board? In which case if you want to use the hardware debug options you would need an external debugger. The new hardware debug options require an external debugger which Visual Micro should already support. If not then let us know.

Does this help?
Back to top
 
WWW  
IP Logged
 
Nicholas Schoessling
Newbies
*
Offline



Posts: 3
Re: Can you debug for an Adafruit Feather M0
Reply #2 - Jul 3rd, 2019 at 8:33pm
 
Hello, thank you for the quick response.  Being new to debugging, I do not fully understand what you mean by "If you own code sends without line terminators or send byte or reads the port then you should configure the debug to use an alternative serial port or softwareSerial."? Thank you very much.
-Nicholas Schoessling
Back to top
« Last Edit: Jul 3rd, 2019 at 8:34pm by Nicholas Schoessling »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: Can you debug for an Adafruit Feather M0
Reply #3 - Jul 3rd, 2019 at 8:42pm
 
I think your board has the Atmel EDBG hardware debug chip on the usb port. So in visual micro you can select hardware debug and the EDBG debugger. This should give you live step and variable watch.

If you have not invested in another device for debug then your other option is the software/serial debugger which you can find an overview of and usage guide in the documentation section accessed at the top of visualmicro.com or from within the IDE vMicro>Help menu.

If you want to use the Serial debugger on SerialUSB you might need to set the word SerialUSB into "vMicro>Debugger>RemotePort"

When using the Serial debugger on the upload/usb port, your own code might also use Serial.print or SerialUSB.print() etc. In this case use Serial.println() or SerialUSB.println() after you have output some serial. This ensures a line terminator \r\n is sent.

If your own serial code performs a .read() on the serial you will need to follow the document of how to debug using Other Ports and Pins
Back to top
 
WWW  
IP Logged
 
Nicholas Schoessling
Newbies
*
Offline



Posts: 3
Re: Can you debug for an Adafruit Feather M0
Reply #4 - Jul 3rd, 2019 at 8:58pm
 
I appreciate all your help.  Thank you for your patience with me being new to all of this.  I understand what you mean now.  Thank you once again.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print