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] 2 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) This board does not support the burning of a bootloader (Read 50497 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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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: 12163
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
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint