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 Debug on standalone breadboard arduino (Read 3574 times)
bradw
Newbies
*
Offline


Posts: 5
Joined: Jul 17th, 2014
Debug on standalone breadboard arduino
Jul 17th, 2014 at 5:35pm
Print Post  
Hi 

I got the debug working with a simple blink program on an arduino uno! Can I take the chip out of the arduino uno and debug from a standalone breadboard? I have several arduino programs running on standalone breadboards, connected to pc via usb (for power and serial com). I don't see why this would not work. I tried late last night and was able to get to the first break statement on the standalone, but not able to move forward in the program. F5 or pushing the start button did not yield any results. When the same chip is in the arduino uno board, the debug works. I am wondering if this is supported. There is no upload capability when the chip is connected to the standalone breadboard. 

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug on standalone breadboard arduino
Reply #1 - Jul 17th, 2014 at 6:29pm
Print Post  
Hi Brad,

Thanks for the question. The debugger is very simple and just uses standard Arduino serial. So you are right it will work.

I think there is a connection problem with the rx wire from the Arduino/breadboard to the usb cable.

When you press F5 all that happens is that Visual Micro sends the 'c' character using the serial. You can try this with the board that works by sending a c instead of pressing F5.

When the Arduino is paused at a break point the code on the Arduino is using something like this

while (Serial.available()<=0)
{
  //nothing do do, waiting for F5
  //delay (5);
}

Hopefully this gives you enough to find the solution.

Thanks
  
Back to top
IP Logged
 
bradw
Newbies
*
Offline


Posts: 5
Joined: Jul 17th, 2014
Re: Debug on standalone breadboard arduino
Reply #2 - Jul 18th, 2014 at 3:47am
Print Post  
Tim,

I had only wired the communication from chip to usb, because I was only using serial.print functions to see what was happening on the chip. I added the wire for communication from usb to chip and all is working. 

Cool debugger. Now I am off to remove all the serial.print functions.

Thanks!

Brad
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint