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 Atmel ICE Burn Bootloader (Read 9522 times)
daveb
Newbies
*
Offline


Posts: 2
Joined: Dec 15th, 2013
Atmel ICE Burn Bootloader
Sep 3rd, 2014 at 12:57am
Print Post  
Hi

I can use the Atmel ICE to program a sketch from Visual Micro/Atmel Studio 6.2, but if I try to "Burn Bootloader" I get the following error:

Burning bootloader to board 'Arduino Nano w/ ATmega328' using 'Atmel Studio ATMEL-ICE (ISP)'
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude "-CC:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -c{protocol} -t atmelice -i ISP -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m
System.Exception: Burn bootloader failed with an exception ---> processing.app.debug.RunnerException: 
avrdude: Version 6.0.1, compiled on Apr  3 2014 at 23:12:16
         Copyright (c) 2000-2005 Brian Dean, 
         Copyright (c) 2007-2009 Joerg Wunsch

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

avrdude: Can't find programmer id "protocol"

Valid programmers are:
  ...
  atmelice         = Atmel-ICE (ARM/AVR) in JTAG mode [C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf:971]
  atmelice_dw      = Atmel-ICE (ARM/AVR) in debugWIRE mode [C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf:987]
  atmelice_isp     = Atmel-ICE (ARM/AVR) in ISP mode [C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf:995]
  atmelice_pdi     = Atmel-ICE (ARM/AVR) in PDI mode [C:\Program Files (x86)\Arduino/hardware/tools/avr/etc/avrdude.conf:979]
  ...
     
   at processing.app.debug.Uploader.executeUploadCommand(ICollection commandDownloader, String workingPath)
   at processing.app.debug.Uploader.executeUploadCommand(ICollection commandDownloader)
   at processing.app.debug.AvrdudeUploader.burnBootloader15(MCUPreferencesMap programmerPrefs, String programmer)
   --- End of inner exception stack trace ---
   at processing.app.debug.AvrdudeUploader.burnBootloader15(MCUPreferencesMap programmerPrefs, String programmer)
   at processing.app.debug.AvrdudeUploader.burnBootloader(Board boardPreferences, String programmerName)


I tried adding the Atmel ICE to avrdude.conf but it did not help:

programmer
  id    = "atmelice";
  desc  = "Atmel-ICE (ARM/AVR) in JTAG mode";
  type  = "jtagice3_isp";
  connection_type = usb;
  usbpid = 0x2141;
;

programmer
  id    = "atmelice_pdi";
  desc  = "Atmel-ICE (ARM/AVR) in PDI mode";
  type  = "jtagice3_pdi";
  connection_type = usb;
  usbpid = 0x2141;
;

programmer
  id    = "atmelice_dw";
  desc  = "Atmel-ICE (ARM/AVR) in debugWIRE mode";
  type  = "jtagice3_dw";
  connection_type = usb;
  usbpid = 0x2141;
;

programmer
  id    = "atmelice_isp";
  desc  = "Atmel-ICE (ARM/AVR) in ISP mode";
  type  = "jtagice3_isp";
  connection_type = usb;
  usbpid = 0x2141;
;


Any ideas?

Thanks
dboe

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE Burn Bootloader
Reply #1 - Sep 4th, 2014 at 9:45am
Print Post  
Hi Dave,

The ICE stuff is new and I only had time to put in the upload for the last release.

We just need to find out the commands the ICE requires to burn a bootloader.

Once we have the commands it might be possible to alter the config files to support it or I can issue a new build.

If you can find the commands then great otherwise I will put it on the list and try to find time before the next release

Thanks
  
Back to top
IP Logged
 
daveb
Newbies
*
Offline


Posts: 2
Joined: Dec 15th, 2013
Re: Atmel ICE Burn Bootloader
Reply #2 - Sep 4th, 2014 at 12:02pm
Print Post  
No luck on my end. I have tried different versions of avrdude, etc. stumped..

I keep getting "usbdev_open(): did not find any USB device "usb" (0x03eb:0x2141)" from the command line and everything I read out there has no fix.

Thanks, I await your expertise on this.
Dave
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Atmel ICE Burn Bootloader
Reply #3 - Sep 4th, 2014 at 12:06pm
Print Post  
Hi,

The error is confusing because it is trying to use the standard arduino system which in your arduino ide does not support ICE.

You need to use the atprogram.exe command line utility installed with atmel studio instead of avrdude.

Having said this I might have read that the latest Arduino IDE now supports the ICE (avr only version). If this is true then it should appear as a valid programmer on the Visual Micro menus but the name of the programmer will not contain the text "atmel"

So there are two things to explore if you have time.
  
Back to top
IP Logged
 
Nick Johnson
Newbies
*
Offline


Posts: 9
Joined: Jan 14th, 2013
Re: Atmel ICE Burn Bootloader
Reply #4 - Oct 29th, 2015 at 12:16pm
Print Post  
Hi
Did you make any progress on this, I'm getting the same error in AS 7.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint