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
Hot Topic (More than 8 Replies) Compiler and Load error (Read 7146 times)
Chet Kloss
Newbies
*
Offline


Posts: 6
Location: Nashville
Joined: Jan 6th, 2016
Compiler and Load error
Jan 8th, 2016 at 10:57pm
Print Post  
The following basic code:
void setup()
{

  /* add setup code here */
     pinMode(13, OUTPUT);

}

void loop()
{

  /* add main program code here */
     digitalWrite(13, HIGH);   // Turn on the LED
     delay(1000);              // Wait for one second
     digitalWrite(13, LOW);    // Turn off the LED
     delay(1000);              // Wait for one second

}

Generates the below error:
Location Test1.ino, line 9
Conditions:
  Conditional expression 'millis()>0 || millis () >1' is true
  Hit count is a multiple of 250
Actions:
  Break
  Log Message: ' Millis is currently {millis()},

Of course this code runs fine in the Arduino Sketch environment.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler and Load error
Reply #1 - Jan 9th, 2016 at 4:35pm
Print Post  
Hi,

Sorry I posted the answer for a different thread previously.

To make a comparison with the Arduino Ide you need to change the configuration name on toolbar from "Debug/windows debugger" to "Release" and then build.

Please post the full output after a debug build. You can click "Visual Micro>Verbose Messages" and then build. If you prefer to email the output the address is info[at]visualmicro.com

The verbose output will also remove the need for you to say which arduino ide version and which board you are using etc. which is always useful.
  
Back to top
IP Logged
 
Chet Kloss
Newbies
*
Offline


Posts: 6
Location: Nashville
Joined: Jan 6th, 2016
Re: Compiler and Load error
Reply #2 - Jan 11th, 2016 at 9:09pm
Print Post  
Thank you Tim.  That worked for the Build but now I get this for the upload error:
---------------------------------------------------------
Uploading to I/O board using 'AVRISP mkII'
Uploader started for board Arduino/Genuino Uno
Uploader will use programmer name: avrispmkii
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" -v -patmega328p -cstk500v2 -Pusb 1.hex:i"
avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
Error during upload using programmer
Upload failed

Upload failed
The uploader returned an error
         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb"
--------------------------------------------------

I have a genuine Arduino Uno and the programmer that was selected when I installed Visual Micro is AVRISP mkII.

Any idea if I should select a different programmer?

Thanks,
,,,,,,,,,,,,,Chet

P.S.  What the hell is the "programmer" anyway?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler and Load error
Reply #3 - Jan 11th, 2016 at 9:13pm
Print Post  
That means you have checked the visualmicro-upload using programmer option.

Uncheck it because I guess you do not have a programmer you only have usb cable?
  
Back to top
IP Logged
 
Chet Kloss
Newbies
*
Offline


Posts: 6
Location: Nashville
Joined: Jan 6th, 2016
Re: Compiler and Load error
Reply #4 - Jan 12th, 2016 at 7:56pm
Print Post  
Thank you.  Yes I upload via the USB cable.  The only way I was able to "uncheck" the programmer" was to add the programmer section to the menu bar and uncheck it from there.  On the main Visual Micro menu there doesn't seem to be a way to do it.  Still that worked and I can upload to my board now.  Thank you very much.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler and Load error
Reply #5 - Jan 12th, 2016 at 8:00pm
Print Post  
Please see the documentation and let me know if you are seeing something different

"Always upload using programmer" is just below the list of programmers on the "Visual Micro" top menu?

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

There is also a programmers toolbar you can switch on

http://www.visualmicro.com/page/User-Guide.aspx?doc=Toolbar-And-Menu-Overview.ht...
« Last Edit: Jan 12th, 2016 at 8:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Chet Kloss
Newbies
*
Offline


Posts: 6
Location: Nashville
Joined: Jan 6th, 2016
Re: Compiler and Load error
Reply #6 - Jan 14th, 2016 at 9:30pm
Print Post  
Definitely a difference from the documentation.  As you'll see, there is no option for "No Programmer" as it shows in the docs.
  

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler and Load error
Reply #7 - Jan 14th, 2016 at 9:35pm
Print Post  
Hi,

The menu item below the one you have selected is a toggle. If you click it you will see the icon is then highlighted. Click again and it's back to off like it is now.

You will see in the arduino ide that a programmer is also always selected even though the upload button does not use the selection. 

It's confusing because normal upload via usb does not use a programmer. However if you used the burn bootloader option it never uses usb, always uses and expects a programmer to be selected.

Undecided
  
Back to top
IP Logged
 
Chet Kloss
Newbies
*
Offline


Posts: 6
Location: Nashville
Joined: Jan 6th, 2016
Re: Compiler and Load error
Reply #8 - Jan 14th, 2016 at 9:41pm
Print Post  
I have to say that it took me about 5 times of clicking the item below the Programmer list to notice the icon was changing.  That is just too damn subtle Smiley

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler and Load error
Reply #9 - Jan 14th, 2016 at 9:43pm
Print Post  
I know. It's also a button on the Micro Programmer toolbar so  needs an icon to match. However a simple tick would be better! 

Maybe the bar should go.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint