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
Very Hot Topic (More than 25 Replies) This board does not support the burning of a bootloader (Read 53470 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
This board does not support the burning of a bootloader
Mar 6th, 2014 at 2:22pm
Print Post  
Hi,

I got that message this morning. Context:

  • Atmel Studio 6.1
  • VisualMicro latest official version
  • Programmer USBTinyISP
  • the board is Sparkfun Mega Pro Mini 3.3 V
I came across this post of the same subject http://www.visualmicro.com/forums/YaBB.pl?num=1375386337

I tried with the Arduino IDE: no complaint from the IDE, but has been running for 5 minutes, and still running  Huh.

I found this page http://learn.adafruit.com/usbtinyisp/avrdude tried this command avrdude -c usbtiny -p m8 and got that:

Quote:
avrdude: can't open config file "": Invalid argument
avrdude: error reading system wide configuration file ""
Looks like that -p is to identify the board, I don't know.

The Mega Pro mini 3.3 V does not need a reflash of the bootloader, but I practice with this one because I will get my own boards that are clones of the Mega Pro Mini 3.3 V.

Thanks
« Last Edit: Mar 6th, 2014 at 3:12pm by Gilles Plante »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #1 - Mar 7th, 2014 at 6:11pm
Print Post  
Hi Giles,

Sorry for the delay.

This error is raised if Visual Micro is unable to determine which bootloader.hex to upload to the board.

Please email the boards.txt file you installed for the sparkfun board and also confirm which version of Arduino you are using.

hint: Visual Micro looks for some of these properties to determine the bootloader of the different arduino versions:-

bootloader.path
bootloader.file
bootloader.tool


Thanks 


  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #2 - Mar 7th, 2014 at 6:26pm
Print Post  
Arduino version 1.0.5.

C:\Program Files (x86)\Arduino 1.0\hardware\mega-pro-3.3V\boards.txt:

Code
Select All
# beerware, SparkFun Electronics 2011
# This file adds the Mega Pro 3.3V board to Arduino device list
# compatible with the Mega Pro 3.3V  and Mega Pro Mini 3.3V

###################################################################
mega2560v.name=Mega Pro 2560V 3.3V

mega2560v.upload.protocol=stk500v2
mega2560v.upload.maximum_size=258048
mega2560v.upload.speed=57600

mega2560v.bootloader.low_fuses=0xE2
mega2560v.bootloader.high_fuses=0xD4
mega2560v.bootloader.extended_fuses=0xFD
mega2560v.bootloader.path=
mega2560v.bootloader.file=MegaPro3.3V-8MHz-57600.hex
mega2560v.bootloader.lock_bits=0xCF

mega2560v.build.mcu=atmega2560
mega2560v.build.f_cpu=8000000L
mega2560v.build.core=arduino
mega2560v.build.variant=mega
################################################################### 



The .hex file is C:\Program Files (x86)\Arduino 1.0\hardware\mega-pro-3.3V\bootloaders\MegaPro3.3V-8MHz-57600.hex

Haha, mega2560v.bootloader.path= is empty  Smiley Is bootloader.tool needed.

I tried burning the bootloader from Arduinos's IDE, the board looks bricked  Sad.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #3 - Mar 7th, 2014 at 6:45pm
Print Post  
You don't need to change anything it should just work. The tool  is used in 1.5 versions.

I will look at what happens if the path is empty and get back to you

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #4 - Mar 8th, 2014 at 2:18pm
Print Post  
Thanks Giles this is fixed in the next release. There is a workaround if you want it but it really only applies to the sparkfun board as far as I am aware.

The workaround is as follows and will work with the arduino ide:-

1) create a sub folder below \hardware\mega-pro-3.3V\bootloaders. call it anything, for example \hardware\mega-pro-3.3V\bootloaders\megapro

2) copy the MegaPro3.3V-8MHz-57600.hex bootloader into the new megapro sub folder

3) change this board property from

Code
Select All
mega2560v.bootloader.path= 



to

Code
Select All
mega2560v.bootloader.path=megapro 




This is how the directories are organised for the core Arduino boards so it makes sense anyway. but the next version of vm will support the sparkfun default.

Re-start the ide or click tools>visual micro>reload tools chains

