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 Error uploading (Read 8099 times)
Fred Cailloux
Junior Member
**
Offline


Posts: 12
Location: Canada
Joined: Mar 13th, 2016
Error uploading
Mar 18th, 2016 at 3:15pm
Print Post  
From what I understand, Visual Micro is an extension for MS Visual Studio so that the user can use the VS IDE instead of the Arduino IDE to compile and upload sketches to his board. Here I have a situation where maybe I will have to disable Visual Micro (or perhaps there is another way). Here it is: I use Visual Micro to program my chipKIT board and it works very well. I also want to be able to program other boards, in this case the little ATtiny85 via a programmer board called Sparkfun Tiny Programmer. Fundamentally, the Tiny Programmer is just a USB access to the little ATtiny85 and is very well handled by the Arduino IDE. 
In order for me to use the Tiny Programmer with Visual Micro I assume that I must go to Arduino and change the MicroController to ATtiny85 and request to use the USBtinyISP programmer (according to manufacturer instructions), and according to Visual Micro instructions as well. Then, after testing the Arduino new setup I close Arduino and fire MS Visual Studio Visual Micro. I then must open my Arduino ino project file (in this particular case it is the famous simple QuickBlink.ino). Then I must select my newly installed board in Arduino called ATtiny85. So far it works quite well. Then I attemp to compile the simple project and it appear to compile fine. It is when I try to upload the compiled project that I get an error as such: 

Compiling 'QuickBlink' for 'ATtiny w/ ATtiny85'   Binary sketch size: 834 bytes (used 10% of a 8,192 byte maximum) (0.30 secs) 
Uploading to I/O board using 'COM3'   The uploader returned an error
avrdude: invalid baud rate specified '{upload.speed}'

Now, previously, when I had installed Atmel Studio7, I could upload that sketch no problem. I do not have Studio7 installed anymore. Since Visual Micro is both compatible with MS Visual Studio and Atmel Studio7, am I correct to assume that perhaps if I was trying to somehow disable Visual Micro that I could parameter Visual Studio to do the same job as Studio7 ? Or, is there a solution to the present problem ? 

To better understand the problem with the virtual COM3 port it is relevant to know that the manufacturer of Tiny Programmer is supplying a driver that is not a virtual COM port but rather addresses the USB programmer directly via it's own version of USB driver. In Arduino the IDE imposes the only selection of COM3 as a virtual COM port, but it is irrelevant and does not trigger an error. In Visual Micro it doesn't seem to be the case. Is there a known solution. I'd really like to avoid having to install Atmel Studio again, and certainly not Studio7, since it is incompatible with MS Visual Studio (at least the latest version)
Thanks for your help, very appreciated.
« Last Edit: Aug 23rd, 2016 at 1:55am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Disable VIsual Micro
Reply #1 - Mar 18th, 2016 at 3:55pm
Print Post  
I think you have confused things a little. 

To change board you do not have to change any settings in the Arduino Ide

The documentation shows how to use the Visual Micro tool bar or menu to change board and/or port.

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


Quote:
Compiling 'QuickBlink' for 'ATtiny w/ ATtiny85'   Binary sketch size: 834 bytes (used 10% of a 8,192 byte maximum) (0.30 secs) 
Uploading to I/O board using 'COM3'   The uploader returned an error
avrdude: invalid baud rate specified '{upload.speed}'


This error is when attempting to upload to the com port. I think you need to select the USBtinyISP programmer on the "Visual Micro" menu and ensure the "Always use programmer for upload" is ticked. 

(nb: It looks like the Arduino Ide automatically uses the programmer if it discovers an invalid COM upload definition. Visual micro should do the same to avoid confusion)

  
Back to top
IP Logged
 
Fred Cailloux
Junior Member
**
Offline


Posts: 12
Location: Canada
Joined: Mar 13th, 2016
Re: Disable VIsual Micro
Reply #2 - Mar 18th, 2016 at 5:09pm
Print Post  
Absolutely, It works now. I changed the settings in /Visual Micro/Programmer to the actual programmer name "USBtinyISP" in Arduino and thing just got perfect. 
Thank you very much for your help!

And, by the way, I'd like to mention that I am impressed by your competence, quick response, and, your patience with beginners like me who sometime asks such basic questions.
Thanks again!
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Disable VIsual Micro
Reply #3 - Mar 18th, 2016 at 5:18pm
Print Post  
Good to hear that thanks
  
Back to top
IP Logged
 
Fred Cailloux
Junior Member
**
Offline


Posts: 12
Location: Canada
Joined: Mar 13th, 2016
Re: Disable VIsual Micro
Reply #4 - Aug 22nd, 2016 at 8:25pm
Print Post  
Back in March 2016 I had a problem getting my USBtinyISP programmer working (along with an ATtiny85 Atmel chip). A simple solution was found and I was able to program my ATtiny85 chip using my programmer. Today I have another project using the same chip but Visual Micro will simply not enable the Build&Upload button (just the same problem as previously) except this time I know what to do. As mentionned ...

Tim@Visual Micro wrote on Mar 18th, 2016 at 3:55pm:
I think you have confused things a little. 

To change board you do not have to change any settings in the Arduino Ide

The documentation shows how to use the Visual Micro tool bar or menu to change board and/or port.

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


Quote:
Compiling 'QuickBlink' for 'ATtiny w/ ATtiny85'   Binary sketch size: 834 bytes (used 10% of a 8,192 byte maximum) (0.30 secs) 
Uploading to I/O board using 'COM3'   The uploader returned an error
avrdude: invalid baud rate specified '{upload.speed}'


This error is when attempting to upload to the com port. I think you need to select the USBtinyISP programmer on the "Visual Micro" menu and ensure the "Always use programmer for upload" is ticked. 

(nb: It looks like the Arduino Ide automatically uses the programmer if it discovers an invalid COM upload definition. Visual micro should do the same to avoid confusion)

Except now, the solution invoked no longer work. I am really stuck. Cant find why? I did go back to Arduino IDE and reloaded a little sketch successfully. Why, this time, Visual Micro will not Upload my sketch is beyond comprehension for me.  Embarrassed I did check that the USBtinyISP board was properly installed. Obviously it is since it is working with Arduino IDE !
Any suggestions to try ?
Thanks for your help.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Disable VIsual Micro
Reply #5 - Aug 23rd, 2016 at 1:52am
Print Post  
Hi,

It's difficult to comment with such little info. Please do this so I don't have to ask lots of questions.

Switch on "vMicro>Compiler>verbose" and also "vMicro>Compiler>show build properties" then attempting upload and posting the output as a txt file here or emailing to info[at]visualmicro.com with a link to this post.

The output will at the lest tell us what is selected for upload, either serial or a programmer. but the verbose output will also tell me your config.

Can I see a screen shot of "Always use programmer for upload" ticked.

Thanks



« Last Edit: Aug 23rd, 2016 at 2:05am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error uploading
Reply #6 - Aug 23rd, 2016 at 1:55am
Print Post  
One other thing that would help me understand your understanding.

Please tell me what you are clicking in the arduino ide to upload?

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