Site Tools


software:programming:atmel_ice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:programming:atmel_ice [2023/01/19 19:22] – created adminsoftware:programming:atmel_ice [2023/01/19 19:55] (current) admin
Line 1: Line 1:
-====== Using the Atmel-ICE ======+====== Flashing under linux with the Atmel-ICE ======
 To use the Atmel-ICE programmer on linux, make sure to add the following udev rule first: To use the Atmel-ICE programmer on linux, make sure to add the following udev rule first:
  
Line 35: Line 35:
 </code> </code>
  
-The pinout from the 6-pin IDC connector from the cable that came with the Atmel-ICE as seen from the bottom:+The pinout from the 6-pin IDC connector from the cable that came with the Atmel-ICE as seen from the top:
  
 <code> <code>
     +-----+-----+-----+     +-----+-----+-----+
-    !    4  !   !+    !    4  !   !
     +-----+-----+-----+     +-----+-----+-----+
-    !    3  !   !+    !    3  !   !
     +-----+-----+-----+     +-----+-----+-----+
           +++++++           +++++++
Line 57: Line 57:
  
 The Arduino micro cannot be powered from the Atmel-ICE. An external 5v power is required. The Arduino micro cannot be powered from the Atmel-ICE. An external 5v power is required.
 +
 +When connected it should look like the following picture:
 +
 +{{:software:programming:img_20230119_193955.jpg?direct&800|}}
 +==== flashing with avrdude ====
 +  "$HOME/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino18/bin/avrdude" -C"$HOME/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino18/etc/avrdude.conf" -v -patmega32u4 -catmelice_isp -Pusb -Uflash:w:/tmp/arduino_build_987637/Blink.ino.hex:i
 +
 +<code>
 +vrdude: Version 6.3-20201216
 +         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
 +         Copyright (c) 2007-2014 Joerg Wunsch
 +
 +         System wide configuration file is "$HOME/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino18/etc/avrdude.conf"
 +         User configuration file is "$HOME/.avrduderc"
 +         User configuration file does not exist or is not a regular file, skipping
 +
 +         Using Port                    : usb
 +         Using Programmer              : atmelice_isp
 +avrdude: usbdev_open(): Found Atmel-ICE CMSIS-DAP, serno: J42700064543
 +avrdude: max packet size expected 912, but found 512 due to EP 0x01's wMaxPacketSize
 +avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
 +         AVR Part                      : ATmega32U4
 +         Chip Erase delay              : 9000 us
 +         PAGEL                         : PD7
 +         BS2                           : PA0
 +         RESET disposition             : dedicated
 +         RETRY pulse                   : SCK
 +         serial program mode           : yes
 +         parallel program mode         : yes
 +         Timeout                       : 200
 +         StabDelay                     : 100
 +         CmdexeDelay                   : 25
 +         SyncLoops                     : 32
 +         ByteDelay                     : 0
 +         PollIndex                     : 3
 +         PollValue                     : 0x53
 +         Memory Detail                 :
 +
 +                                  Block Poll               Page                       Polled
 +           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
 +           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
 +           eeprom        65    20        0 no       1024    4      0  9000  9000 0x00 0x00
 +           flash         65       128    0 yes     32768  128    256  4500  4500 0x00 0x00
 +           lfuse          0            0 no          1    0      0  9000  9000 0x00 0x00
 +           hfuse          0            0 no          1    0      0  9000  9000 0x00 0x00
 +           efuse          0            0 no          1    0      0  9000  9000 0x00 0x00
 +           lock                      0 no          1    0      0  9000  9000 0x00 0x00
 +           calibration    0            0 no          1    0      0         0 0x00 0x00
 +           signature      0            0 no          3    0      0         0 0x00 0x00
 +
 +         Programmer Type : JTAG3_ISP
 +         Description     : Atmel-ICE (ARM/AVR) in ISP mode
 +         Vtarget         : 5.0 V
 +         SCK period      : 125.00 us
 +
 +avrdude: AVR device initialized and ready to accept instructions
 +
 +Reading | ################################################## | 100% 0.02s
 +
 +avrdude: Device signature = 0x1e9587 (probably m32u4)
 +avrdude: safemode: lfuse reads as FF
 +avrdude: safemode: hfuse reads as D8
 +avrdude: safemode: efuse reads as CB
 +avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
 +         To disable this feature, specify the -D option.
 +avrdude: erasing chip
 +avrdude: reading input file "/tmp/arduino_build_987637/Blink.ino.hex"
 +avrdude: writing flash (3958 bytes):
 +
 +Writing | ################################################## | 100% 16.21s
 +
 +avrdude: 3958 bytes of flash written
 +avrdude: verifying flash memory against /tmp/arduino_build_987637/Blink.ino.hex:
 +avrdude: load data flash data from input file /tmp/arduino_build_987637/Blink.ino.hex:
 +avrdude: input file /tmp/arduino_build_987637/Blink.ino.hex contains 3958 bytes
 +avrdude: reading on-chip flash data:
 +
 +Reading | ################################################## | 100% 16.24s
 +
 +avrdude: verifying ...
 +avrdude: 3958 bytes of flash verified
 +
 +avrdude: safemode: lfuse reads as FF
 +avrdude: safemode: hfuse reads as D8
 +avrdude: safemode: efuse reads as CB
 +avrdude: safemode: Fuses OK (E:CB, H:D8, L:FF)
 +
 +avrdude done.  Thank you.
 +</code>
software/programming/atmel_ice.1674152575.txt.gz · Last modified: 2023/01/19 19:22 by admin