-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Unable to program AVR chips via Atmel ICE with IDE 1.6.7 #4368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just to avoid duplicate effort I thought I should mention that this issue was also posted to the Arduino forum where I've attempted to provide an answer. http://forum.arduino.cc/index.php?topic=368886 |
Note that avrdude 6.0.1 is the current version supplied with the IDE and this does not support the Atmel-ICE. As such the Atmel ICE can not be used to program or burn bootloaders to AVR chips with the IDE. You can try to use avrdude 6.1 or 6.2. Alternatively you can use Atmel Studio or the "atprogram" utility that comes with it. See arduino/toolchain-avr#17 for more information |
Thanks everyone, as reported on arduino/toolchain-avr#17 avrdude 6.1 works great with atmel-ice. The menu entry needs to be created for AVR platform (the one you are referring to is bundled with SAMD (Zero) core. |
As far as I am concerned this never should have made it into the release if it doesn't work. How is this not an embarrassment? |
Hello everyone, Thank you |
Tada! #5880 |
Tada! is nice, knowing that things are moving. However, I just upgraded to arduino ide 1.8.2. And guess what? Still no atmel-ice in the list! Did I overlook something? What can I do next? |
@xenomorf I bet you overlooked in fact 🙂 You can find it under |
Hi,
I just upgraded to arduino ide 1.8.2, and I’m using MacOS sierra. Here is in attach my programmers.txt file in attach. About half a year ago, I introduced it manually, and then it appeared in the list. However, after the following upgrade, it was gone from the list, but still in the .txt file. It looks like it wasn’t touched by the recent upgrade of 1.8.2 (nightly build). So, what do you think I’m in? Shit…?
Kind regards and thanks for replying so quickly,
Francisco Ramirez
```
atmelice_isp.name=ATMEL-ICE (ISP)
atmelice_isp.program.tool=avrdude
atmelice_isp.program.extra_params=
atmelice_isp.communication=usb
atmelice_isp.protocol=atmelice_isp
avrisp.name=AVR ISP
avrisp.communication=serial
avrisp.protocol=stk500v1
avrisp.program.protocol=stk500v1
avrisp.program.tool=avrdude
avrisp.program.extra_params=-P{serial.port}
avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2
avrispmkii.program.protocol=stk500v2
avrispmkii.program.tool=avrdude
avrispmkii.program.extra_params=-Pusb
usbtinyisp.name=USBtinyISP
usbtinyisp.protocol=usbtiny
usbtinyisp.program.tool=avrdude
usbtinyisp.program.extra_params=
arduinoisp.name=ArduinoISP
arduinoisp.protocol=arduinoisp
arduinoisp.program.tool=avrdude
arduinoisp.program.extra_params=
arduinoisporg.name=ArduinoISP.org
arduinoisporg.protocol=arduinoisporg
arduinoisporg.program.tool=avrdude
arduinoisporg.program.extra_params=
usbasp.name=USBasp
usbasp.communication=usb
usbasp.protocol=usbasp
usbasp.program.protocol=usbasp
usbasp.program.tool=avrdude
usbasp.program.extra_params=-Pusb
parallel.name=Parallel Programmer
parallel.protocol=dapa
parallel.force=true
# parallel.delay=200
parallel.program.tool=avrdude
parallel.program.extra_params=-F
arduinoasisp.name=Arduino as ISP
arduinoasisp.communication=serial
arduinoasisp.protocol=stk500v1
arduinoasisp.speed=19200
arduinoasisp.program.protocol=stk500v1
arduinoasisp.program.speed=19200
arduinoasisp.program.tool=avrdude
arduinoasisp.program.extra_params=-P{serial.port} -b{program.speed}
usbGemma.name=Arduino Gemma
usbGemma.protocol=arduinogemma
usbGemma.program.tool=avrdude
usbGemma.program.extra_params=
usbGemma.config.path={runtime.platform.path}/bootloaders/gemma/avrdude.conf
# STK500 firmware version v1 and v2 use different serial protocols.
# Using the 'stk500' protocol tells avrdude to try and autodetect the
# firmware version. If this leads to problems, we might need to add
# stk500v1 and stk500v2 entries to allow explicitely selecting the
# firmware version.
stk500.name=Atmel STK500 development board
stk500.communication=serial
stk500.protocol=stk500
stk500.program.protocol=stk500
stk500.program.tool=avrdude
stk500.program.extra_params=-P{serial.port}
## Notes about Dangerous Prototypes Bus Pirate as ISP
## Bus Pirate V3 need Firmware v5.10 or later
## Bus Pirate V4 need Firmware v6.3-r2151 or later
## Could happen that BP does not have enough current to power an Arduino board
## through the ICSP connector. In this case disconnect the +Vcc from ICSP connector
## and power Arduino board in the normal way.
buspirate.name=BusPirate as ISP
buspirate.communication=serial
buspirate.protocol=buspirate
buspirate.program.protocol=buspirate
buspirate.program.tool=avrdude
buspirate.program.extra_params=-P{serial.port}
```
|
I think I'm getting it. I just checked the content of 1.8.2 nightly and the
So your txt is not matching at all. Could you open |
Thanks for assistance, but at the board manager’s (see bottom of mail) core « Arduino AVR boards » says : INSTALLED. And I don’t see a way to uninstall… clicking around, banging, bad language , … nothing helps. Of course I can still select a previous version, but probably one without ATMEL-ICE stuff…
Kind regards,
Arduino AVR Boards by Arduino version 1.6.17 INSTALLED
Boards included in this package:
Arduino Yún, Arduino/Genuino Uno, Arduino Uno WiFi, Arduino Diecimila, Arduino Nano, Arduino/Genuino Mega, Arduino MegaADK, Arduino Leonardo, Arduino Leonardo Ethernet, Arduino/Genuino Micro, Arduino Esplora, Arduino Mini, Arduino Ethernet, Arduino Fio, Arduino BT, Arduino LilyPadUS
|
This is strange, because the expected output using the nighlty is
Note the Built-in extra string which indicates that the IDE is using the nighly version for the AVR core too. Anyway, nevermind, we'll release the updated IDE soon so the core will be officially released and any problem will be gone 😄 |
Dear Martino,
I just installed a new « hourly build » and this time I could update the AVR core. I just did that, and it worked. The ATMEL-ICE is mentioned in the list of programmers.
Thanks a lot for your help,
|
I can see it in the list of programmers, I selected it, but I get this error when trying to upload the sketch: Arduino:1.8.2 (Windows 10), Scheda:"Arduino Due (Programming Port)"
|
@duronebis you are selecting "Arduino Due" as board, while you should select an AVR board and select ATMEL-ICE (AVR) as programmer |
So you say that Atmel-ICE in Arduino Ide doesn't work with Arduino Due (Sam) as it does in Atmel Studio? |
The SAM core doesn't support any programmer at the moment (see https://github.com/arduino/ArduinoCore-sam/blob/master/programmers.txt ) but feel free to add a Pull request to support Atmel ICE on SAM repository |
In order to get the Arduino IDE to successfully program an AVR (in my case ATmega328p), I needed to use the install-filter-win.exe on all 3 drivers: input device, data gateway, and composite with hex Id's: 03EB and 2141 as described here: https://www.avrfreaks.net/comment/1740521#comment-1740521 Arduini IDE 1.8.5 and Board Manage: Arduino AVR Boards 1.6.21 |
Hi Martino, I use the latest IDE 1.8.6 and I do not see where I can update the programmers. |
@Simon72 , you need to select |
Grazie Martino!
Verifying the card driver, however, I find that the VID 0x03eb and PID 0x2140 are correct. |
Doesn't this need libusb drivers installed on Windows? And some driver selection thingamabob to make sure that libusb can claim the device, rather than some other driver? (The latter might only be the case when Atmel Studio has been installed at some point, which also installs drivers for these devices) |
@Simon72 the output should read something like:
Are you sure you selected |
Sorry Martino I thought it was the same but here is the result with Atmel-ICE AVR:
|
Ok, it looks like you should try @matthijskooijman suggestion; try changing the driver in use for the ICE to libusb using Zadig. Please note than, once you switch to libusb-based drivers, ATmel studio may not recognize the programmer anymore (until you switch back to the original driver) |
@Simon72, you probably need to change it for both. |
@matthijskooijman Thanks Matthijs, |
@Simon72 AFAIU you must use Zadig to switch the driver whenever you switch from the Arduino IDE / avrdude to Atmel Studio and back. |
@matthijskooijman On AVRfreak it's speak of filter libusb for automatic switching to different editors |
@Simon72, I don't see where they talk about automatic switching there. I think they talk about libusb filtering of devices, which (I think) only means that other drivers are prevented from talking to the devices, so libusb can claim them when needed. They do suggest that there are more USB devices to be filtered, but since these extra devices do not show up in your list, I suspect Zadig already handles this (they use a different libusb filter program, which offer more fine grained control, but I don't hink you need that). |
@matthijskooijman i think that you have reason, I test Zadig |
I managed with Zadig to select a driver that allowed Avrdude to place the bootloader, the problem is to go back ... now AS7 fails to use the ICE |
Seems you can revert using the device manager: https://github.com/pbatard/libwdi/wiki/FAQ#help-zadig-replaced-the-driver-for-the-wrong-device-how-do-i-restore-it |
I've been unable to successfully program/burn a boot loader through the IDE (1.6.7) using an Atmel ICE. I've got the cable properly connected to the AVR output on the debugger/programmer and connect properly to ISP. The MCU is an Atmega328P-AU.
The main issue is as soon as I select the Atmel-ICE for the programmer and I select the Arduino Pro, due to using the same MCU and general design (my own PCB), I get the following error when I try to program. "Please select a programmer from Tools->Programmer menu". I have verified this error in both OS X & Windows 10. Both OS's recognize I have the Atmel ICE connected via the USB port.
Does the Arduino IDE actually support the Atmel ICE programmer?
The text was updated successfully, but these errors were encountered: