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 program hangs at Void Loop, on unaltered Blink sketch. (Read 2652 times)
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
program hangs at Void Loop, on unaltered Blink sketch.
May 21st, 2016 at 10:51pm
Print Post  
Installed Arduino version 1.6.9 the other day, checked it using the Blink program On the mega 2560 and the uno. No problems. I have both Visual Studio 2013 and Visual Studio 2015 Installed on my computer. Both have been working fine. Downloaded and installed visual micro today. The installation went fine no problems. Set the boards and USB ports appropriately. I tried to Upload the Blink program to both the uno and the mega 2560. An error came up on Line 19. Line 19 is the void loop command. the Error comes up on both Visual Studio 2013 and 2015. 

I rechecked both boards with the Arduino I'd, both are working fine. The Blink sketches unaltered.

the error message For the mega states, " Exception on Com7,  Blink.ino, line 19. "

What is going on.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: program hangs at Void Loop, on unaltered Blink sketch.
Reply #1 - May 21st, 2016 at 11:42pm
Print Post  
Hi,

Questions

When you say set the Usb ports accordingly are you referring to the debug properties? Can you confirm exactly what appropriately means please?? Which properties have you set and which port names have you assigned to each?

It's easy to see what is happening if you switch on "vMicro>Verbose Messages" and then try to build. + There is usually more info in the error message so always useful to post that in full. You can always email it (along with a link to this post) if you don't want to post the information.

I wouldn't normally expect to see the word "exception" in an Arduino compile so that is a bit confusing. I also would associate a program "hang" with a run-time issue after upload but it sounds like a compile issues?

edit: From your error report I don't know if this helps but I intentionally entered COM4 into the RemotePort for debug. That would be a mistake and produced this clear error:-

Code
Select All
Sketch3.ino:In function 'void setup()
Sketch3.ino:4:57: error: 'COM4' was not declared in this scope
:void setup() {
    debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging (pls let us know!)
Error compiling project sources 



It's not possible for COM4 to be referenced in the Arduino code unless debug is configured incorrectly.

Thanks
« Last Edit: May 21st, 2016 at 11:50pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: program hangs at Void Loop, on unaltered Blink sketch.
Reply #2 - May 22nd, 2016 at 12:25am
Print Post  
when I say the appropriate USB port, I mean the USB comport assigned to that particular Arduino board. Com4 for the uno, Com6 for the Due, Com7 for the mega. or at least that's what mine show up as.

The only other information given was the Millis, 2049.

The sketch is the example sketch that is supplied with the Arduino ide. It was unchanged, and works perfectly From the Arduino ide. But when I use visual micro to run the same program I get that error. something is going on, and I don't see how it could be the sketch . Especially since it was not altered from the Factory default.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: program hangs at Void Loop, on unaltered Blink sketch.
Reply #3 - May 22nd, 2016 at 12:28am
Print Post  
Okay can you please post the requested information so I can see the error?
« Last Edit: May 22nd, 2016 at 12:28am by Tim@Visual Micro »  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: program hangs at Void Loop, on unaltered Blink sketch.
Reply #4 - May 22nd, 2016 at 12:58am
Print Post  
I have given you all the information that it has given me. there is no more.
It gave me two bits of information, line number and the Millis.

if that is not enough I'll just go back to the Arduino IDE. But I cannot give you something that I don't have.

thank, you but I do not have time to fight with it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: program hangs at Void Loop, on unaltered Blink sketch.
Reply #5 - May 22nd, 2016 at 1:01am
Print Post  
Please switch off "vMicro>Automatic debugging" and also switch the toolbar from "Debug" to "Release"

Then upload again and see if it is working.

Thanks
  
Back to top
IP Logged
 
Sam6
Junior Member
**
Offline


Posts: 21
Joined: Mar 22nd, 2013
Re: program hangs at Void Loop, on unaltered Blink sketch.
Reply #6 - May 22nd, 2016 at 1:25am
Print Post  
thank you, it is now working. My previous version of visual micro was working on Visual Studio 2013. But I did not have it installed on Visual Studio 2015. That is why I decided to upgrade to the newer version. Everything seems to be working now.

Again, thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint