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
Hot Topic (More than 8 Replies) Error burning bootloader (Read 4224 times)
GJM
Newbies
*
Offline


Posts: 5
Joined: Jul 20th, 2018
Error burning bootloader
Jul 20th, 2018 at 9:39am
Print Post  
I'm using vMicro 1807.8 with Visual Studio 2017. I'm also using MiniCore to give me greater options with fuses/bootloader.

I'm using a PICKit2 to program fuses and the bootloader, and I've added suitable lines to the programmers.txt file to support this. Under the Arduino IDE, this combination works correctly and results in the fuses and bootloader being programmed as expected. 

However, under vMicro, this fails, as follows:
Code
Select All
Burning bootloader to board 'ATmega328' using 'PICkit 2'
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Burn bootloader failed with an exception
	The uploader process failed

Error while burning bootloader.
Burn failed
         Copyright (c) 2007-2014 Joerg Wunsch
         System wide configuration file is rdude.conf"
avrdude: AVR Part "{build.mcu}" not found. 



The additional lines added to programmers.txt are:
Code
Select All
pickit2.name=PICkit 2
pickit2.communication=usb
pickit2.protocol=pickit2
pickit2.program.protocol=pickit2
pickit2.program.tool=avrdude
pickit2.program.extra_params= 



While I can use the Arduino IDE to burn fuses/bootloader, I'd rather be able to do that in vMicro.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning bootloader
Reply #1 - Jul 20th, 2018 at 10:00am
Print Post  
Please try the latest release from here https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

If still an issue then let me know

Thanks
  
Back to top
IP Logged
 
GJM
Newbies
*
Offline


Posts: 5
Joined: Jul 20th, 2018
Re: Error burning bootloader
Reply #2 - Jul 20th, 2018 at 11:03am
Print Post  
That'll serve me right - I'd assumed that checking for updates in VS meant I'd be on the most up to date version.

I've installed 1807.18.6, but I'm seeing the same error still.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning bootloader
Reply #3 - Jul 20th, 2018 at 11:05am
Print Post  
You checked the right place. The vs gallery is the main place the other location is for minor updates.

There have been a few fixes for programmers which is why I suggested to try it.

I will test over next few days

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning bootloader
Reply #4 - Jul 21st, 2018 at 10:34am
Print Post  
Which programmers.txt did you update?

I created a programmers.txt alongside the minicore boards.txt and it seems to work.
« Last Edit: Jul 21st, 2018 at 10:40am by Tim@Visual Micro »  
Back to top
IP Logged
 
GJM
Newbies
*
Offline


Posts: 5
Joined: Jul 20th, 2018
Re: Error burning bootloader
Reply #5 - Jul 22nd, 2018 at 7:06am
Print Post  
Ah, interesting. I edited the programmers.txt in the core arduino files - %ProgramFiles(x86)%\Arduino\hardware\arduino\avr\programmers.txt
  
Back to top
 
IP Logged
 
GJM
Newbies
*
Offline


Posts: 5
Joined: Jul 20th, 2018
Re: Error burning bootloader
Reply #6 - Jul 22nd, 2018 at 7:58am
Print Post  
Ok, now I'm even more confused. 
  • I removed the settings from the default Arduino programmers.txt.
  • I rescanned toolchain and libraries to ensure the change had taken effect - the PICKit2 entry disappeared, and I selected a different programmer.
  • I added them to a programmers.txt in the MiniCore directory.
  • I rescanned toolchain and libraries to ensure the change had taken effect. I reselected the PICKit2 programmer.


After all this, the Arduino IDE was still happy to burn the bootloader, but I run into the same issues with vMicro.

In case it is useful, this is how I currently have the options set for MiniCore:
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error burning bootloader
Reply #7 - Jul 26th, 2018 at 11:04pm
Print Post  
Sorry I missed this post.

Is the error the same?

Code
Select All
 "{build.mcu}" not found.  


  
Back to top
IP Logged
 
GJM
Newbies
*
Offline


Posts: 5
Joined: Jul 20th, 2018
Re: Error burning bootloader
Reply #8 - Aug 1st, 2018 at 10:21am
Print Post  
I managed to miss your post here. I've just attempted to burn the bootloader again for MiniCore and had a 100% success rate regardless of options. I wish I knew what caused it to fail previously, as I dislike not being able to reproduce problems.

Thank you for your assistance with this.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint