Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
interfaces:atmelice [2022/11/10 20:11]
darron [Ports]
interfaces:atmelice [2023/09/25 15:50] (current)
darron [Atmel ICE]
Line 8: Line 8:
 This device is used to program various Atmel designed processors. This device is used to program various Atmel designed processors.
  
-It has one serious fault, in the that sockets are wired back+It has one serious fault, in that the sockets are wired back
 to front but otherwise it works well. The dumb wiring is the to front but otherwise it works well. The dumb wiring is the
 main reason for this page. I got it working fine once and now main reason for this page. I got it working fine once and now
-forget how it it's broken so need to rediscover the stupidity+forget how it's broken so need to rediscover the stupidity
 yet again. yet again.
  
 I got the PCBA version of this device in 2019 for £47, they now I got the PCBA version of this device in 2019 for £47, they now
 cost £90 in 2022. Microchip outpace inflation like nobody else. cost £90 in 2022. Microchip outpace inflation like nobody else.
 +
 +===USB===
 +
 +Bus 001 Device 027: ID 03eb:2141 Atmel Corp. ICE debugger
 +
 ===Ports=== ===Ports===
  
Line 50: Line 55:
 different pins. different pins.
  
-SAM = JTAG standard and AVR = ATMEL non-standard.+SAM = ARM standard and AVR = ATMEL standard.
  
-PIN SAM    AVR    SWD(*) CORTEX(?)+PIN SAM    AVR    SWD(1) CORTEX(2)
   VTG    TCK    Vref   VCC/VREF   VTG    TCK    Vref   VCC/VREF
   TMS    GND    SWIO   SWDIO/TMS   TMS    GND    SWIO   SWDIO/TMS
Line 64: Line 69:
 10  SRST   GND    RST    nRESET 10  SRST   GND    RST    nRESET
  
-(*) Adafruit SWD adapter +(1) Adafruit SWD adapter 
-(?) Adafruit Cortex SWD adapter+(2) Adafruit Cortex SWD adapter
  
 JTAG ATMEGA2560 ATMEGA32 JTAG ATMEGA2560 ATMEGA32
Line 71: Line 76:
 GND  GND        GND GND  GND        GND
 TCK  PF4        PC2 TCK  PF4        PC2
-TDO  PF6        PC4 
 TMS  PF5        PC3 TMS  PF5        PC3
 +TDO  PF6        PC4
 TDI  PF7        PC5 TDI  PF7        PC5
  
Line 83: Line 88:
 SRST RESET SRST RESET
 </code> </code>
 +
 +
 +===Test===
 +
 +<code>
 +avrdude -v -B 5 -c atmelice -p ATMEGA32
 +
 +avrdude: Version 6.3-20171130
 +         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
 +         Copyright (c) 2007-2014 Joerg Wunsch
 +
 +         System wide configuration file is "/etc/avrdude.conf"
 +         User configuration file is "/home/darron/.avrduderc"
 +         User configuration file does not exist or is not a regular file, skipping
 +
 +         Using Port                    : usb
 +         Using Programmer              : atmelice
 +         Setting bit clk period        : 5.0
 +avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
 +         AVR Part                      : ATmega32
 +         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            10    64    0 no       1024    4      0  9000  9000 0xff 0xff
 +           flash         33        64    0 yes     32768  128    256  4500  4500 0xff 0xff
 +           lfuse          0            0 no          1    0      0  2000  2000 0x00 0x00
 +           hfuse          0            0 no          1    0      0  2000  2000 0x00 0x00
 +           lock                      0 no          1    0      0  2000  2000 0x00 0x00
 +           signature      0            0 no          3    0      0         0 0x00 0x00
 +           calibration    0            0 no          4    0      0         0 0x00 0x00
 +
 +         Programmer Type : JTAGICE3
 +         Description     : Atmel-ICE (ARM/AVR) in JTAG mode
 +         ICE hardware version: 0
 +         ICE firmware version: 1.42 (rel. 161)
 +         Serial number   : J41800108041
 +         Vtarget         : 4.52 V
 +         JTAG clock megaAVR/program: 200 kHz
 +         JTAG clock megaAVR/debug:   1000 kHz
 +         JTAG clock Xmega: 1000 kHz
 +         PDI clock Xmega : 1000 kHz
 +
 +avrdude: JTAG ID returned: 0x3f 0x20 0x50 0x89
 +avrdude: AVR device initialized and ready to accept instructions
 +
 +Reading | ################################################## | 100% 0.08s
 +
 +avrdude: Device signature = 0x1e9502 (probably m32)
 +avrdude: safemode: lfuse reads as FF
 +avrdude: safemode: hfuse reads as 19
 +
 +avrdude: safemode: lfuse reads as FF
 +avrdude: safemode: hfuse reads as 19
 +avrdude: safemode: Fuses OK (E:FF, H:19, L:FF)
 +
 +avrdude done.  Thank you.
 +</code>
 +===Resources===
 +
 +[[https://www.microchip.com/en-us/development-tool/atatmel-ice|Product page]]
 +
 +[[https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-ICE_UserGuide.pdf|User guide]]