Atmel ICE debugger with Arduino IDE

Good morning, everybody,

I am trying to load the software for Arduino DUE using the Atmel ICE programmer but there is no way to show the IDE the usb port on which the Atmel programmer is connected. If I use the AS7 development environment I can see the programmer and use it. I use the latest version of IDE 1.8.12, he keeps telling me that I didn't select the programmer, while I selected Atmel SAM-ICE. This is the output of the IDE
log file

Sketch uses 44464 bytes (8%) of program storage space. Maximum is 524288 bytes.
processing.app.debug.RunnerException: Please select a programmer from Tools->Programmer menu
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:298)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:90)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2047)
at java.lang.Thread.run(Thread.java:748)
Please select a programmer from Tools->Programme

:slight_smile:

MARCO_ITALY:
I am trying to load the software for Arduino DUE using the Atmel ICE programmer

Why do you want to do that?

MARCO_ITALY:
he keeps telling me that I didn't select the programmer, while I selected Atmel SAM-ICE.

The reason for this is the Arduino IDE only supports using programmers with boards of the architecture of the platform that contains the programmer definition. The "Atmel SAM-ICE" programmer you selected from the Arduino IDE's Tools > Programmer menu is from the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform, which uses the samd architecture. The Arduino Due is part of the "Arduino ARM (32-bits) Boards" platform, which uses the sam architecture.

This sort of confusion is prevented in Arduino IDE 1.8.13 by the change to only displaying the programmers of the currently selected board's platform in the Tools > Programmer menu.

I'd guess you could add an "Atmel SAM-ICE" programmer definition to the "Arduino ARM (32-bits) Boards" platform. I'm not sure why Arduino didn't define any programmers for that platform. I can provide you instructions for how to copy paste a programmer definition into the platform, but I might be leading you astray. I don't own an Atmel SAM-ICE programmer to be able to test my advice in advance. So you are probably better off either waiting for someone else here who knows more about this topic to comment, or else do some searching to see if there are some existing instructions about setting up a programmer for the Due.

Hi Pert, thanks a lot for your pertinent answer. The answer at your question is : I'm testing the Atmel ICE with Arduino DUE. :slight_smile:

Good enough for me.

Well, if you don't get any solutions, let me know and I'll try to help you out.