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 Getting Compiler Errors at Start of Debugger (Read 2523 times)
wernerp
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2014
Getting Compiler Errors at Start of Debugger
Nov 12th, 2014 at 3:27pm
Print Post  
Hello,
i have some problems with the VisualMikro Debugger.
I am using Atmel Studio and the newest version of VisualMikro and an Arduino Duemilanove with an ATmega328P microcontroller.

The very important problem is, if i set a breakpoint for example "When Hit.." which prints variables i will get a compiler error the next time i start the debugger.
The breakpoint will work if i remove the message part which prints the variables.
Also, in some cases if i move the breakpoint to another line the breakpoint will work.
But in most cases i have to remove the breakpoint to get the system running.
In the enclosed file you will find the compiling messages if i start the compiler after i set such a breakpoint:

I worked before without the standard debugger and the Arduino IDE or the Atmel Studio and the JTAGICE3 and did not get such problems.
Please can some one help me?

Please excuse my bad English.
Kind regards, Werner Poschmann.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Getting Compiler Errors at Start of Debugger
Reply #1 - Nov 12th, 2014 at 3:39pm
Print Post  
Hi

Thanks for the info. It looks like you are trying to watch something that arduino can not send via serial. (the debugger uses standard serial)

I guess you have a breakpoint "when hit" which contains {ds1307} or something similar. This is invalid, currently you can only watch simple expresions such as chat, string, int, float etc.

If you would like to work without the debugger you can easily switch it off by changing the configuration name on the tool bar from "debug" to "release" or by unticking "tools>visual micro>automatic debugging"

Here is the error from the text file you supplied

Code
Select All
CDCF77Uhr.cpp:431:194: error: call of overloaded 'print(cds1307*&)' is ambiguous
:Serial.print( "Initialisierung notwendig! Delete NvRAM"
 



It is also worth noting that breakpoints will be automatically executed inside an if when you add a breakpoint to a code line that is an "if"

http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging.html

You should see similar errors if you attempt to manually Serial.print() the watched variables
« Last Edit: Nov 12th, 2014 at 3:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint