AVR128DA48 Curiosity Nano and Avrdude

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

I just got myself an AVR128DA48 Curiosity Nano that I was hoping to use to help out with some development of the new AVR-DA/DB Arduino core DxCore.

 

The problem, and the reason why I'm posting here is that I'm not able to upload using Avrdude. It does work on my ATmega4809 Curiosity Nano, but this board probably has a slightly different nEDBG firmware.

 

Does anyone know what's wrong, and how I get this to work with Avrdude?

 

Here's the Avrdude configuration snipped for the Curiosity UPDI programmer

programmer
  id    = "curiosity_updi";
  desc  = "Curiosity in UPDI mode";
  type  = "jtagice3_updi";
  connection_type = usb;
  usbpid = 0x2175;
;

 

Here's the error message with -v

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Users/hans/Documents/Arduino/hardware/DxCore/megaavr/avrdude.conf"
         User configuration file is "/Users/hans/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : curiosity_updi
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
         AVR Part                      : AVR128DA48
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
           fuses          0     0     0    0 no          9    0      0     0     0 0x00 0x00
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          4    0      0     0     0 0x00 0x00
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
           flash          0     0     0    0 no     131072  512      0     0     0 0x00 0x00
           eeprom         0     0     0    0 no        512   32      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity in UPDI mode
         ICE hardware version: 0
         ICE firmware version: 1.17 (rel. 514)
         Serial number   : MCHP3280031800001457
         Vtarget         : 3.31 V
         JTAG clock megaAVR/program: 0 kHz
         JTAG clock megaAVR/debug:   0 kHz
         JTAG clock Xmega: 0 kHz
         PDI clock Xmega : 100 kHz

avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

 

 

And here's the error with -vvvv

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Users/hans/Documents/Arduino/hardware/DxCore/megaavr/avrdude.conf"
         User configuration file is "/Users/hans/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : curiosity_updi
avrdude: jtag3_open_updi()
avrdude: usbhid_open(): Probing for max. packet size
avrdude: usbhid_open(): Setting max_xfer from DAP_Info response to 64
avrdude: Found CMSIS-DAP compliant device, using EDBG protocol
avrdude: jtag3_getsync()

avrdude: jtag3_edbg_prepare()
avrdude: Sent: . [02] . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [02] . [01] @ [40] . [00] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_prepare(): connection status 0x01
avrdude: Sent: . [01] . [00] . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [01] . [00] @ [40] . [00] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Sending sign-on command: 
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: Sent: . [80] . [11] . [00] . [07] . [0e] . [00] . [00] . [00] . [01] . [10] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] @ [40] . [00] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [0b] . [00] B [42] T [54] . [c0] . [7f] . [00] . [00] " [22] E [45] H [48] . [e3] . [d8] . [e0] . [03] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [02] . [01] @ [40] . [00] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [00] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 0 (command_sequence == 0)

Raw message:
01  80  00  
[general] OK
         AVR Part                      : AVR128DA48
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses          0     0     0    0 no          9    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          4    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash          0     0     0    0 no     131072  512      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----
               LOAD_EXT_ADDR        31     VALUE      7      0
                                  30     VALUE      6      1
                                  29     VALUE      5      0
                                  28     VALUE      4      0
                                  27     VALUE      3      1
                                  26     VALUE      2      1
                                  25     VALUE      1      0
                                  24     VALUE      0      1
                                  23     VALUE      7      0
                                  22     VALUE      6      0
                                  21     VALUE      5      0
                                  20     VALUE      4      0
                                  19     VALUE      3      0
                                  18     VALUE      2      0
                                  17     VALUE      1      0
                                  16     VALUE      0      0
                                  15     VALUE      7      0
                                  14     VALUE      6      0
                                  13     VALUE      5      0
                                  12     VALUE      4      0
                                  11     VALUE      3      0
                                  10     VALUE      2      0
                                   9     VALUE      1      0
                                   8   ADDRESS     16      0
                                   7     VALUE      7      0
                                   6     VALUE      6      0
                                   5     VALUE      5      0
                                   4     VALUE      4      0
                                   3     VALUE      3      0
                                   2     VALUE      2      0
                                   1     VALUE      1      0
                                   0     VALUE      0      0
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom         0     0     0    0 no        512   32      0     0     0 0x00 0x00
             Memory Ops:
               Oeration     Inst Bit  Bit Type  Bitno  Value
               -----------  --------  --------  -----  -----

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity in UPDI mode
avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x01, section 0, parm 0) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [01] . [00] . [01] . [02] . [00] . [00] . [00] . [05] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [06] . [0e] . [00] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [0c] . [0e] . [01] . [00] . [01] . [84] . [01] . [00] . [01] . [11] . [02] . [02] . [00] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 1 (command_sequence == 1)

Raw message:
01  84  01  00  01  11  02  02  00  
[general] Data returned:
0x01 0x00 0x01 0x11 0x02 0x02 0x00 
avrdude: Sending get info (serial number) command: 
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: Sent: . [80] . [11] . [00] . [08] . [0e] . [00] . [02] . [00] . [00] . [00] . [00] . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [0c] . [0e] . [01] . [00] . [01] . [84] . [01] . [00] . [01] . [11] . [02] . [02] . [00] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [07] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] 
avrdude: Recv: . [81] . [11] . [00] . [1a] . [0e] . [02] . [00] . [00] . [81] . [00] M [4d] C [43] H [48] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 2 (command_sequence == 2)

Raw message:
00  81  00  4d  43  48  50  33  32  38  30  30  33  31  38  30 
30  30  30  31  34  35  37  
[info] Info returned:
\000MCHP3280031800001457
         ICE hardware version: 0
         ICE firmware version: 1.17 (rel. 514)
         Serial number   : MCHP3280031800001457
avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x01, section 1, parm 0) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [03] . [00] . [01] . [02] . [00] . [01] . [00] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [1a] . [0e] . [02] . [00] . [00] . [81] . [00] M [4d] C [43] H [48] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [0e] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [09] . [0e] . [03] . [00] . [01] . [84] . [01] . [f2] . [0c] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 3 (command_sequence == 3)

Raw message:
01  84  01  f2  0c  00  
[general] Data returned:
0x01 0xf2 0x0c 0x00 
         Vtarget         : 3.31 V
avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x12, section 1, parm 32) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [04] . [00] . [12] . [02] . [00] . [01]   [20] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [09] . [0e] . [03] . [00] . [01] . [84] . [01] . [f2] . [0c] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [09] . [0e] . [04] . [00] . [12] . [84] . [00] . [00] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 4 (command_sequence == 4)

Raw message:
12  84  00  00  00  00  
[AVR] Data returned:
0x00 0x00 0x00 0x00 
         JTAG clock megaAVR/program: 0 kHz
avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x12, section 1, parm 33) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [05] . [00] . [12] . [02] . [00] . [01] ! [21] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [09] . [0e] . [04] . [00] . [12] . [84] . [00] . [00] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [09] . [0e] . [05] . [00] . [12] . [84] . [00] . [00] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 5 (command_sequence == 5)

Raw message:
12  84  00  00  00  00  
[AVR] Data returned:
0x00 0x00 0x00 0x00 
         JTAG clock megaAVR/debug:   0 kHz
avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x12, section 1, parm 48) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [06] . [00] . [12] . [02] . [00] . [01] 0 [30] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [09] . [0e] . [05] . [00] . [12] . [84] . [00] . [00] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [0a] . [00] B [42] T [54] . [c0] . [7f] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [02] . [00] . [03] ' [27] . [00] . [00] . [00] . [00] . [00] . [00] . [03] . [1f] . [00] . [00] . [00] . [00] . [00] . [00] . [03] . [2e] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [09] . [0e] . [06] . [00] . [12] . [84] . [00] . [00] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 6 (command_sequence == 6)

Raw message:
12  84  00  00  00  00  
[AVR] Data returned:
0x00 0x00 0x00 0x00 
         JTAG clock Xmega: 0 kHz
avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x12, section 1, parm 49) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [07] . [00] . [12] . [02] . [00] . [01] 1 [31] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [09] . [0e] . [06] . [00] . [12] . [84] . [00] . [00] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [09] . [0e] . [07] . [00] . [12] . [84] . [00] d [64] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 7 (command_sequence == 7)

Raw message:
12  84  00  64  00  00  
[AVR] Data returned:
0x00 0x64 0x00 0x00 
         PDI clock Xmega : 100 kHz

avrdude: jtag3_getparm()
avrdude: Sending get parameter (scope 0x01, section 0, parm 1) command: 
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: Sent: . [80] . [11] . [00] . [0a] . [0e] . [00] . [08] . [00] . [01] . [02] . [00] . [00] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [09] . [0e] . [07] . [00] . [12] . [84] . [00] d [64] . [00] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [09] . [0e] . [08] . [00] . [01] . [84] . [01] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 8 (command_sequence == 8)

Raw message:
01  84  01  01  11  00  
[general] Data returned:
0x01 0x01 0x11 0x00 
avrdude: jtag3_setparm()
avrdude: Sending set parameter (scope 0x12, section 0, parm 0) command: 
avrdude: jtag3_edbg_send(): sending 7 bytes
avrdude: Sent: . [80] . [11] . [00] . [0b] . [0e] . [00] . [09] . [00] . [12] . [01] . [00] . [00] . [00] . [01] . [05] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [09] . [0e] . [08] . [00] . [01] . [84] . [01] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [07] 1 [31] . [00] . [00] . [00] . [00] . [00] . [00] . [07] . [1f] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [09] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 9 (command_sequence == 9)

Raw message:
12  80  00  
[AVR] OK
avrdude: jtag3_setparm()
avrdude: Sending set parameter (scope 0x12, section 0, parm 1) command: 
avrdude: jtag3_edbg_send(): sending 7 bytes
avrdude: Sent: . [80] . [11] . [00] . [0b] . [0e] . [00] . [0a] . [00] . [12] . [01] . [00] . [00] . [01] . [01] . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [06] . [0e] . [09] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [0a] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 10 (command_sequence == 10)

Raw message:
12  80  00  
[AVR] OK
avrdude: jtag3_setparm()
avrdude: Sending set parameter (scope 0x12, section 1, parm 0) command: 
avrdude: jtag3_edbg_send(): sending 7 bytes
avrdude: Sent: . [80] . [11] . [00] . [0b] . [0e] . [00] . [0b] . [00] . [12] . [01] . [00] . [01] . [00] . [01] . [08] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [06] . [0e] . [0a] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [0b] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 11 (command_sequence == 11)

Raw message:
12  80  00  
[AVR] OK
UPDI SET: 
	xd->prog_base=0 0
	xd->flash_page_size=0
	xd->eeprom_page_size=20
	xd->nvmctrl=0 10
	xd->ocd=80 f
avrdude: jtag3_setparm()
avrdude: Sending set parameter (scope 0x12, section 2, parm 0) command: 
avrdude: jtag3_edbg_send(): sending 14 bytes
avrdude: Sent: . [80] . [11] . [00] . [12] . [0e] . [00] . [0c] . [00] . [12] . [01] . [00] . [02] . [00] . [08] . [00] . [00] . [00]   [20] . [00] . [10] . [80] . [0f] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [06] . [0e] . [0b] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [0c] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 12 (command_sequence == 12)

Raw message:
12  80  00  
[AVR] OK
avrdude: Sending AVR sign-on command: 
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: Sent: . [80] . [11] . [00] . [08] . [0e] . [00] . [0d] . [00] . [12] . [10] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [06] . [0e] . [0c] . [00] . [12] . [80] . [00] . [01] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] T [54] & [26] D [44] . [05] . [fc] . [07] . [00]   [20] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [07] . [0e] . [0d] . [00] . [12] . [a0] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 13 (command_sequence == 13)

Raw message:
12  a0  00  33  
[AVR] FAILED, reason: 0x33
avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: Sending AVR sign-on command: 
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: Sent: . [80] . [11] . [00] . [08] . [0e] . [00] . [0e] . [00] . [12] . [10] . [00] . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [07] . [0e] . [0d] . [00] . [12] . [a0] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] T [54] & [26] D [44] . [05] . [fc] . [07] . [00]   [20] . [04] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [04] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [07] . [0e] . [0e] . [00] . [12] . [a0] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 14 (command_sequence == 14)

Raw message:
12  a0  00  33  
[AVR] FAILED, reason: 0x33
avrdude: bad response to AVR sign-on command: 0xa0
avrdude: retrying with external reset applied
avrdude: JTAGEN fuse disabled?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: jtag3_close()
avrdude: Sending AVR sign-off command: 
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: Sent: . [80] . [11] . [00] . [07] . [0e] . [00] . [0f] . [00] . [12] . [11] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [07] . [0e] . [0e] . [00] . [12] . [a0] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [0f] . [00] . [12] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 15 (command_sequence == 15)

Raw message:
12  80  00  
[AVR] OK
avrdude: Sending sign-off command: 
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: Sent: . [80] . [11] . [00] . [08] . [0e] . [00] . [10] . [00] . [01] . [11] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [80] . [01] . [00] . [06] . [0e] . [0f] . [00] . [12] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_edbg_recv():
avrdude: Sent: . [81] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [e0] . [08] . [00] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [81] . [11] . [00] . [06] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: jtag3_recv(): Got message seqno 16 (command_sequence == 16)

Raw message:
01  80  00  
[general] OK

avrdude: jtag3_edbg_signoff()
avrdude: Sent: . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [01] . [00] . [00] . [06] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Sent: . [03] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 
avrdude: Recv: . [03] . [00] . [00] . [06] . [0e] . [10] . [00] . [01] . [80] . [00] 3 [33] . [11] . [00] P [50] 3 [33] 2 [32] 8 [38] 0 [30] 0 [30] 3 [33] 1 [31] 8 [38] 0 [30] 0 [30] 0 [30] 0 [30] 1 [31] 4 [34] 5 [35] 7 [37] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 

avrdude done.  Thank you.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Well the error is:

 

Raw message:
12  a0  00  33
[AVR] FAILED, reason: 0x33

 

And the protocol documentation says:

 

// Failure response codes (RSP_FAILED)
enum Avr8GenericFailureCodes {
 AVR8_FAILURE_OK = 0x00, //! All OK
 AVR8_FAILURE_DW_PHY_ERROR = 0x10, //! debugWIRE physical error
 AVR8_FAILURE_JTAGM_INIT_ERROR = 0x11, //! JTAGM failed to initialise
 AVR8_FAILURE_JTAGM_ERROR = 0x12, //! JTAGM did something strange
 AVR8_FAILURE_JTAG_ERROR = 0x13, //! JTAG low level error
 AVR8_FAILURE_JTAGM_VERSION = 0x14, //! Unsupported version of JTAGM
 AVR8_FAILURE_JTAGM_TIMEOUT = 0x15, //! JTAG master timed out
 AVR8_FAILURE_JTAG_BIT_BANGER_TIMEOUT = 0x16, //! JTAG bit banger timed out
 AVR8_FAILURE_PARITY_ERROR = 0x17, //! Parity error in received data
 AVR8_FAILURE_EB_ERROR = 0x18, //! Did not receive EMPTY byte
 AVR8_FAILURE_PDI_TIMEOUT = 0x19, //! PDI physical timed out
 AVR8_FAILURE_COLLISION = 0x1A, //! Collision on physical level
 AVR8_FAILURE_PDI_ENABLE = 0x1B, //! PDI enable failed
 AVR8_FAILURE_NO_DEVICE_FOUND = 0x20, //! devices == 0!
 AVR8_FAILURE_CLOCK_ERROR = 0x21, //! Failure when increasing baud
 AVR8_FAILURE_NO_TARGET_POWER = 0x22, //! Target power not detected
 AVR8_FAILURE_NOT_ATTACHED = 0x23, //! Must run attach command first
 AVR8_FAILURE_DAISY_CHAIN_TOO_LONG = 0x24, //! Devices > 31
 AVR8_FAILURE_DAISY_CHAIN_CONFIG = 0x25, //! Configured device bits do not add up to detected bits
 AVR8_FAILURE_INVALID_PHYSICAL_STATE = 0x31, //! Physical not activated
 AVR8_FAILURE_ILLEGAL_STATE = 0x32, //! Illegal run / stopped state
 AVR8_FAILURE_INVALID_CONFIG = 0x33, //! Invalid config for activate phy
 AVR8_FAILURE_INVALID_MEMTYPE = 0x34, //! Not a valid memtype
 AVR8_FAILURE_INVALID_SIZE = 0x35, //! Too many or too few bytes
 AVR8_FAILURE_INVALID_ADDRESS = 0x36, //! Asked for a bad address
 AVR8_FAILURE_INVALID_ALIGNMENT = 0x37, //! Asked for badly aligned data
 AVR8_FAILURE_ILLEGAL_MEMORY_RANGE = 0x38, //! Address not within legal range
 AVR8_FAILURE_ILLEGAL_VALUE = 0x39, //! Illegal value given
 AVR8_FAILURE_ILLEGAL_ID = 0x3A, //! Illegal target ID
 AVR8_FAILURE_INVALID_CLOCK_SPEED = 0x3B, //! Clock value out of range
 AVR8_FAILURE_TIMEOUT = 0x3C, //! A timeout occurred
 AVR8_FAILURE_ILLEGAL_OCD_STATUS = 0x3D, //! Read an illegal OCD status
 AVR8_FAILURE_NVM_ENABLE = 0x40, //! NVM failed to be enabled
 AVR8_FAILURE_NVM_DISABLE = 0x41, //! NVM failed to be disabled
 AVR8_FAILURE_CS_ERROR = 0x42, //! Illegal control/status bits
 AVR8_FAILURE_CRC_FAILURE = 0x43, //! CRC mismatch
 AVR8_FAILURE_OCD_LOCKED = 0x44, //! Failed to enable OCD
 AVR8_FAILURE_NO_OCD_CONTROL = 0x50, //! Device is not under control
 AVR8_FAILURE_PC_READ_FAILED = 0x60, //! Error when reading PC
 AVR8_FAILURE_REGISTER_READ_FAILED = 0x61, //! Error when reading register
 AVR8_FAILURE_READ_ERROR = 0x70, //! Error while reading
 AVR8_FAILURE_WRITE_ERROR = 0x71, //! Error while writing
 AVR8_FAILURE_WRITE_TIMEOUT = 0x72, //! Timeout while reading
 AVR8_FAILURE_ILLEGAL_BREAKPOINT = 0x80, //! Invalid breakpoint configuration
 AVR8_FAILURE_TOO_MANY_BREAKPOINTS = 0x81, //! Not enough available resources
 AVR8_FAILURE_NOT_SUPPORTED = 0x90, //! This feature is not available
 AVR8_FAILURE_NOT_IMPLEMENTED = 0x91, //! Command has not been implemented
 AVR8_FAILURE_UNKNOWN = 0xFF //! Disaster.

 

Now what does "Invalid config for activate phy" means? No idea. This text appears only once in the documentation.

 

I'm guessing the nEDBG was not happy with the config set up by avrdude in previous commands and refused to connect to UPDI.

 

I will further guess that this is because the UPDI unit of the AVR-DA is different from the original (it supports 24 bit addressing), and the NVM unit is also different, in fact very different.

Maybe the nEDBG needs to be told about which UPDI/NVM is being used.

 

In other words, I'm guessing the problem is here:

UPDI SET:
	xd->prog_base=0 0
	xd->flash_page_size=0
	xd->eeprom_page_size=20
	xd->nvmctrl=0 10
	xd->ocd=80 f

These parameters must be wrong/incomplete somehow. I would try to sniff the correct ones from an AS7 programming session or something like that, and then avrdude needs to be modified, or the chip definitions for the AVR-DA have some kind of error.

 

edit:

in fact I see a serious problem here; the protocol document says:

 

 

however, the AVR-DA have flash page size of 512 (0x0200) bytes which doesn't fit in 1 byte, therefore avrdude truncated it to the low byte 0x00, which is all that fits the protocol! This is obviously invalid, pages can't be zero size, so nEDBG reported an error.

 

I would try to modify the chip definition in avrdude.conf with a fake page size, for example 128 bytes, just to see if this is the case.

 

 

Last Edited: Thu. Aug 27, 2020 - 11:04 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are completely correct in your analysis. The device context has been expanded with the following bytes to support AVR DA devices:

 

Addr Name Description Size
0x2C PROG_BASE_MSB Extends PROG_BASE 1 byte
0x2D FLASH_PAGES_BYTES_MSB Extends FLASH_PAGE_BYTES 1 byte
0x2E ADDRESS_SIZE 0x00 = 16bit mode, 0x01 = 24bit mode 1 byte

 

But for kits I think you also have to fill inn some of the bytes between addr 0x6 and 0x2C.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To program AVR128DA devices on kits I think you also have to fill inn these bytes in the UPDI context:

 

Addr Name Description Size
0x12 FLASH_BYTES Flash size in bytes 4 bytes
0x16 EEPROM_BYTES EEPROM size in bytes 2 bytes
0x18 USER_SIG_BYTES User signature size in bytes 2 bytes
0x20 FUSE_BYTES Fuse size in bytes 1 byte

 

The information is retrieved from the ATDF file.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, hopefully someone will add this extra context info to avrdude eventually. But first the protocol documentation needs to be updated by Microchip with current info.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Thanks to @je_ruud and his #10000 patch, it works now.

 

I have updated my avrdude fork GitHub repo with this patch and some other updates : https://github.com/doom-fr/avrdude

 

Now it works ! yes

avrdude -c atmelice_updi -p avr128da48 -e -U flash:w:test_app.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9708 (probably avr128da48)
avrdude: erasing chip
avrdude: reading input file "test_app.hex"
avrdude: input file test_app.hex auto detected as Intel Hex
avrdude: writing flash (4386 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 4386 bytes of flash written
avrdude: verifying flash memory against test_app.hex:
avrdude: load data flash data from input file test_app.hex:
avrdude: input file test_app.hex auto detected as Intel Hex
avrdude: input file test_app.hex contains 4386 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 4386 bytes of flash verified

avrdude: safemode: Fuses OK (E:FF, H:FF, L:FF)

avrdude done.  Thank you.

 

AVR inside

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, yes yes!! heart

Tusen takk @je_ruud!

 

All I have to do now is to make sure this patch is merged into the Avrdude binaries Arduino IDE and PlartformIO ships with, so it's available to as many users a possible, myself included.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That patch is Awesome news! Much thanks, @je_ruud!

 

https://savannah.nongnu.org/patch/?10000

 

I wonder how much effort it would take to add a direct to serial tool like how pyupdi does, or do I need to open my eyes more because I do not see the tool to do that. It's not that I don't like pyupdi, but the output is something I am concerned with when I show the programming process to people.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MCUdude wrote:

All I have to do now is to make sure this patch is merged into the Avrdude binaries Arduino IDE and PlartformIO ships with, so it's available to as many users a possible, myself included.

 

It has already been merged into Arduino avrdude repository : https://github.com/facchinm/avrd...

 

Should wait a little bit to get it in binaries ...

AVR inside