Tim
« Last Edit: Mar 8th, 2014 at 2:19pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #5 - Mar 8th, 2014 at 3:25pm
Print Post  
Thanks a million Tim  Smiley. Looks like the .path property would be a sub directory and not a full path ?

I will try it Monday and let you know. I hope it will work even though the board seems to be bricked. After I tried with the Arduino IDE, I was not able any more to download a program.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #6 - Mar 8th, 2014 at 3:54pm
Print Post  
Yes you are right the path just specified the sub folder below bootloaders in both 1.0.x and 1.5.x. 

I'll add support for wiring sometime because it supports boards like this but it's confusing for users when Wiring also includes support Arduino boards but with an older static tool chain.

I hope your board isn't bricked. Was your programmer able to upload previous to burning the bootloader?

Switch on tools>options>vm>compiler>verbose that should give a more detailed output after upload attempt. 

If the upload tool (avrdude) hangs Visual Micro will force it to timeout after 95 seconds.


  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #7 - Mar 8th, 2014 at 6:48pm
Print Post  
Quote:
Was your programmer able to upload previous to burning the bootloader?
The first time I tried the programmer, that was to upload the bootloader. Since it didn't work in VisualMicro - thanks for not trying if something is missing -, I tried the IDE, which simply hungs Undecided.

My guess is that since the Arduino IDE was not able to upload the bootloader, it left the MCU in such a state that it can't accept program download anymore. I just hope that I can repair it. I will contact SparkFun about this.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #8 - Mar 8th, 2014 at 7:15pm
Print Post  
Hmm, sparkfun docs say it is compatible with Arduino 1.0x so they should help you fix it or replace it. 

In a way I am pleased that Visual Micro refused to burn the bootloader because it uses the same tool as the arduino ide and in theory will produce the same result. 

It would have been more difficult when you speak with sparkfun if you had said you used Visual Micro to burn the bootloader. This is because sparkfun don't know that Visual Micro does what the Arduino ide does. I know this doesn't help but an interesting observation to keep in mind in the future  Smiley

Thanks for all the recent forum help.
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #9 - Mar 10th, 2014 at 11:40am
Print Post  
Tim,

I can't modify boards.txt: can't overwrite it, can't save under a different name, being told I don't have the rights  Undecided. Strange since I am in the Administrator group. This is an issue with Windows I had before, I run Windows 7.

I found out something interesting in the boards.txt file located in C:\Program Files (x86)\Arduino 1.0\hardware\SF32u4_boards-master:

Code
Select All
promicro8.name=SparkFun Pro Micro 3.3V/8MHz
promicro8.upload.protocol=avr109
promicro8.upload.maximum_size=28672
promicro8.upload.speed=57600
promicro8.upload.disable_flushing=true
promicro8.bootloader.low_fuses=0xff
promicro8.bootloader.high_fuses=0xd8
promicro8.bootloader.extended_fuses=0xfe
promicro8.bootloader.path=caterina
promicro8.bootloader.file=Caterina-promicro8.hex
promicro8.bootloader.unlock_bits=0x3F
promicro8.bootloader.lock_bits=0x2F
promicro8.build.mcu=atmega32u4
promicro8.build.f_cpu=8000000L
promicro8.build.vid=0x1B4F
promicro8.build.pid=0x9204
promicro8.build.core=arduino:arduino
promicro8.build.variant=promicro
 

The question is which boards.txt is used when one select the M»icro Pro 3.3 V: the one from Arduino (this one) or the other one I was trying to edit.
  
Back to top
 
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #10 - Mar 10th, 2014 at 12:10pm
Print Post  
I finally was able to edit the boards.txt file... but got the same result: the IDE hangs and nothing is written in the bottom window.

Looks like something is wrong either with the IDE or with the USBTinyISP ?!?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #11 - Mar 10th, 2014 at 12:17pm
Print Post  
Thanks for the update, sorry I forgot to say a new beta was available with a fix that avoided the need to edit boards.txt for the sparkfun board.

I am sorry to that it is right that you get the same error from Visual Micro as you do in the Arduino Ide. I suspect this might be a usb driver problem but I have no idea why avrdude.exe (the tool both Ide's use to perform the task) would behave in this way.

I think it is worth asking sparkfun. If I get time I will order a megapro and see if I get the same results as you with various programmers.

  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #12 - Mar 10th, 2014 at 12:19pm
Print Post  
Tim,

About the Beta version, I prefer to install a new version once it's officially released. I will contact SparkFun and look at the Arduino forums.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #13 - Mar 10th, 2014 at 12:22pm
Print Post  
Hi Gilles, that makes sense. Look forward to hearing thanks
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #14 - Mar 11th, 2014 at 12:10pm
Print Post  
Hi Tim,

I finally got it to work.. well sort of. I had an issue with the driver, but it's now solved.

So I tried again this morning, and got this from avrdude:

Code
Select All
avrdude: Expected signature for ATmega32U4 is 1E 95 87
         Double check chip, or use -F to override this check. 



I think it comes from the definition of the board which is included with the IDE:

promicro8.build.mcu=atmega32u4

Looks lile the IDE uses it's definition, but VisualMicro uses the definition that was added under hardware, and my opinion is that your way is the right one !

I tried again with VisualMicro (AtmelStudio) and this time got:

Code
Select All
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at processing.app.debug.AvrdudeUploader.burnBootloader(Board boardPreferences, String programmerName) 



Looks like for now my only way would be to use Arduino's IDE till the new version of VisualMicro is published. I will contact SparkFun about that problem.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #15 - Mar 11th, 2014 at 1:00pm
Print Post  
Hi,

You are right that Visual Micro should take the definitions from the hardware config yet Arduino 1.0 has them hard coded.

I would like to look at it first so we can give sparkfun either a clean Arduino 1.0 definition to publish or an Arduino 1.5 version

It isn't a difficult task to make an Arduino 1.5 compatible version of the sparkfun system and it is something that sparkfun should have done.

We should create the defs that work properly for Arduino 1.5 which sparkfun can then publish on their megapro page.
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #16 - Mar 11th, 2014 at 7:16pm
Print Post  
Tim,

Yesterday I picked the wrong board, wich has a ATmega32U4  Embarrassed.

So I tried with the right one, which is the Mega Pro 2560V 3.3V. I am getting closer, but after a while I get

Code
Select All
avrdude: verification error, first mismatch at byte 0x3f800
         0x11 != 0xff
avrdude: verification error; content mismatch 



I tried with an old Arduino Mega, I get the same error message, but with a different address. What's interesting is that the number to the right of = is 0xff again. I will contact adafruit.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #17 - Mar 11th, 2014 at 7:29pm
Print Post  
That looks a bit better.

Maybe check you are using the right firmware on the programmer (just a guess)
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #18 - Mar 11th, 2014 at 7:47pm
Print Post  
This is the question I asked adafruit  Wink.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #19 - Mar 11th, 2014 at 7:53pm
Print Post  
Cheesy
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #20 - Mar 18th, 2014 at 6:34pm
Print Post  
Tim,

looks like that (&**"/!/! programmer does not work with 2560 MCUs  Shocked.

SparkFun suggested I tried to upload blink.ino with the adapter. Since that does not seem, possible in the Arduino's IDE, I tried from AtmelStudio with VisualMicro... I got that message for minutes:

Quote:
Uploading to I/O board using 'usbtinyisp'

Looks frozen  Embarrassed.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #21 - Mar 19th, 2014 at 11:59am
Print Post  
First off, I would go on avrfreaks and ask how to set fuses and upload a .hex from atmel studio to a 2560

T
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #22 - Mar 20th, 2014 at 11:33pm
Print Post  
Tim,

some more information.

SparkFun support person suggested I try to upload blink.ino to the board using the programmer. Her theory is that the TinyUSB may not have enough memory to upload the bootloader for the Meg Pro Mini. Well I succeed in uploading blink.ino. I then tried to upload my own program, about 24 K, but didn't succeed. I also ask her which programmer they use to burn the bootloader to these board, and was told it's the AVRISP mkII.

So I got an AVRISP mkII this afternoon. Plugged it in and the driver automatically installed. All is fine I thought... no so  Embarrassed. I tried to burn the bootloader with Arduino's IDE and I am told no USB device found (can't recall the exact message).

I had a looked in Device Manager and found out under Jungo AVRISP mkII. I rebooted the computer, same error message. As far as I understand, all the programmer would use the same driver, libusb.

Tomorrow I will try to upload my program from AtmelStudio withe the AVRISP mkII, hoping it's going to work.

To you best knowledge, is there anything that needs to be installed for that programmer to work in AtmelStudio ? I got a CD with tools for AtmelStudio up to V 5, so I didn't install anything.

One more question: when uploading a program with a programmer, is there a need for a specific bootloader in the MCU ?

Gee, I never thought it would that completed to use a programmer  Cry.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #23 - Mar 20th, 2014 at 11:46pm
Print Post  
Hi Gilles

Thanks for the update. It's been a long road but I am sure others will benefit from your painful research  Cry

1)
Yes that's a valid arduino error if the jungo drivers are installed. If you install the libusb drivers for your AVRISP Mkii then the Arduino Ide and "Tools>Visual Micro>Programmers" should work the same way but native Atmel Studio Device Programming will not work.

2)
My understanding is that as soon as you upload a sketch with a programmer the bootloader is wiped. So you don't need one if you use a programmer instead of usb for upload.

3)
If you subsequently re-apply the jungo drivers then native Atmel Studio will work again and the "Tools>Visual Micro>Atmel Programmers" will work. Because you are using custom sparkfun hardware you might not see the Visual Micro\Atmel programmers. They are a new feature in the beta, pls let me know if they are available for your hardware.
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #24 - Mar 21st, 2014 at 12:00am
Print Post  
If I get you right:

(1) I should remove the jungo driver
(2) Remove any libusb driver installed for the USBTinyISP programmer
(3) Install the libusb for AVRISP mkII (there seems to be only one kind of libusb driver ?!?)

Then I should be able to burn the bootloader with either Arduino's IDE and AtmelStudio+VisualMicro ?

I fear that next time I plug in the mkII, the jungo driver will be installed automatically.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #25 - Mar 21st, 2014 at 12:29am
Print Post  
Yes remove the jungo driver is safest, right click the avrisp mkII in device manager and select delete driver. You can probably also uninstall jungo from control panel but I have never done that.

You probably need to disconnect and reconnect the avrisp after deleting the driver. It should appear in device manager with ! symbol. Then you can install libusb.

You don't need to remove the existing libusb for the tiny. Run through the libusb wizard again, pick the avrisp mkII from the list and click install at the end.

  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #26 - Mar 21st, 2014 at 12:16pm
Print Post  
Tim,

still a nightmare  Embarrassed. I haven't succeded in getting rid of jungo. I deleted the mkII under jungo, and when I reconnect the mkII, the driver reinstalls. I found out here http://avrstudio5.wordpress.com/2011/12/02/setting-up-the-avr-jungo-usb-driver-m... instructions on how to remove jungo with wdreg (they6 use their own installer Angry.) I rebooted, connected the mkII and again the jungo re-installed. Since I am not able to get rid of it, I de-activated mkII under Jungo connectivity. No cure...

I tried burning the bootloader form the IDE after I removed mkII under jungo, and got:

Quote:
C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -Pusb -e -Uefuse:w:0xFD:m -Uhfuse:w:0xD4:m -Ulfuse:w:0xE2:m 

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb"

I tried with the mkII unplugged, and got the same.

So since I found out the libusb drivers for mkII, I tried to install: all I got is a cmd window that promptly disappears as it would not work.

You seems to say that the libusb installer would prompt for the programmer type. Where did you get that installer ?

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #27 - Mar 21st, 2014 at 12:30pm
Print Post  
Yes it will not work with Jungo installed.

It's easier than this to uninstall jungo. I have done it lots of times and never had to run a utility.

When you say you are deleting jungo what exactly are you doing in device manager to delete it?
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #28 - Mar 21st, 2014 at 12:38pm
Print Post  
From http://avrstudio5.wordpress.com/2011/12/02/setting-up-the-avr-jungo-usb-driver-m...

in a cmd prompt I typed "wdreg.exe –inf windrvr6.inf uninstall". Maybe it's not enough. How do you remove jungo ???

I read somewhere that in control pannel > Program and Features that there should be an entry7 called "AVR Jungo", haven't found it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #29 - Mar 21st, 2014 at 12:40pm
Print Post  
Go to device manager, right click the avr isp and selected uninstall/remove when prompted to "permanently delete" the driver click yes. Do the same for anything that says jungo.

That's it
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #30 - Mar 21st, 2014 at 2:46pm
Print Post  
Tim,

some news.

Robert tested on a different computer. He cleaned it up from AtmelStudio, installed Arduino's IDE and the libusb driver for mkII.

Uploading blink.ino wqith the mkII worked fine... but trying to burn the bootloader, he got the "no usb found" message. Looks like the IDE does not address the programmer the same way when uploading a program and burning the bootloader.

No one is going to uninstall AtmelStudio and VisualMicro from my computer  Wink.

About Jungo, when deleting it, the check box says "remove that driver" and permanently is not shown. But I have a French Windows, maybe some dropped the word when translating.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #31 - Mar 21st, 2014 at 2:51pm
Print Post  
Hi Gilles,

I was speaking from memory so the words might be slightly different.

What happens when trying to burn bootloader using the arduino ide?
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #32 - Mar 21st, 2014 at 3:05pm
Print Post  
The message is:

usbdev_open(): did not find any USB device "usb".

We get the same message when we try with the USBTinyUSP, for which the libusb driver is also installed.

But the IDE finds it (mkII) when it uploads a program.

I was able to try to burn the bootloader with the USBTinyISP. But there is a difference: I run Arduino 1.0.5 and Robert runs 1.0.5 r2 (added support Windows 8 and 8.1... and a bug ?).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #33 - Mar 21st, 2014 at 3:15pm
Print Post  
I don;t think it is anything to do with windows version. The arduino Ide just does what it does.
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #34 - Mar 21st, 2014 at 3:17pm
Print Post  
Not in Windows, but is it possible that in 1.0.5 r2, they introduced a bug ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #35 - Mar 21st, 2014 at 3:18pm
Print Post  
I doubt it but it is possible they are not very organized with their development. Do you get the same problem with Visual Micro?
« Last Edit: Mar 21st, 2014 at 3:19pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #36 - Mar 21st, 2014 at 3:56pm
Print Post  
VisualMicro is not on Robert computer, because when AtmelStudio is installed, Jungo comes in.

I tried something on my computer. I plugged in the mkII, the /!/!"""% jungo driver installed, then I right-clicked it, and replaced by the lisbusb driver. Unplugged the mkII, plusg it again, it's now under lib-usb win32 devices  Cheesy.

If I try to upload blink.ino in VisualStudio+VisualMicro, no error message but « Uploading to I/O board using 'avrispmkii' » till the ends of time.

AtmekStudio is not frozen, afterwards I ask to burn the bootloader and get:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at processing.app.debug.AvrdudeUploader.burnBootloader(Board boardPreferences, String programmerName)

I closed AtmelStudio, reloaded it and fisrt thing I asked to burn the bootloader: same message from .Net.

The I did another test, with IDE 1.0.5 and mkII:

  • I was able to upload blink.ino
  • Then I ask to burn the bootloader. No complain about the usb device... but got an error in verification:


Quote:
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xcf != 0x0f
avrdude: verification error; content mismatch
avrdude: Sent: . [11] . [01] . [01] 
avrdude: Recv: . [11] . [00] 

avrdude done.  Thank you.

This time right at first byte.

Looks like I went over my device driver/talking issues, but burning the bootloader fails for still unknown reasons  Sad.

And looks like it proves my point about  abug in 1.0.5 r2 ?!?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #37 - Mar 21st, 2014 at 3:59pm
Print Post  
Not sure, please remind me which board are you using
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #38 - Mar 21st, 2014 at 4:10pm
Print Post  
The SparkFun Pro Micro 3.3 v. You told me previously that the board definition is not per Arduino standard. When I tried first to burn the bootloader, VisualMicro told that the board does support bottloader burning - or something like this.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #39 - Mar 22nd, 2014 at 2:35am
Print Post  
Gilles,

Did you switch on the verbose output in both the arduino ide and visual micro? This will show exactly what each is doing.
« Last Edit: Mar 22nd, 2014 at 2:35am by Tim@Visual Micro »  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #40 - Mar 22nd, 2014 at 8:02pm
Print Post  
Tim,

burning the bootloader with Arduino's IDE, I set verbose mode and copied to a .txt file that I read afterwards:
  • Step 1, burning the fuses, everything is fine
  • Step 2, writing to the flash. The .hex file is 4,973 bytes long but avrdude reports that it's 261,842 bytes long (the size of the Flash memory)  Shocked. Then it writes the flash, can't tell how many bytes, but not that much. Then it reads to verify, all of the Flash memory (why ?), and verify is Ok.
  • Step 3, the lock bit. I see 'reading input file "0xCF" (what is that ?) and the verify fails.
But the bootloader is correctly burned. I know because I tried uploading my program to a second board I haven't burned the bootloader to, no success. I burned the bootloader and afterwards was able to upload the program.

SparkFun told me how they proceed to burn the bottloader. They use stk500.exe to burn the bootloader. Looking at the log I see this:
Quote:
Programmer Type : STK500V2

I know that stk500 is a protocol. Is STK500V2 a different protocol that stk500 (maybe slightly) that would trigger an error at the lock bit ? Do you what's the use of the lock bit ? Wiring talks about stk500 and stk500 v2 as two kinds of bootloader. It's really confusing  Embarrassed.

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #41 - Mar 22nd, 2014 at 8:08pm
Print Post  
Hi,

Thanks for the info. Can you please burn bootloader with the arduino ide and send me the .txt file. Then burn with visual micro with verbose on and email the output

I will look into the protocol. For pre-arduino 1.5.x systems I remember there is some hard coded check to switch from stk500 to v2. The check might fail in visual micro when using custom hardware, the verbose outputs will show me what is happening in both systems

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #42 - Mar 24th, 2014 at 4:21pm
Print Post  
Hi Gilles.

1)
Thanks for the email which says that the programmers menu is mostly disabled.

Please copy the programmers.txt from hardware\arduino\avr to your custom hardware folder then click tools>reload toolchains

2)

The file you sent contained two verbose outputs from bootloader upload shown below.

The first reported it worked correctly the 2nd report an error. the first did not contain a bootloader.hex file but the 2nd did.

In what order did you add these two outputs and from which ide's were they produced.

Thanks


Code
Select All
C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -Pusb -e -Uefuse:w:0xFD:m -Uhfuse:w:0xD4:m -Ulfuse:w:0xE2:m
 



Code
Select All
C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -Pusb -Uflash:w:C:\Program Files (x86)\Arduino 1.0\hardware\mega-pro-3.3V\bootloaders\Megapro3-3\MegaPro3.3V-8MHz-57600.hex:i -Ulock:w:0xCF:m
 



« Last Edit: Mar 24th, 2014 at 4:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #43 - Mar 24th, 2014 at 4:57pm
Print Post  
Hi thanks for the follow up email. I forgot there are two commands per bootloader burn which explains what I was looking at in your first email. Thanks

Code
Select All
"C:\Program Files (x86)\Arduino 1.0\hardware\tools\avr\bin/avrdude" -C"C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega2560 -cstk500v2 -Pusb -e -Ulock:w::m -Uefuse:w:0xFD:m -Uhfuse:w:0xD4:m -Ulfuse:w:0xE2:m
 



Code
Select All
"C:\Program Files (x86)\Arduino 1.0\hardware\tools\avr\bin/avrdude" -C"C:\Program Files (x86)\Arduino 1.0\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega2560 -cstk500v2 -Pusb -Uflash:w:"C:\Program Files (x86)\Arduino 1.0\hardware\mega-pro-3.3V\bootloaders\Megapro3-3\MegaPro3.3V-8MHz-57600.hex":i -Ulock:w:0xCF:m
 

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


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #44 - Mar 24th, 2014 at 5:00pm
Print Post  
the commands look identical to me? I will need to look at the arduino source to see if there is a pause Visual Micro is missing. 

So to be clear. The first email you sent was from the arduino ide and the second was visual micro?

Thanks
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: This board does not support the burning of a bootloader
Reply #45 - Mar 24th, 2014 at 5:19pm
Print Post  
Yes,

the second one is with VisualMicro (file name ends in VisualMicro).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12202
Location: United Kingdom
Joined: Apr 10th, 2010
Re: This board does not support the burning of a bootloader
Reply #46 - Mar 24th, 2014 at 5:22pm
Print Post  
Oh thanks didn't see the name on the end.
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint