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 burning boot loader with USBTinyISP (Read 7286 times)
jpitz
Newbies
*
Offline


Posts: 4
Joined: Jul 10th, 2014
Error burning boot loader with USBTinyISP
Jul 10th, 2014 at 12:04am
Print Post  
Hello I have a Arduino Uno clone. I can burn the bootloader and upload my sketch using the Arduino IDE just fine. I can also use Visual Micro with Atmel Studio 6.2, along with a USBTinyISP to upload my sketch without problems.

But When I try to burn the bootloader using Visual Mirco I get the following error:
System.Exception: Burn bootloader failed with an exception ---> processing.app.debug.RunnerException: avrdude: can't open input file {runtime.platform.path}/bootloaders/optiboot/optiboot_atmega328.hex: No such file or directory
avrdude: read from file '{runtime.platform.path}/bootloaders/optiboot/optiboot_atmega328.hex' failed

I have placed the path to the optiboot_atmega328.hex in the project toolchain-> directories path. But still get the error.

If I burn the boot loader with the Arduino IDE and then try to upload the sketch using Visual Micro, via the USB port, I get the following error:

avrdude: stk500_getsync(): not in sync: resp=0x00

I really want to move away from the Arduino IDE to Atmel Studio. Any Ideas on how to fix these issues?
« Last Edit: Jul 11th, 2014 at 12:35pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning boot loader with USBTinyISP
Reply #1 - Jul 10th, 2014 at 11:33am
Print Post  
Hi,

For question 1 it sounds like the burn bootloader is trying to use Arduino 1.0.x format

For question 2 it sounds like the Arduino Ide is unable to bun the bootloader correctly.

The upload error signifies a missing boot loader. 

You do not specify if you can you upload using the Arduino IDE after burning the bootloader with the Arduino IDE?
« Last Edit: Jul 11th, 2014 at 12:35pm by Tim@Visual Micro »  
Back to top
IP Logged
 
jpitz
Newbies
*
Offline


Posts: 4
Joined: Jul 10th, 2014
Re: Error burning boot loader with USBTinyISP
Reply #2 - Jul 11th, 2014 at 2:09am
Print Post  
Please read the first line again:

jpitz wrote on Jul 10th, 2014 at 12:04am:
I can burn the bootloader and upload my sketch using the Arduino IDE just fine.


Question 1.  Arduino 1.5.x is set in the Visual Toolbar

Question 2.  The boot loader can be burned from the Arduino IDE,  just not Atmel Studio with the Visual Micro Plugin.

All default paths were used when Installing Atmel Studio and Visual Micro.

It looks like a configuration issue with Visual Micro

Thanks
« Last Edit: Jul 11th, 2014 at 12:35pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning boot loader with USBTinyISP
Reply #3 - Jul 11th, 2014 at 12:30pm
Print Post  
Hi,

I think there is some confusion here. I accept that there might be a problem burning a boot loader which we will fix however you have stated the following

Quote:
If I burn the boot loader with the Arduino IDE and then try to upload the sketch using Visual Micro, via the USB port, I get the following error:

avrdude: stk500_getsync(): not in sync: resp=0x00


My question is, after you have burned the bootloader using the Arduino Ide can you then upload a sketch to your board using the standard serial upload in the Arduino Ide?
« Last Edit: Jul 11th, 2014 at 12:36pm by Tim@Visual Micro »  
Back to top
IP Logged
 
jpitz
Newbies
*
Offline


Posts: 4
Joined: Jul 10th, 2014
Re: Error burning boot loader with USBTinyISP
Reply #4 - Jul 11th, 2014 at 10:29pm
Print Post  
Hello,  I can burn the boot loader using the Arduino IDE and upload the sketch using either the bootloader through the Arduino IDE, using the USB port,  or using the USBTinyISP as the programmer. 

If I an burning the bootloader then I of course want to use just the USB port without a programmer. 

Thanks



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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning boot loader with USBTinyISP
Reply #5 - Jul 11th, 2014 at 10:37pm
Print Post  
Hi,

Yes I agree you should use the usb port after burning a boot loader but you had not previously confirmed that after burning the boot loader the usb upload worked in the Arduino Ide. Please re-confirm this is the case.

If that is true then we can ignore, for now, any discussion about burning the boot loader or using a programmer because that confuses things.

1)

You are saying that you now have a board that can upload using usb in the Arduino but not in Visual Micro? It is important to be clear about these two tests please without discussion of boot loader or programmer.

2)

Please confirm the board you are using and the name and date of the usb driver in windows>control panel>device manager

3)

Please post the full output from the compile and upload. It should show which port Visual Micro is attempting to use.

Thanks
« Last Edit: Jul 11th, 2014 at 11:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint