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 Breakpoints in loop() not working when using Timer/Counter 0 Output Compare Match Interrupt (Read 3622 times)
Andreash
Newbies
*
Offline


Posts: 2
Joined: Nov 29th, 2012
Breakpoints in loop() not working when using Timer/Counter 0 Output Compare Match Interrupt
Nov 29th, 2012 at 2:16pm
Print Post  
Hi, first of all i want to say thanks for the great vs plugin.

I have just done some testing with my arduino uno and my sketch, which uses timer interrupts and isr's to handle the interrupts. I have watched your video where you explain how to set up debugging and how to use breakpoints. As i tried to use breakpoints in my sketch i found out that breakpoint do not work in loop()-method when timer0 is set to throw interrupt on compare match. breakpoints in setup()-method are working.
Just tested timer 1 and 2 too. It seems that only timer0 overflow interrupt and timer1 overflow interrupt are going to work (breakpoints have been working). When setting timer2 to interrupt on overflow, breakpoints are not working in loop().

Unfortunately i need to use compare match interrupts.

Regards, Andreas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoints in loop() not working when using Timer/Counter 0 Output Compare Match Interrupt
Reply #1 - Nov 29th, 2012 at 2:23pm
Print Post  
Hi, thanks for you message.

By default the debugger uses the standard arduino serial system so you should also be unable to add your own manual serial.println()messages to your project?

If this is the case then you might like to try the SoftwareSerial option instead. To do this you need an FTDI cable attached to any digital interrupt pins.

To use SoftwareSerial set the RemoteTransport project property to SoftwareSerial, set the RemoteTX and RemoteRX pins to the digital pins you have connected to ftdi, set the Remote/Local Speed to 57600 or less, set the LocalPort to the PC port that that the FTDI is connected to.

I hope this helps
  
Back to top
IP Logged
 
Andreash
Newbies
*
Offline


Posts: 2
Joined: Nov 29th, 2012
Re: Breakpoints in loop() not working when using Timer/Counter 0 Output Compare Match Interrupt
Reply #2 - Nov 29th, 2012 at 3:47pm
Print Post  
Thanks for the very quick answer. You are right Serial.print doesn't work too with timer interrupts. I'm going to try FTDI, thanks for the hint!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint