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 53471 times)
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 2 [3] 
Send TopicPrint