Skip to content
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

Using an old "avrdude.conf" can result in a segmentation fault. #1544

Closed
askn37 opened this issue Oct 29, 2023 · 60 comments · Fixed by #1538
Closed

Using an old "avrdude.conf" can result in a segmentation fault. #1544

askn37 opened this issue Oct 29, 2023 · 60 comments · Fixed by #1538
Assignees
Labels
bug Something isn't working

Comments

@askn37
Copy link
Contributor

askn37 commented Oct 29, 2023

As the title suggests, after one hardship, another one.

This issue currently occurs when the following combinations are met:

  • git main
  • Use "jtagmkii_updi". (Is it just jtag2updi?)
  • Target AVR_Dx. (probably all known models)
  • "memory "io"" directive is not written.

The issue does not occur in the currently released 7.2.

Discovered OS:

% uname -a
Darwin alicia.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103 arm64

A case where a problem occurs.

% /Users/askn/Collaborator/avrdude_pr/build_darwin/src/avrdude -C avrdude.conf.fail -p avr32da32 -c jtag2updi -P /dev/cu.usbmodem2301 -qvvvv

avrdude: Version 7.2-20231029 (4be0f37)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /Users/askn/Arduino/UPDI_TEST/avrdude.conf.fail
         User configuration file is /Users/askn/.avrduderc
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem2301
         Using Programmer              : jtag2updi
avrdude: jtagmkII_open_pdi()
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync() attempt 1 of 10: sending sign-on command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97] 
avrdude: jtagmkII_recv():
avrdude: ser_recv(): programmer is not responding
avrdude: jtagmkII_recv(): timeout receiving packet
avrdude jtagmkII_getsync() [jtagmkII.c:686] warning: attempt 1 of 10: sign-on command: status -1
avrdude: jtagmkII_getsync() attempt 2 of 10: sending sign-on command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [1d] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00] 
avrdude: recv: < [3c] 
avrdude: recv: . [7f] 

avrdude: jtagmkII_recv(): got message seqno 0 (command_sequence == 0)
avrdude: recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00] 

Raw message:
0x86 0x01 0x01 0x00 0x06 0x01 0x01 0x00 0x06 0x01 0x00 0x00 0x00 0x00 0x00 0x00
0x4a 0x54 0x41 0x47 0x49 0x43 0x45 0x20 0x6d 0x6b 0x49 0x49 0x00 
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
Serial number:                   00:00:00:00:00:00
Device ID:                       JTAGICE mkII
avrdude: jtagmkII_getsync(): using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x03, 1 bytes): 
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [cd] 
avrdude: recv: . [83] 

avrdude: jtagmkII_recv(): got message seqno 1 (command_sequence == 1)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_getsync(): sending get sync command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . [0f] . [e2] u [75] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [02] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [1d] 
avrdude: recv: . [09] 

avrdude: jtagmkII_recv(): got message seqno 2 (command_sequence == 2)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

         AVR Part                      : AVR32DA32
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       codesize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootsize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         16   16      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        512    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      32768  512      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_UPDI
         Description     : JTAGv2 to UPDI bridge
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01): 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [03] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [01] . [d3] . [99] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [03] 
avrdude: recv: . [00] 
avrdude: recv: . [03] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [81] . [01] . [01] 
avrdude: recv: . [ed] 
avrdude: recv: . [cd] 

avrdude: jtagmkII_recv(): got message seqno 3 (command_sequence == 3)
avrdude: recv: . [81] . [01] . [01] 

Raw message:
0x81 0x01 0x01 
parameter values:
0x01  0x01  

avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02): 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [02] . [aa] B [42] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [04] 
avrdude: recv: . [00] 
avrdude: recv: . [05] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [81] . [00] . [06] . [00] . [06] 
avrdude: recv: . [ca] 
avrdude: recv: . [db] 

avrdude: jtagmkII_recv(): got message seqno 4 (command_sequence == 4)
avrdude: recv: . [81] . [00] . [06] . [00] . [06] 

Raw message:
0x81 0x00 0x06 0x00 0x06 
parameter values:
0x00  0x06  0x00  0x06  

         M_MCU HW version: 1
         M_MCU FW version: 6.00
         S_MCU HW version: 1
         S_MCU FW version: 6.00
         Serial number   : 00:00:00:00:00:00
avrdude: jtagmkII_initialize(): trying to set baudrate to 115200
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x05, 1 bytes): 
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: send: . [1b] . [05] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [05] . [07] . [e1] . [c4] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [05] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [13] 
avrdude: recv: . [95] 

avrdude: jtagmkII_recv(): got message seqno 5 (command_sequence == 5)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command: 
avrdude: jtagmkII_send(): sending 299 bytes
avrdude: send: . [1b] . [06] . [00] + [2b] . [01] . [00] . [00] . [0e] . [0c] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [02] . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] ? [3f] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] ? [3f] . [00] p [70] . [cb] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [06] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [c3] 
avrdude: recv: . [1f] 

avrdude: jtagmkII_recv(): got message seqno 6 (command_sequence == 6)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_reset(): sending reset command: 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [07] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] . [f6] h [68] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [07] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: | [7c] 
avrdude: recv: . [9e] 

avrdude: jtagmkII_recv(): got message seqno 7 (command_sequence == 7)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

zsh: segmentation fault  /Users/askn/Collaborator/avrdude_pr/build_darwin/src/avrdude -C  -p avr32da32

For normal operation

% /Users/askn/Collaborator/avrdude_pr/build_darwin/src/avrdude -C avrdude.conf.good -p avr32da32 -c jtag2updi -P /dev/cu.usbmodem2301 -qvvvv

avrdude: Version 7.2-20231029 (4be0f37)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /Users/askn/Arduino/UPDI_TEST/avrdude.conf.good
         User configuration file is /Users/askn/.avrduderc
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem2301
         Using Programmer              : jtag2updi
avrdude: jtagmkII_open_pdi()
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync() attempt 1 of 10: sending sign-on command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97] 
avrdude: jtagmkII_recv():
avrdude: ser_recv(): programmer is not responding
avrdude: jtagmkII_recv(): timeout receiving packet
avrdude jtagmkII_getsync() [jtagmkII.c:686] warning: attempt 1 of 10: sign-on command: status -1
avrdude: jtagmkII_getsync() attempt 2 of 10: sending sign-on command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [1d] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00] 
avrdude: recv: < [3c] 
avrdude: recv: . [7f] 

avrdude: jtagmkII_recv(): got message seqno 0 (command_sequence == 0)
avrdude: recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00] 

Raw message:
0x86 0x01 0x01 0x00 0x06 0x01 0x01 0x00 0x06 0x01 0x00 0x00 0x00 0x00 0x00 0x00
0x4a 0x54 0x41 0x47 0x49 0x43 0x45 0x20 0x6d 0x6b 0x49 0x49 0x00 
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
Serial number:                   00:00:00:00:00:00
Device ID:                       JTAGICE mkII
avrdude: jtagmkII_getsync(): using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x03, 1 bytes): 
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [cd] 
avrdude: recv: . [83] 

avrdude: jtagmkII_recv(): got message seqno 1 (command_sequence == 1)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_getsync(): sending get sync command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . [0f] . [e2] u [75] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [02] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [1d] 
avrdude: recv: . [09] 

avrdude: jtagmkII_recv(): got message seqno 2 (command_sequence == 2)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

         AVR Part                      : AVR32DA32
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       codesize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootsize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         16   16      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4160    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        512    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      32768  512      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_UPDI
         Description     : JTAGv2 to UPDI bridge
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01): 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [03] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [01] . [d3] . [99] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [03] 
avrdude: recv: . [00] 
avrdude: recv: . [03] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [81] . [01] . [01] 
avrdude: recv: . [ed] 
avrdude: recv: . [cd] 

avrdude: jtagmkII_recv(): got message seqno 3 (command_sequence == 3)
avrdude: recv: . [81] . [01] . [01] 

Raw message:
0x81 0x01 0x01 
parameter values:
0x01  0x01  

avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02): 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [02] . [aa] B [42] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [04] 
avrdude: recv: . [00] 
avrdude: recv: . [05] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [81] . [00] . [06] . [00] . [06] 
avrdude: recv: . [ca] 
avrdude: recv: . [db] 

avrdude: jtagmkII_recv(): got message seqno 4 (command_sequence == 4)
avrdude: recv: . [81] . [00] . [06] . [00] . [06] 

Raw message:
0x81 0x00 0x06 0x00 0x06 
parameter values:
0x00  0x06  0x00  0x06  

         M_MCU HW version: 1
         M_MCU FW version: 6.00
         S_MCU HW version: 1
         S_MCU FW version: 6.00
         Serial number   : 00:00:00:00:00:00
avrdude: jtagmkII_initialize(): trying to set baudrate to 115200
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x05, 1 bytes): 
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: send: . [1b] . [05] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [05] . [07] . [e1] . [c4] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [05] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [13] 
avrdude: recv: . [95] 

avrdude: jtagmkII_recv(): got message seqno 5 (command_sequence == 5)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command: 
avrdude: jtagmkII_send(): sending 299 bytes
avrdude: send: . [1b] . [06] . [00] + [2b] . [01] . [00] . [00] . [0e] . [0c] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [02] . [01] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] ? [3f] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] ? [3f] . [00] p [70] . [cb] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [06] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [c3] 
avrdude: recv: . [1f] 

avrdude: jtagmkII_recv(): got message seqno 6 (command_sequence == 6)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_reset(): sending reset command: 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [07] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] . [f6] h [68] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [07] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: | [7c] 
avrdude: recv: . [9e] 

avrdude: jtagmkII_recv(): got message seqno 7 (command_sequence == 7)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_read_byte(.., io, 0xf01, ...)
avrdude: jtagmkII_program_enable(): Sending enter progmode command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [08] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] c [63] . [fd] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [08] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [ce] 
avrdude: recv: / [2f] 

avrdude: jtagmkII_recv(): got message seqno 8 (command_sequence == 8)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_program_enable(): Sending enter progmode command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [09] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] . [dc] | [7c] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [09] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: q [71] 
avrdude: recv: . [ae] 

avrdude: jtagmkII_recv(): got message seqno 9 (command_sequence == 9)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_read_byte(): sending read memory command: 
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: send: . [1b] . [0a] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [c0] . [01] . [00] . [00] . [00] . [01] . [0f] . [00] . [01] . [82] . [8d] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [0a] 
avrdude: recv: . [00] 
avrdude: recv: . [02] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [82] . [01] 
avrdude: recv: . [f0] 
avrdude: recv: > [3e] 

avrdude: jtagmkII_recv(): got message seqno 10 (command_sequence == 10)
avrdude: recv: . [82] . [01] 

Raw message:
0x82 0x01 
memory contents:
0x01  

avrdude: jtagmkII_read_chip_rev(): received chip silicon revision: 0x01
avrdude: silicon revision: 0.1
avrdude: AVR device initialized and ready to accept instructions
avrdude: jtagmkII_read_byte(.., signature, 0x0, ...)
avrdude: jtagmkII_read_byte(): sending read memory command: 
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: send: . [1b] . [0b] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [00] . [11] . [00] . [00] . [1a] . [d4] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [0b] 
avrdude: recv: . [00] 
avrdude: recv: . [02] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [82] . [1e] 
avrdude: recv: { [7b] 
avrdude: recv: . [9b] 

avrdude: jtagmkII_recv(): got message seqno 11 (command_sequence == 11)
avrdude: recv: . [82] . [1e] 

Raw message:
0x82 0x1e 
memory contents:
0x1e  

avrdude: jtagmkII_read_byte(.., signature, 0x1, ...)
avrdude: jtagmkII_read_byte(): sending read memory command: 
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: send: . [1b] . [0c] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [01] . [11] . [00] . [00] . [8c] . [b8] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [0c] 
avrdude: recv: . [00] 
avrdude: recv: . [02] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [82] . [96] 
avrdude: recv: . [d9] 
avrdude: recv: z [7a] 

avrdude: jtagmkII_recv(): got message seqno 12 (command_sequence == 12)
avrdude: recv: . [82] . [96] 

Raw message:
0x82 0x96 
memory contents:
0x96  

avrdude: jtagmkII_read_byte(.., signature, 0x2, ...)
avrdude: jtagmkII_read_byte(): sending read memory command: 
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: send: . [1b] . [0d] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [02] . [11] . [00] . [00] N [4e] . [8d] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [0d] 
avrdude: recv: . [00] 
avrdude: recv: . [02] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [82] P [50] 
avrdude: recv: . [1e] 
avrdude: recv: . [94] 

avrdude: jtagmkII_recv(): got message seqno 13 (command_sequence == 13)
avrdude: recv: . [82] P [50] 

Raw message:
0x82 0x50 
memory contents:
0x50  

avrdude: device signature = 0x1e9650
avrdude main() [main.c:1526] error: expected signature for AVR32DA32 is 1E 95 33
        double check chip or use -F to override this check
avrdude: jtagmkII_program_disable(): Sending leave progmode command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [0e] . [00] . [01] . [00] . [00] . [00] . [0e] . [15] [ [5b] . [f1] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [0e] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [7f] 
avrdude: recv: 2 [32] 

avrdude: jtagmkII_recv(): got message seqno 14 (command_sequence == 14)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_reset(): sending reset command: 
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: send: . [1b] . [0f] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] < [3c] . [17] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [0f] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [c0] 
avrdude: recv: . [b3] 

avrdude: jtagmkII_recv(): got message seqno 15 (command_sequence == 15)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): sending GO command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [10] . [00] . [01] . [00] . [00] . [00] . [0e] . [08] J [4a] Q [51] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [10] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [0a] 
avrdude: recv: Y [59] 

avrdude: jtagmkII_recv(): got message seqno 16 (command_sequence == 16)
avrdude: recv: . [80] 

Raw message:
0x80 
OK

avrdude: jtagmkII_close(): sending sign-off command: 
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: send: . [1b] . [11] . [00] . [01] . [00] . [00] . [00] . [0e] . [00] . [bd] \ [5c] 
avrdude: jtagmkII_recv():
avrdude: recv: . [1b] 
avrdude: recv: . [11] 
avrdude: recv: . [00] 
avrdude: recv: . [01] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [00] 
avrdude: recv: . [0e] 
avrdude: recv: . [80] 
avrdude: recv: . [b5] 
avrdude: recv: . [d8] 

avrdude: jtagmkII_recv(): got message seqno 17 (command_sequence == 17)
avrdude: recv: . [80] 

Raw message:
0x80 
OK


avrdude done.  Thank you.

Comparison between the two

% diff -u avrdude.conf.fail avrdude.conf.good
--- avrdude.conf.fail	2023-10-29 15:39:35
+++ avrdude.conf.good	2023-10-29 15:15:33
@@ -224,6 +224,11 @@
         offset             = 0x1000000;
     ;
 
+    memory "io"
+        size               = 4160;
+        readsize           = 1;
+    ;
+
     memory "sib"
         size               = 32;
         readsize           = 1;

avrdude_conf_fail.txt
avrdude_conf_good.txt

Additional Information

I mainly use a self-made implementation using "jtagmkii_updi", and that's where I first discovered the problem. Naturally, I had doubts about my implementation at first, so I also tried his jtag2updi for comparison, and it reproduced the problem.

The difference between the two is whether S_MCU_FW is 6 (jtag2updi) or 7 (updi4avr). The former uses "jtagmkII_set_devdescr" and the latter uses "jtagmkII_set_xmega_params". I don't know of any other implementation that uses this with "jtagmkii_updi"/"jtagmkii_pdi". It probably doesn't matter.

Important things

  • Are there any other implementations, chip definitions, or OSes that reproduce this?
  • Is the problem only with "jtagmkII.c"?
@mcuee mcuee added the unconfirmed Maybe a bug, needs to be reproduced by someone else label Oct 29, 2023
@mcuee
Copy link
Collaborator

mcuee commented Oct 29, 2023

I tend to think this belongs to wontfx type of issues. Basically I do not think this is a problem myself.

But maybe @dl8dtl, @stefanrueger and @MCUdude can chime in and offer their opinion.

@askn37
Copy link
Contributor Author

askn37 commented Oct 29, 2023

@mcuee

I am confident that the combination of "avrdude" itself and the updated "avrdude.conf" that comes with it does not cause this problem. However, be careful when combining "~/.avrduderc". I can only imagine what would have happened if someone had added their own "programmers" and "parts" in the past. (Except for some weirdo who switches home directories and tests different versions of his avrdude)

@stefanrueger
Copy link
Collaborator

Whenever I have had a seg fault in avrdude, it was because of make not realising some files were changed (it goes by date, not checksum). Going back and forth between versions using git checkout or similar can be the cause of this. Of course, it could also be some real problem but AVRDUDE rarely has these.

@askn37 Please could I ask you to make clean (or whatever effects removing of all compiled object files) after switching between versions and before compiling. Here is what I do: I copy the following Makefile into the cloned avrdude version

all:
	cmake --build build_linux

install:
	cmake --build build_linux; sudo cmake --build build_linux --target install

new:
	sudo rm -rf build_linux
	cmake -D BUILD_DOC=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -D HAVE_LINUXGPIO=1 -D HAVE_LINUXSPI=1 -D HAVE_PARPORT=1 -B build_linux
	cmake --build build_linux

Then I carry out make new whenever I switch versions.

@stefanrueger
Copy link
Collaborator

@askn37 But you are right. I spotted code that would cause the segfault in the way you describe. I will create a PR for this. Thanks for reporting!

@mcuee mcuee added bug Something isn't working and removed unconfirmed Maybe a bug, needs to be reproduced by someone else labels Oct 29, 2023
@mcuee
Copy link
Collaborator

mcuee commented Oct 29, 2023

@askn37 But you are right. I spotted code that would cause the segfault in the way you describe. I will create a PR for this. Thanks for reporting!

I see. Changed the label to bug.

@askn37
Copy link
Contributor Author

askn37 commented Oct 29, 2023

Supplementary exam.
The build in question was a simpler method and stopped at another failure. Caution is required.

$ git clone https://github.com/avrdudes/avrdude.git avrdude_main
$ cd avrdude_main
$ pwd
/Users/askn/Collaborator/avrdude_main
$ sh build.sh
$ ./build_darwin/src/avrdude -c dryrun -v

avrdude: Version 7.2-20231029 (9dfb6164)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude.conf
avrdude main() error: unable to process system wide configuration file /Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude.conf

@mcuee
Copy link
Collaborator

mcuee commented Oct 29, 2023

@askn37

I am sorry. This is an issue in git main caused by PR #1542. I made a mistake and did not test it properly. This will be fixed.

PS C:\work\avr\avrdude_test\avrdude_bin> .\avrdude_git -c usbasp -p m2560
avrdude_git error: unable to process system wide configuration file 
C:\work\avr\avrdude_test\avrdude_bin\avrdude.conf

@askn37
Copy link
Contributor Author

askn37 commented Oct 29, 2023

@mcuee

We've found some other strange issues with "dump sernum", but they're a lower priority, so we'll hold off on retesting and reporting until the build issues are resolved.

@mcuee
Copy link
Collaborator

mcuee commented Oct 29, 2023

@mcuee

We've found some other strange issues with "dump sernum", but they're a lower priority, so we'll hold off on retesting and reporting until the build issues are resolved.

@askn37
Yes, that is perfectly fine.

And thanks a lot for collecting the potential issues in your repo. You are very helpful.

@stefanrueger
Copy link
Collaborator

I will create a PR for this.

On second thoughts I pushed a commit onto PR #1538 to avoid merge conflicts. @askn37 Please try PR #1538. You should now get an error message rather than a seg fault.

@stefanrueger stefanrueger changed the title Using an old "avrdude.conf" will result in a segmentation fault. Using an old "avrdude.conf" can result in a segmentation fault. Oct 30, 2023
@stefanrueger stefanrueger self-assigned this Oct 30, 2023
@askn37
Copy link
Contributor Author

askn37 commented Oct 30, 2023

@stefanrueger

I will create a PR for this.

On second thoughts I pushed a commit onto PR #1538 to avoid merge conflicts. @askn37 Please try PR #1538. You should now get an error message rather than a seg fault.

got it. Segment violation resolved.

askn@alicia avrdude_main % git branch                  
  main
* memory-types
askn@alicia avrdude_main % git log --oneline -n 5
54eacc51 (HEAD -> memory-types) Convert avr_locate_mem(p, string) to avr_locate_mem_by_type()
2be7f7e5 Refer to memory rather than memory type
03db6e5c Use memory type for fuse memories instead of fuse names
c8d11f65 Replace str_eq(m->desc, "(usersig|userrow|prodsig|sigrow") with macros
cd53766d Replace str_eq(m->desc, "...") with mem_is_...(m)
askn@alicia avrdude_main % ./build_darwin/src/avrdude -P /dev/cu.usbserial-230 -c jtag2updi -p avr64dd32 -vT "dump sernum"

avrdude: Version 7.2-20231030 (54eacc51)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude.conf
         User configuration file is /Users/askn/.avrduderc

         Using Port                    : /dev/cu.usbserial-230
         Using Programmer              : jtag2updi
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              2.01
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              7.53
  hardware version:              1
Serial number:                   4a:34:94:37:55:3e
Device ID:                       JTAGICE mkII
         AVR Part                      : AVR64DD32
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse7       codesize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuse8       bootsize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
           fuses                   0     0     0    0 no         16   16      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          4    1      0     0     0 0x00 0x00
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           tempsense               0     0     0    0 no          4    1      0     0     0 0x00 0x00
           sernum                  0     0     0    0 no         16    1      0     0     0 0x00 0x00
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
           io                      0     0     0    0 no       4160    1      0     0     0 0x00 0x00
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
           eeprom                  0     0     0    0 no        256    1      0     0     0 0x00 0x00
           flash                   0     0     0    0 no      65536  512      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_UPDI
         Description     : JTAGv2 to UPDI bridge
         M_MCU HW version: 1
         M_MCU FW version: 2.01
         S_MCU HW version: 1
         S_MCU FW version: 7.53
         Serial number   : 4a:34:94:37:55:3e
avrdude: silicon revision: 1.3
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e961a (probably avr64dd32)

avrdude: processing -T dump sernum
>>> dump sernum 0x0 0x10
Reading | -------------------------------------------------- | 0% 0.00 s 
avrdude jtagmkII_read_byte() error: unknown memory sernum
avrdude cmd_dump() error: (dump) error reading sernum address 0x00000 of part AVR64DD32
               read operation not supported on memory sernum

avrdude done.  Thank you.

@stefanrueger
Copy link
Collaborator

stefanrueger commented Oct 30, 2023

avrdude jtagmkII_read_byte() error: unknown memory sernum

@askn37 I have pushed a commit to PR #1538 to handle sub-memories of sigrow. Please update from the PR and test reading sernum, osccal20 etc memories.

@askn37
Copy link
Contributor Author

askn37 commented Oct 31, 2023

@stefanrueger

@askn37 I have pushed a commit to PR #1538 to handle sub-memories of sigrow. Please update from the PR and test reading sernum, osccal20 etc memories.

JTAG2UPDI results are negative.

Added debug print to check if the condition does not hold at the relevant location.

diff --git a/src/jtagmkII.c b/src/jtagmkII.c
index 6dcec577..db22150b 100644
--- a/src/jtagmkII.c
+++ b/src/jtagmkII.c
@@ -2239,13 +2239,20 @@ static int jtagmkII_read_byte(const PROGRAMMER *pgm, const AVRPART *p, const AVR
     }
   } else if (mem_is_in_sigrow(mem)) {
     AVRMEM *sr = avr_locate_sigrow(p);
-    int doff;
-    if ((p->prog_modes & (PM_PDI | PM_UPDI)) && sr && (doff = mem->offset-sr->offset) >= 0 &&
+    int doff = mem->offset-sr->offset;
+    if ((p->prog_modes & (PM_PDI | PM_UPDI)) && sr && doff >= 0 &&
       (int) (addr + doff) < sr->size) {
       cmd[1] = MTYPE_PRODSIG;
       addr += doff;
     } else {
       pmsg_error("unable to handle memory %s\n", mem->desc);
+      pmsg_error("check: p->prog_modes => %x\n", p->prog_modes);
+      pmsg_error("check: (PM_PDI | PM_UPDI) => %x\n", (PM_PDI | PM_UPDI));
+      pmsg_error("check: bool=> %x\n", (p->prog_modes & (PM_PDI | PM_UPDI)));
+      pmsg_error("check: sr->size => %x\n", sr->size);
+      pmsg_error("check: addr => %x\n", addr);
+      pmsg_error("check: doff => %x\n", doff);
+      pmsg_error("check: (addr + doff) < sr->size => %x\n", (int) (addr + doff) < sr->size);
       return -1;
     }
   } else if (mem_is_io(mem)) {

And I got the following information.

sh -x ./J_READ.sh -qvvvv | grep "\(error|conf\)"

+ /Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude -p avr64dd32 -c jtag2updi -P /dev/cu.usbserial-230 -U fuses:r:avr64dd32/Fuse.hex:i -U lock:r:avr64dd32/Lock.hex:i -U sernum:r:avr64dd32/SERNUM.bin:r -U eeprom:r:avr64dd32/EEPROM.hex:i -U userrow:r:avr64dd32/USERROW.hex:i -U flash:r:avr64dd32/Flash.hex:i -qvvvv
         System wide configuration file is /Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude.conf
         User configuration file is /Users/askn/.avrduderc
         User configuration file does not exist or is not a regular file, skipping
avrdude jtagmkII_read_byte() [jtagmkII.c:2248] error: unable to handle memory sernum
avrdude jtagmkII_read_byte() [jtagmkII.c:2249] error: check: p->prog_modes => 11
avrdude jtagmkII_read_byte() [jtagmkII.c:2250] error: check: (PM_PDI | PM_UPDI) => 18
avrdude jtagmkII_read_byte() [jtagmkII.c:2251] error: check: bool=> 10
avrdude jtagmkII_read_byte() [jtagmkII.c:2252] error: check: sr->size => 80
avrdude jtagmkII_read_byte() [jtagmkII.c:2253] error: check: addr => 1110
avrdude jtagmkII_read_byte() [jtagmkII.c:2254] error: check: doff => 10
avrdude jtagmkII_read_byte() [jtagmkII.c:2255] error: check: (addr + doff) < sr->size => 0
avrdude avr_read_mem() [avr.c:484] error: unable to read byte at address 0x0000
avrdude avr_read_mem() [avr.c:486] error: read operation not supported for memory sernum
avrdude do_op() [update.c:411] error: unable to read all of sernum memory, rc=-2

(int) (addr + doff) < sr->size showed false.

please refer.

@stefanrueger
Copy link
Collaborator

@askn37 Vvv useful; the addr already contains the offset. It is not necessary to figure out where the sub-memory sits in sigrow.

I made change in PR #1538 to reflect this.

@askn37
Copy link
Contributor Author

askn37 commented Oct 31, 2023

@askn37 Vvv useful; the addr already contains the offset. It is not necessary to figure out where the sub-memory sits in sigrow.

I made change in PR #1538 to reflect this.

wonderful. The issue with jtagmkII_updi not being able to read IO memory is definitely resolved.

tinyAVR (P:0) trial results

Current programmer=jtag2updi
Current type=t824
+/Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude -p t824 -c jtag2updi -P /dev/cu.usbserial-230 -U fuses:r:-:I -U lock:r:-:I -U prodsig:r:-:I -U signature:r:-:I -U tempsense:r:-:I -U sernum:r:-:I -U osccal16:r:-:I -U osccal20:r:-:I -U osc16err:r:-:I -U osc20err:r:-:I -q

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9329 (probably t824)

avrdude: processing -U fuses:r:-:I
avrdude: reading fuses memory ...
avrdude: writing output file <stdout>
:0A0000000DC009C09DE994BF809374                                             // 00000> .@.@.i.?..
:00000001FF

avrdude: processing -U lock:r:-:I
avrdude: reading lock memory ...
avrdude: writing output file <stdout>
:01000000C53A                                                               // 00000> E
:00000001FF

avrdude: processing -U prodsig:r:-:I
avrdude: reading prodsig/sigrow memory ...
avrdude: writing output file <stdout>
:200000000000F20000000E00000000000000000000000000000000000000000000000000E0 // 00000> ..r.............................
:200020000000000000000000000000000000000000000000000000000000000000FF3F0280 // 00020> ..............................?.
:00000001FF

avrdude: processing -U signature:r:-:I
avrdude: reading signature memory ...
avrdude: writing output file <stdout>
:030000001E932923                                                           // 00000> ..)
:00000001FF

avrdude: processing -U tempsense:r:-:I
avrdude: reading tempsense memory ...
avrdude: writing output file <stdout>
:0200000088F97D                                                             // 00000> .y
:00000001FF

avrdude: processing -U sernum:r:-:I
avrdude: reading sernum memory ...
avrdude: writing output file <stdout>
:0A000000304150535349D947362AC6                                             // 00000> 0APSSIYG6*
:00000001FF

avrdude: processing -U osccal16:r:-:I
avrdude: reading osccal16 memory ...
avrdude: writing output file <stdout>
:02000000A30655                                                             // 00000> #.
:00000001FF

avrdude: processing -U osccal20:r:-:I
avrdude: reading osccal20 memory ...
avrdude: writing output file <stdout>
:020000002206D6                                                             // 00000> ".
:00000001FF

avrdude: processing -U osc16err:r:-:I
avrdude: reading osc16err memory ...
avrdude: writing output file <stdout>
:02000000FFFF00                                                             // 00000> ..
:00000001FF

avrdude: processing -U osc20err:r:-:I
avrdude: reading osc20err memory ...
avrdude: writing output file <stdout>
:02000000FFFF00                                                             // 00000> ..
:00000001FF

avrdude done.  Thank you.

AVR_DX(P:2) trial results

Current programmer=jtag2updi
Current type=avr64dd32
+/Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude -p avr64dd32 -c jtag2updi -P /dev/cu.usbserial-230 -U fuses:r:-:I -U lock:r:-:I -U prodsig:r:-:I -U signature:r:-:I -U tempsense:r:-:I -U sernum:r:-:I -U osccal16:r:-:I -U osccal20:r:-:I -U osc16err:r:-:I -U osc20err:r:-:I -q

avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e961a (probably avr64dd32)

avrdude: processing -U fuses:r:-:I
avrdude: reading fuses memory ...
avrdude: writing output file <stdout>
:1000000002C0F8950895112480914000811105C027                                 // 00000> .@x....$..@....@
:00000001FF

avrdude: processing -U lock:r:-:I
avrdude: reading lock memory ...
avrdude: writing output file <stdout>
:040000005CC5C55CBA                                                         // 00000> \EE\
:00000001FF

avrdude: processing -U prodsig:r:-:I
avrdude: reading prodsig/sigrow memory ...
avrdude: writing output file <stdout>
:200000000000000000000000000000000000000000000000000040000000000000000000A0 // 00000> ......................@.........
:200020000000000000000000000000000000000000000000000000000000000000FF7F350D // 00020> ...............................5
:20004000200000000000000000000000000000000000000033760D000000000000000000CA // 00040> _...................3v..........
:2000600000000000000200010C0000000A0213000100000000060000001E0000000000002D // 00060> ................................
:00000001FF

avrdude: processing -U signature:r:-:I
avrdude: reading signature memory ...
avrdude: writing output file <stdout>
:030000001E961A2F                                                           // 00000> ...
:00000001FF

avrdude: processing -U tempsense:r:-:I
avrdude: reading tempsense memory ...
avrdude: writing output file <stdout>
:04000000F2031E0DDC                                                         // 00000> r...
:00000001FF

avrdude: processing -U sernum:r:-:I
avrdude: reading sernum memory ...
avrdude: writing output file <stdout>
:1000000042225361510074160102013000000000C9                                 // 00000> B"SaQ.t....0....
:00000001FF

avrdude: processing -U osccal16:r:-:I
avrdude warning: skipping -U osccal16:... as memory not defined for part AVR64DD32

avrdude: processing -U osccal20:r:-:I
avrdude warning: skipping -U osccal20:... as memory not defined for part AVR64DD32

avrdude: processing -U osc16err:r:-:I
avrdude warning: skipping -U osc16err:... as memory not defined for part AVR64DD32

avrdude: processing -U osc20err:r:-:I
avrdude warning: skipping -U osc20err:... as memory not defined for part AVR64DD32

avrdude done.  Thank you.

AVR_EA (P:3) trial results from UPDI4AVR

Current programmer=updi4avr
Current type=avr64ea32
+/Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude -p avr64ea32 -c updi4avr -P /dev/cu.usbserial-230 -U fuses:r:-:I -U lock:r:-:I -U prodsig:r:-:I -U signature:r:-:I -U tempsense:r:-:I -U sernum:r:-:I -U osccal16:r:-:I -U osccal20:r:-:I -U osc16err:r:-:I -U osc20err:r:-:I -q

avrdude warning: programmer jtag2updi overwrites previous definition /Users/askn/Collaborator/avrdude_main/build_darwin/src/avrdude.conf:2570. [/Users/askn/.avrduderc:27]
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e961f (probably avr64ea32)

avrdude: processing -U fuses:r:-:I
avrdude: reading fuses memory ...
avrdude: writing output file <stdout>
:1000000049C000004FC000004DC000004BC00000C0                                 // 00000> I@..O@..M@..K@..
:00000001FF

avrdude: processing -U lock:r:-:I
avrdude: reading lock memory ...
avrdude: writing output file <stdout>
:040000005CC5C55CBA                                                         // 00000> \EE\
:00000001FF

avrdude: processing -U prodsig:r:-:I
avrdude: reading prodsig/sigrow memory ...
avrdude: writing output file <stdout>
:200000000000000000000000000000000000000000000000000000000000000000000000E0 // 00000> ................................
:200020000000000000000000000000000000000000000000000000000000000000FF7F0240 // 00020> ................................
:200040002500070025000700250007002500070000000000000000000000000000000000F0 // 00040> %...%...%...%...................
:200060000700000000000005000000002A0006000000000000100000002E00000000000006 // 00060> ............*...................
:00000001FF

avrdude: processing -U signature:r:-:I
avrdude: reading signature memory ...
avrdude: writing output file <stdout>
:030000001E961F2A                                                           // 00000> ...
:00000001FF

avrdude: processing -U tempsense:r:-:I
avrdude: reading tempsense memory ...
avrdude: writing output file <stdout>
:04000000C9FDAEEC9C                                                         // 00000> I}.l
:00000001FF

avrdude: processing -U sernum:r:-:I
avrdude: reading sernum memory ...
avrdude: writing output file <stdout>
:10000000622321159FFF8222F028F045FFFFFFFFAA                                 // 00000> b#!...."p(pE....
:00000001FF

avrdude: processing -U osccal16:r:-:I
avrdude warning: skipping -U osccal16:... as memory not defined for part AVR64EA32

avrdude: processing -U osccal20:r:-:I
avrdude warning: skipping -U osccal20:... as memory not defined for part AVR64EA32

avrdude: processing -U osc16err:r:-:I
avrdude warning: skipping -U osc16err:... as memory not defined for part AVR64EA32

avrdude: processing -U osc20err:r:-:I
avrdude warning: skipping -U osc20err:... as memory not defined for part AVR64EA32

avrdude done.  Thank you.

(EDIT: There was a mistake in pasting the log, so I replaced the AVR_EA section.)

@stefanrueger
Copy link
Collaborator

@askn37 Thanks for testing. Your results look like sigrow/prodsig is not read correctly. I would expect this to contain signature, sernum, tempsense, etc but it doesn't look like it in your examples. -c dryrun shows where which sub-memories should go:

$ avrdude -qqp t824 -c dryrun -U prodsig:r:-:I
:200000001E93295554535251504F4E4D4CFFFFFFFFFFFFFFFFFFFFFF6F6F4F4FFFFFFFFF74 // 00000> ..)UTSRQPONML...........ooOO....
:20002000545465654545FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDE // 00020> TTeeEE..........................
:00000001FF

T is where the tempsense calibration values should be, o the osccal values, UTS... where sernum should be.

The jtagmkII.c code is not crisp and clear as it has grown organically to cater for very different interfaces over the last 20 years. I think

u32_to_b4(sendbuf.dd.nvm_prod_sig_offset, m->offset);
and
addr += mem->offset;
has the effect of adding offset twice and we are reading from 0x2200 rather than 0x1100. Can someone confirm, please?

@askn37
Copy link
Contributor Author

askn37 commented Oct 31, 2023

@stefanrueger

Unlike JTAG2UPDI, which uses the device_descriptor structure, UPDI4AVR uses the xmega_device_desc structure. The branch condition to switch is PDATA(pgm)->fwver >= 0x700.

This requires that the byte chunks passed in STK500v2 are zero-based relative addresses. If the address value is doubled, then both the structure and the READ/WRITE instruction can be considered to have the same address.

UPDI4AVR was fine in the 6.3 to 7.2 implementation, so this fact suggests a break in compatibility.

To double check this behavior you will need another JTAG debugger that uses jtagmkII_set_xmega_params. (who is that? Dragon?)

@askn37
Copy link
Contributor Author

askn37 commented Oct 31, 2023

I will add a little explanation to deepen your knowledge.

'xmega_device_desc', as the name suggests, contains a memory layout enhanced with the XMEGA architecture. It does not pass the model number of the working chip or his NVMCTRL version number. Instead, pass this structure to the STK500v2 adapter.

/* New Xmega device descriptor, for firmware version 7 and above */
struct xmega_device_desc {
    unsigned char whatever[2];		// cannot guess; must be 0x0002
    unsigned char datalen;		// length of the following data, = 47
    unsigned char nvm_app_offset[4];	// NVM offset for application flash
    unsigned char nvm_boot_offset[4];	// NVM offset for boot flash
    unsigned char nvm_eeprom_offset[4]; // NVM offset for EEPROM
    unsigned char nvm_fuse_offset[4];	// NVM offset for fuses
    unsigned char nvm_lock_offset[4];	// NVM offset for lock bits
    unsigned char nvm_user_sig_offset[4]; // NVM offset for user signature row
    unsigned char nvm_prod_sig_offset[4]; // NVM offset for production sign. row
    unsigned char nvm_data_offset[4];	// NVM offset for data memory (SRAM + IO)
    unsigned char app_size[4];		// size of application flash
    unsigned char boot_size[2];		// size of boot flash
    unsigned char flash_page_size[2];	// flash page size
    unsigned char eeprom_size[2];	// size of EEPROM
    unsigned char eeprom_page_size;	// EEPROM page size
    unsigned char nvm_base_addr[2];	// IO space base address of NVM controller
    unsigned char mcu_base_addr[2];	// IO space base address of MCU control
};
#endif /* JTAGMKII_PRIVATE_EXPORTED */

Seeing this, the STK500v2 adapter can deduce which series the target chip belongs to even if it cannot read the target chip's PDI/UPDI. In other words, you can get hints on how to switch the circuits and signal lines required for high voltage control. Regarding UPDI, even if you can't read the SIB from the chip, you can infer the version of NVMCTRL and therefore decide whether to give 12V to the UPDI pad or 8.2V to the RESET pad. In particular, nvm_lock_offset, nvm_user_sig_offset, and nvm_prod_sig_offset are significantly different. Additionally, the SRAM starting address needed to rewrite his USERROW of the lock device can also be obtained through nvm_data_offset. (Since it is not normally used, a dummy value is set.)

The problem is that subsequent READ/WRITE instructions mix relative addressing to the structure and absolute addressing from the beginning of the memory map. It's probably an old bug, but it's a convention kept for backwards compatibility. Additionally, terminal mode also has non-uniform addressing. The complex conditional branching in the code below is the result of trial and error to accommodate the differences. At least, this is how I interpreted it from 6.3 to 7.2.

https://github.com/askn37/multix-zinnia-updi4avr-firmware-builder/blob/main/libraries/UPDI4AVR/examples/UPDI4AVR_FW753B/src/NVM.cpp#L104

@stefanrueger
Copy link
Collaborator

complex conditional branching in the code below is the result of trial and error to accommodate the differences.

It is better controlling both sides the FW of the programmer HW and the -c module of AVRDUDE. Assuming there is a published open hardware design for a programmer HW, a competently written FW for the programmer, then I am sure that the AVRDUDE team would consider adding a corresponding -c programmer module.

@askn37
Copy link
Contributor Author

askn37 commented Oct 31, 2023

test case plan to me

Prepare the following shell script

-c *** -p t824 -U fuses:r:-:I -U lock:r:-:I -U prodsig:r:-:I

Try this 2x2 pattern

Two types of configuration files
Old type (7.0 or earlier?): jtagmkII_pdi+has_updi
New type (main): jtagmkII_updi+PM_UPDI

Build the latest JTGA2UPDI main and write it to UNO (mine hasn't been touched in a long time)
Prepare the public UPDI4AVR main (return to before AVR_EB modification)

@stefanrueger
Copy link
Collaborator

| UPDI4AVR was fine in the 6.3 to 7.2 implementation, so this fact suggests a break in compatibility.

This may well be. I suspect the root problem is that updi4avr project is (so far) not catered for: AVRDUDE has no way of knowing which unsupported projects utilise which behaviour!

Whilst we develop AVRDUDE further we try hard to ensure that once supported and known programmers keep working with AVRDUDE. These are often programmers someone in the team has and that we can test on. We welcome reports on regressions.

Also, please note, it is generally discouraged to use outdated .conf files with newer AVRDUDE versions. Always try to use the matching .conf file: AVRDUDE expects it can rely on a configuration model of a part/programmer that matches the code base.

Having said this, once you figure out what needs changing in AVRDUDE so that updi4avr keeps working well, feel free to submit a PR. We will try to see if that breaks supported programmers. If it does not, we will consider merging. The best way forward, however, is to make sure that AVRDUDE knows about a project/programmer and has a dedicated -c programmer for it that works in tandem with it. If you can control both sides of the programming, host downloader/uploader and programmer firmware, then both -c programmer and the FW have a sporting chance to be crisp, clear, simple and easily maintainable.

@askn37
Copy link
Contributor Author

askn37 commented Nov 1, 2023

@stefanrueger

UPDI4AVR also provides upward compatibility with JTAG2UPDI. This means you can safely create a bootloader using "-c jtag2updi". We are also approaching AVR_Dx/Ex, which JATG2UPDI has not followed before. This functionality is available out-of-the-box for DxCore and MCUdude projects. (Their "avrdude" is still old)

What I specifically want to do is cross-check whether the old and new "avrdude"(and the pair of configuration files) and their adapters are backwards compatible. Generate a report if any discrepancies are found.

  • In that sense, IO mapping differences other than fuses are not a high priority. Most users don't touch it. However, you must be careful not to confuse other users...

@MCUdude
Copy link
Collaborator

MCUdude commented Nov 2, 2023

My Dragon uses the JTAG2 protocol use FW 7. And it seems like the JTAGmkII does as well:

$ ./avrdude -cdragon_pdi -patxmega128a3u -v

avrdude: Version 7.2-20230720
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /Users/hans/Downloads/avrdude-terminal/src/avrdude.conf
         User configuration file is /Users/hans/.avrduderc

         Using Port                    : usb
         Using Programmer              : dragon_pdi
avrdude: usbdev_open(): found AVRDRAGON, serno: 00A200000F1A
JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              2
Serial number:                   00:a2:00:00:0f:1a
Device ID:                       AVRDRAGON
         AVR Part                      : ATxmega128A3U
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :
[...]
         Programmer Type : DRAGON_PDI
         Description     : Atmel AVR Dragon in PDI mode
         M_MCU HW version: 1
         M_MCU FW version: 7.39
         S_MCU HW version: 2
         S_MCU FW version: 7.39
         Serial number   : 00:a2:00:00:0f:1a
         Vtarget         : 3.3 V
avrdude: silicon revision: 0.6
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e9742 (probably x128a3u)

avrdude done.  Thank you.

@stefanrueger
Copy link
Collaborator

stefanrueger commented Nov 2, 2023

OK, summarising: there are no programmers that use jtag2 for UPDI parts with FW > 6. The only jtag2 programmers with FW > 6 cater for XMEGA parts. So, the following lines

avrdude/src/jtagmkII.c

Lines 1288 to 1291 in 96b081b

if (PDATA(pgm)->fwver >= 0x700 && (p->prog_modes & (PM_PDI | PM_UPDI)) != 0)
jtagmkII_set_xmega_params(pgm, p);
else
jtagmkII_set_devdescr(pgm, p);

really should be replaced by

  (PDATA(pgm)->fwver>=0x700 && (p->prog_modes&PM_PDI)? jtagmkII_set_xmega_params: jtagmkII_set_devdescr)(pgm, p);

[EDIT: strikethrough]

Comments? @askn37 @mcuee @MCUdude

[EDIT: OK, for the time being, let's keep using set_xmega_params() for FW >= 7.00 and UPDI parts]

@MCUdude
Copy link
Collaborator

MCUdude commented Nov 2, 2023

I'm fine with that as long as it doesn't break anything.

In the really old days, the jtag2updi project just used "vanilla" avrdude 6.3 using the jtagmkii_pdi implementation.
It looks like FW version 6 was chosen just to make Avrdude select jtagmkII_set_devdescr(). However, I'm not sure if jtagmkII_set_xmega_params() would be a requirement if we're would ever see AVR-EA and AVR-EB support. @askn37, which has created updi4avr should have a word I think.

#------------------------------------------------------------
# jtag2updi programmer definitions
#------------------------------------------------------------

programmer
  id    = "jtag2updi";
  desc  = "JTAGv2 to UPDI bridge";
  type  = "jtagmkii_pdi";
  connection_type = serial;
  baudrate = 115200;
;

@stefanrueger
Copy link
Collaborator

@askn37 Thanks for your thorough analysis. Looks like FWV=7 only happens with PM_PDI parts, and as such it makes sense that the XMEGA parameters are captured and communication, for example the application and boot offsets (unique to XMEGAs).

Now, seeing that FW=7 + UPDI does not occur with supported AVRDUDE programmers, which project should have authority to extend jtag2updi? There might well be another so far unsupported programmer that has backfitted AVRDUDE behaviour in a different way. And what do we do if somehow an official Microchip successor project for jtagmkII comes about?

I still think it would be better if the updi4avr project submitted a updi4avr.c driver that can be used with -c updi4avr.

"-vvvv" character dump in terminal mode breaks above 0x80. Must be replaced with "."

This is almost certainly a failure of isprint(c) in the corresponding OS. c can be -1 or the range of unsigned char, so characters between 0x80 and 0xff should be allowed. Linux handles this definitely OK. I have now unified the handling of communication traces and pushed a commmit to PR #1538. @mcuee and @MCUdude could you test the traces for

  • Serial send and receive in windows (-vvvv)
  • Serial send and receive in windows over ethernet (-vvvv) --- these are the net_send() and net_recv() functions
  • Usbhid send and receive (-vvvvv) --- one more v the code uses msg_trace2()
  • Usbdev send and reveive (-vvvvv) --- funnily send requires 4 v and recv 5 v?! Probably a mistake

I have checked posix serial send and receive.

@MCUdude
Copy link
Collaborator

MCUdude commented Nov 2, 2023

@stefanrueger I only have a mac at hand:

Usbhid send and receive (-vvvvv)

https://gist.github.com/MCUdude/4f6e5609928fda35da15ba3c1797b7d5

Usbdev send and reveive (-vvvvv)

https://gist.github.com/MCUdude/dd9e41e04e37cd6168e49b1837f4192b

@stefanrueger
Copy link
Collaborator

@MCUdude Brilliant. Will wait for @mcuee's windows runs.

@stefanrueger
Copy link
Collaborator

@askn37 I do not see how eeprom access differs between v7.2 and PR #1538 for FW=7 + UPDI. How so?

| reading fuses memory : [...] byte-oriented and absolute addressing is recommended

I think this has happened in the last commit to PR #1538. Please check

| reading chip silicon revision : Although it is in byte mode with MTYPE_XMEGA_FLASH, nvm_data_offset was already added

| dump eeprom : [...] The result will be twice the address.

What do you suggest? Please tell us in a git diff.

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

I think this communication trace feature is very useful improvement to debug low level protocol.

The following debug logs are generated using the github action binaries (mingw64 and MSVC64).
https://github.com/avrdudes/avrdude/actions/runs/6739037907

Usbdev send and reveive (-vvvvv)

  1. usbasp MinGW build with libusb-1.0 API
Click for full debug log
PS>pwd

Path
----
C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64

PS>.\avrdude -c usbasp -p m328pb -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : usbasp
avrdude: usbasp_open("usb")
avrdude: seen device from vendor >www.fischl.de<
avrdude: seen product >USBasp<
         AVR Part                      : ATmega328PB
         Chip Erase delay              : 10500 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                  65    10   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no        224    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no         24    1      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp ISP and TPI programmer
avrdude: usbasp_initialize()
avrdude: usbasp_transmit("USBASP_FUNC_GETCAPABILITIES", 0x00, 0x00, 0x00, 0x00)
         <= [81] [00] [00] [00]
avrdude: usbasp_spi_set_sck_period(0)
avrdude: auto set sck period (because given equals null)
avrdude: usbasp_transmit("USBASP_FUNC_SETISPSCK", 0x00, 0x00, 0x00, 0x00)
         <= [00]
avrdude: usbasp_transmit("USBASP_FUNC_CONNECT", 0x00, 0x00, 0x00, 0x00)
avrdude: usbasp_program_enable()
avrdude: usbasp_transmit("USBASP_FUNC_ENABLEPROG", 0x00, 0x00, 0x00, 0x00)
         <= [00]
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: usbasp_spi_cmd(0x30, 0x00, 0x00, 0x00) ...
avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x30, 0x00, 0x00, 0x00)
         <= [00] [30] [00] [1e]
avrdude: usbasp_spi_cmd() => 0x00, 0x30, 0x00, 0x1e
avrdude: usbasp_spi_cmd(0x30, 0x00, 0x01, 0x00) ...
avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x30, 0x00, 0x01, 0x00)
         <= [00] [30] [00] [95]
avrdude: usbasp_spi_cmd() => 0x00, 0x30, 0x00, 0x95
Reading | #################                                  | 33% 0.02 s
avrdude: usbasp_spi_cmd(0x30, 0x00, 0x02, 0x00) ...
avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x30, 0x00, 0x02, 0x00)
         <= [00] [30] [00] [16]
avrdude: usbasp_spi_cmd() => 0x00, 0x30, 0x00, 0x16
Reading | ################################################## | 100% 0.03 s
avrdude: device signature = 0x1e9516 (probably m328pb)
avrdude: usbasp_close()
avrdude: usbasp_transmit("USBASP_FUNC_DISCONNECT", 0x00, 0x00, 0x00, 0x00)

avrdude done.  Thank you.
  1. usbasp MSVC build with avrdude-libusb (libusb-0.1 API)
Click for full debug log
PS>pwd

Path
----
C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-msvc-x64

PS>.\avrdude -c usbasp -p m328pb -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-msvc-x64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : usbasp
avrdude: usbasp_open("usb")
avrdude: seen device from vendor >www.fischl.de<
avrdude: seen product >USBasp<
         AVR Part                      : ATmega328PB
         Chip Erase delay              : 10500 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                  65    10   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no        224    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no         24    1      0     0     0 0x00 0x00

         Programmer Type : usbasp
         Description     : USBasp ISP and TPI programmer
avrdude: usbasp_initialize()
avrdude: usbasp_transmit("USBASP_FUNC_GETCAPABILITIES", 0x00, 0x00, 0x00, 0x00)
         <= [81] [00] [00] [00]
avrdude: usbasp_spi_set_sck_period(0)
avrdude: auto set sck period (because given equals null)
avrdude: usbasp_transmit("USBASP_FUNC_SETISPSCK", 0x00, 0x00, 0x00, 0x00)
         <= [00]
avrdude: usbasp_transmit("USBASP_FUNC_CONNECT", 0x00, 0x00, 0x00, 0x00)
avrdude: usbasp_program_enable()
avrdude: usbasp_transmit("USBASP_FUNC_ENABLEPROG", 0x00, 0x00, 0x00, 0x00)
         <= [00]
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: usbasp_spi_cmd(0x30, 0x00, 0x00, 0x00) ...
avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x30, 0x00, 0x00, 0x00)
         <= [00] [30] [00] [1e]
avrdude: usbasp_spi_cmd() => 0x00, 0x30, 0x00, 0x1e
avrdude: usbasp_spi_cmd(0x30, 0x00, 0x01, 0x00) ...
avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x30, 0x00, 0x01, 0x00)
         <= [00] [30] [00] [95]
avrdude: usbasp_spi_cmd() => 0x00, 0x30, 0x00, 0x95
Reading | #################                                  | 33% 0.01 s
avrdude: usbasp_spi_cmd(0x30, 0x00, 0x02, 0x00) ...
avrdude: usbasp_transmit("USBASP_FUNC_TRANSMIT", 0x30, 0x00, 0x02, 0x00)
         <= [00] [30] [00] [16]
avrdude: usbasp_spi_cmd() => 0x00, 0x30, 0x00, 0x16
Reading | ################################################## | 100% 0.01 s
avrdude: device signature = 0x1e9516 (probably m328pb)
avrdude: usbasp_close()
avrdude: usbasp_transmit("USBASP_FUNC_DISCONNECT", 0x00, 0x00, 0x00, 0x00)

avrdude done.  Thank you.

@askn37
Copy link
Contributor Author

askn37 commented Nov 3, 2023

avrdude: Built Version 7.2-20231102 (9c894e1) builting now...
Therefore, this information is already outdated.

-avrdude: Version 7.2-arduino.1
+avrdude: Version 7.2-20231031 (76cbf91a)
 avrdude> dump eeprom
 >>> dump eeprom 0x0 0x40
 avrdude: jtagmkII_paged_load(.., eeprom, 32, 32)
 avrdude: jtagmkII_paged_load(): block_size at addr 0 is 32
 avrdude: jtagmkII_paged_load(): sending read memory command:
 avrdude: jtagmkII_send(): sending 10 bytes
-avrdude: send: . [1b] . [0d] . [00] 
-. [0a] . [00] . [00] . [00] 
-. [0e] . [05] " [22] 
-  [20] . [00] . [00] . [00] 
-. [00] . [00] . [00] . [00] 
-b [62] � [c3] 
+avrdude: send: . [1b] . [0e] . [00]
+. [0a] . [00] . [00] . [00]
+. [0e] . [05] " [22]
+  [20] . [00] . [00] . [00]
+. [00] . [14] . [00] . [00]
+. [87] . [15]

76cbf91: This version incorrectly wrote the EEPROM address value directly in the offset field.

-avrdude: Version 7.2-20231031 (76cbf91a)
+avrdude: Version 7.2-20231102 (9c894e15)
 avrdude> dump eeprom
 >>> dump eeprom 0x0 0x40
 avrdude: jtagmkII_paged_load(.., eeprom, 32, 32)
 avrdude: jtagmkII_paged_load(): block_size at addr 0 is 32
 avrdude: jtagmkII_paged_load(): sending read memory command: 
 avrdude: jtagmkII_send(): sending 10 bytes
-avrdude: send: . [1b] . [0e] . [00]
-. [0a] . [00] . [00] . [00]
-. [0e] . [05] " [22]
-  [20] . [00] . [00] . [00]
-. [00] . [14] . [00] . [00]
-. [87] . [15]
+avrdude: ser_send: . [1b] . [0d] . [00] 
+. [0a] . [00] . [00] . [00] 
+. [0e] . [05] " [22] 
+  [20] . [00] . [00] . [00] 
+. [00] . [00] . [00] . [00] 
+b [62] . [c3]

9c894e1: This version reverted to the same behavior as v7.2. It's not a bug anymore.

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

Serial send and receive in windows (-vvvv)

  1. MinGW build with libserialport, using -c urclock.
Click for full debug log
PS>.\avrdude -c urclock -P ch340 -p m328pb -xshowall -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

avrdude: compiled without readline library, cannot use avrdude -t -c urclock interactively
         but it is still possible to pipe: echo "d fl 0 32; quit" | tr \; \\n | avrdude -t -curclock
avrdude: showall set
         Using Port                    : COM4
         Using Programmer              : urclock
avrdude:  251 ms: enter urclock_getsync()
avrdude: ser_send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude:  335 ms: sleeping for 32 ms
avrdude: ser_send:   [20]   [20]
avrdude: ser_recv: . [a0] x [78]
avrdude: ser_send:   [20]   [20]
avrdude: ser_recv: . [a0] x [78]
avrdude: ser_send:   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: ser_send:   [20]
avrdude:  562 ms: all good, ready to rock
         AVR Part                      : ATmega328PB
         Chip Erase delay              : 10500 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                  65    10   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no        224    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no         24    1      0     0     0 0x00 0x00

         Programmer Type : Urclock
         Description     : Urclock programmer for urboot bootloaders using urprotocol
         Urboot protocol for ATmega328PB
avrdude: ser_send: P [50]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: x [78]
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: ur_readEF(urclock, ATmega328PB, flash, 000000fb8ebfbe60, 0x007ffa, 6, F)
avrdude: ser_send: . [03] . [fa] . [7f] . [06]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: . [04] . [00] . [92] . [cf] . [e1] ? [3f]
avrdude: ser_recv: x [78]
avrdude: ur_readEF(urclock, ATmega328PB, flash, 000000fb8ebfbe60, 0x007df5, 11, F)
avrdude: ser_send: . [03] . [f5] } [7d] . [0b]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff]
avrdude: ser_recv: x [78]
avrdude: ur_readEF(urclock, ATmega328PB, eeprom, 000000fb8ebfd660, 0x000101, 6, E)
avrdude: ser_send: . [01] . [01] . [01] . [06]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: . [ff] . [ff] . [ff] . [ff] . [ff] . [ff]
avrdude: ser_recv: x [78]
0000ffffffff 0000-00-00 00.00  application 0 store 0 meta 1 boot 512 u7.7 weu-hprac vector 0 (RESET) ATmega328PB
  1. MSVC build without libserialport, using -c urclock.
Click for full debug log
PS>cd .\avrdude-msvc-x64\
PS>.\avrdude -c urclock -P ch340 -p m328pb -xshowall -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-msvc-x64\avrdude.conf

avrdude: libreadline is used; avrdude -t -c urclock should work interactively
avrdude: showall set
avrdude setport_from_serialadapter() [serialadapter.c:386] error: avrdude built without libserialport support; please compile again with libserialport installed
avrdude main() [main.c:1221] warning: serial adapter ch340 not connected to host
         Using Port                    : ch340
         Using Programmer              : urclock
avrdude ser_open() [ser_win32.c:280] error: cannot open port ch340: The system cannot find the file specified.

avrdude main() [main.c:1280] error: unable to open port ch340 for programmer urclock
avrdude list_available_serialports() [serialadapter.c:396] error: avrdude built without libserialport support; please compile again with libserialport installed

avrdude done.  Thank you.

PS>.\avrdude -c urclock -P COM4 -p m328pb -xshowall -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-msvc-x64\avrdude.conf

avrdude: libreadline is used; avrdude -t -c urclock should work interactively
avrdude: showall set
         Using Port                    : COM4
         Using Programmer              : urclock
avrdude:  191 ms: enter urclock_getsync()
avrdude: ser_send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude:  269 ms: sleeping for 32 ms
avrdude: ser_send:   [20]   [20]
avrdude: ser_recv: . [a0] x [78]
avrdude: ser_send:   [20]   [20]
avrdude: ser_recv: . [a0] x [78]
avrdude: ser_send:   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: ser_send:   [20]
avrdude:  452 ms: all good, ready to rock
         AVR Part                      : ATmega328PB
         Chip Erase delay              : 10500 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65    20     4    0 no       1024    4      0  3600  3600 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                  65    10   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse                   0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0  4500  4500 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no        224    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no         24    1      0     0     0 0x00 0x00

         Programmer Type : Urclock
         Description     : Urclock programmer for urboot bootloaders using urprotocol
         Urboot protocol for ATmega328PB
avrdude: ser_send: P [50]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: x [78]
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: ur_readEF(urclock, ATmega328PB, flash, 000000A25C8FEA20, 0x007ffa, 6, F)
avrdude: ser_send: . [03] . [fa] . [7f] . [06]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: . [04] . [00] . [92] . [cf] . [e1] ? [3f]
avrdude: ser_recv: x [78]
avrdude: ur_readEF(urclock, ATmega328PB, flash, 000000A25C8FEA20, 0x007df5, 11, F)
avrdude: ser_send: . [03] . [f5] } [7d] . [0b]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff] . [ff]
avrdude: ser_recv: x [78]
avrdude: ur_readEF(urclock, ATmega328PB, eeprom, 000000A25C8FE940, 0x000101, 6, E)
avrdude: ser_send: . [01] . [01] . [01] . [06]   [20]
avrdude: ser_recv: . [a0]
avrdude: ser_recv: . [ff] . [ff] . [ff] . [ff] . [ff] . [ff]
avrdude: ser_recv: x [78]
0000ffffffff 0000-00-00 00.00  application 0 store 0 meta 1 boot 512 u7.7 weu-hprac vector 0 (RESET) ATmega328PB

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

Unfortunately I can not test this one.

Serial send and receive in windows over ethernet (-vvvv) --- these are the net_send() and net_recv() functions

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

Usbhid send and receive (-vvvvv) --- one more v the code uses msg_trace2()

  1. MinGW build with hidapi
Click for full debug log
PS>cd .\avrdude-mingw-x86_64\
PS>.\avrdude -c pkobn_updi -p avr64ea48 -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : pkobn_updi
avrdude: jtag3_open_updi()
avrdude: HV UPDI support: 1
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: jtag3_edbg_prepare(): connection status 0x01
avrdude: sending sign-on command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 0 (command_sequence == 0)

Raw message:
01  80  00
[general] OK
         AVR Part                      : AVR64EA48
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       codesize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootsize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         64   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4160    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        512    8      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      65536  128      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity nano (nEDBG) 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: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 1 (command_sequence == 1)

Raw message:
01  84  01  00  01  1b  81  00  00
[general] Data returned:
0x01 0x00 0x01 0x1b 0x81 0x00 0x00
         ICE HW version  : 0
         ICE FW version  : 1.27 (rel. 129)
         Serial number   : MCHP3428031800001161
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x01, section 0, parm 1) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 2 (command_sequence == 2)

Raw message:
01  84  01  01  1b  00
[general] Data returned:
0x01 0x01 0x1b 0x00
avrdude: jtag3_setparm()
avrdude: sending set parameter (scope 0x12, section 0, parm 0) command:
avrdude: jtag3_edbg_send(): sending 7 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 3 (command_sequence == 3)

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: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 4 (command_sequence == 4)

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: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 5 (command_sequence == 5)

Raw message:
12  80  00
[AVR] OK
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x01, section 1, parm 0) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 6 (command_sequence == 6)

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 0) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 7 (command_sequence == 7)

Raw message:
12  84  00  08  00
[AVR] Data returned:
0x00 0x08 0x00
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x12, section 0, parm 0) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 8 (command_sequence == 8)

Raw message:
12  84  00  05  00
[AVR] Data returned:
0x00 0x05 0x00
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x12, section 1, parm 49) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 9 (command_sequence == 9)

Raw message:
12  84  00  64  00  00
[AVR] Data returned:
0x00 0x64 0x00 0x00
         PDI/UPDI clk    : 100 kHz

UPDI SET:
        xd->prog_base_msb=80
        xd->prog_base=0 0
        xd->flash_page_size_msb=0
        xd->flash_page_size=80
        xd->eeprom_page_size=8
        xd->nvmctrl=0 10
        xd->ocd=80 f
        xd->address_mode=1
avrdude: jtag3_setparm()
avrdude: sending set parameter (scope 0x12, section 2, parm 0) command:
avrdude: jtag3_edbg_send(): sending 54 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 10 (command_sequence == 10)

Raw message:
12  80  00
[AVR] OK
avrdude: sending AVR sign-on command:
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 11 (command_sequence == 11)

Raw message:
12  84  00  41  56  52  20  00
[AVR] Data returned:
0x00 0x41 0x56 0x52 0x20 0x00
avrdude: partial Family_ID returned: "AVR "
avrdude: sending read SIB command:
avrdude: jtag3_edbg_send(): sending 12 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 12 (command_sequence == 12)

Raw message:
12  84  00  41  56  52  20  20  20  20  20  50  3a  33  44  3a
31  2d  33  4d  32  20  28  42  31  2e  35  39  46  30  32  2e
30  29  00  00
[AVR] Data returned:
0x00 0x41 0x56 0x52 0x20 0x20 0x20 0x20 0x20 0x50 0x3a 0x33 0x44 0x3a 0x31 0x2d
0x33 0x4d 0x32 0x20 0x28 0x42 0x31 0x2e 0x35 0x39 0x46 0x30 0x32 0x2e 0x30 0x29
0x00 0x00
avrdude: jtag3_read_sib(): received SIB: AVR     P:3D:1-3M2 (B1.59F02.0)
avrdude: jtag3_read_byte(.., io, 0xf01, ...)
avrdude: sending enter progmode command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 13 (command_sequence == 13)

Raw message:
12  80  00
[AVR] OK
avrdude: sending read memory command:
avrdude: jtag3_edbg_send(): sending 12 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 14 (command_sequence == 14)

Raw message:
12  84  00  21  00
[AVR] Data returned:
0x00 0x21 0x00
avrdude: jtag3_read_chip_rev(): received chip silicon revision: 0x21
avrdude: silicon revision: 2.1
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: jtag3_read_byte(.., signature, 0x0, ...)
         mapped to address: 0x1100
avrdude: sending read memory command:
avrdude: jtag3_edbg_send(): sending 12 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 15 (command_sequence == 15)

Raw message:
12  84  00  1e  96  1e  00
[AVR] Data returned:
0x00 0x1e 0x96 0x1e 0x00
avrdude: jtag3_read_byte(.., signature, 0x1, ...)
         mapped to address: 0x1101
Reading | #################                                  | 33% 0.02 s
avrdude: jtag3_read_byte(.., signature, 0x2, ...)
         mapped to address: 0x1102
Reading | ################################################## | 100% 0.03 s
avrdude: device signature = 0x1e961e (probably avr64ea48)
avrdude: sending leave progmode command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 16 (command_sequence == 16)

Raw message:
12  80  00
[AVR] OK
avrdude: jtag3_close()
avrdude: sending AVR sign-off command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 17 (command_sequence == 17)

Raw message:
12  80  00
[AVR] OK
avrdude: sending sign-off command:
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 18 (command_sequence == 18)

Raw message:
01  80  00
[general] OK

avrdude: jtag3_edbg_signoff()

avrdude done.  Thank you.
  1. MSVC build with hidapi
Click for full debug log
PS>cd .\avrdude-msvc-x64\
PS>.\avrdude -c pkobn_updi -p avr64ea48 -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-msvc-x64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : pkobn_updi
avrdude: jtag3_open_updi()
avrdude: HV UPDI support: 1
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: jtag3_edbg_prepare(): connection status 0x01
avrdude: sending sign-on command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 0 (command_sequence == 0)

Raw message:
01  80  00
[general] OK
         AVR Part                      : AVR64EA48
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       codesize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootsize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         64   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4160    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        512    8      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      65536  128      0     0     0 0x00 0x00

         Programmer Type : JTAGICE3_UPDI
         Description     : Curiosity nano (nEDBG) 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: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 1 (command_sequence == 1)

Raw message:
01  84  01  00  01  1b  81  00  00
[general] Data returned:
0x01 0x00 0x01 0x1b 0x81 0x00 0x00
         ICE HW version  : 0
         ICE FW version  : 1.27 (rel. 129)
         Serial number   : MCHP3428031800001161
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x01, section 0, parm 1) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 2 (command_sequence == 2)

Raw message:
01  84  01  01  1b  00
[general] Data returned:
0x01 0x01 0x1b 0x00
avrdude: jtag3_setparm()
avrdude: sending set parameter (scope 0x12, section 0, parm 0) command:
avrdude: jtag3_edbg_send(): sending 7 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 3 (command_sequence == 3)

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: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 4 (command_sequence == 4)

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: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 5 (command_sequence == 5)

Raw message:
12  80  00
[AVR] OK
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x01, section 1, parm 0) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 6 (command_sequence == 6)

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 0) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 7 (command_sequence == 7)

Raw message:
12  84  00  08  00
[AVR] Data returned:
0x00 0x08 0x00
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x12, section 0, parm 0) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 8 (command_sequence == 8)

Raw message:
12  84  00  05  00
[AVR] Data returned:
0x00 0x05 0x00
avrdude: jtag3_getparm()
avrdude: sending get parameter (scope 0x12, section 1, parm 49) command:
avrdude: jtag3_edbg_send(): sending 6 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 9 (command_sequence == 9)

Raw message:
12  84  00  64  00  00
[AVR] Data returned:
0x00 0x64 0x00 0x00
         PDI/UPDI clk    : 100 kHz

UPDI SET:
        xd->prog_base_msb=80
        xd->prog_base=0 0
        xd->flash_page_size_msb=0
        xd->flash_page_size=80
        xd->eeprom_page_size=8
        xd->nvmctrl=0 10
        xd->ocd=80 f
        xd->address_mode=1
avrdude: jtag3_setparm()
avrdude: sending set parameter (scope 0x12, section 2, parm 0) command:
avrdude: jtag3_edbg_send(): sending 54 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 10 (command_sequence == 10)

Raw message:
12  80  00
[AVR] OK
avrdude: sending AVR sign-on command:
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 11 (command_sequence == 11)

Raw message:
12  84  00  41  56  52  20  00
[AVR] Data returned:
0x00 0x41 0x56 0x52 0x20 0x00
avrdude: partial Family_ID returned: "AVR "
avrdude: sending read SIB command:
avrdude: jtag3_edbg_send(): sending 12 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 12 (command_sequence == 12)

Raw message:
12  84  00  41  56  52  20  20  20  20  20  50  3a  33  44  3a
31  2d  33  4d  32  20  28  42  31  2e  35  39  46  30  32  2e
30  29  00  00
[AVR] Data returned:
0x00 0x41 0x56 0x52 0x20 0x20 0x20 0x20 0x20 0x50 0x3a 0x33 0x44 0x3a 0x31 0x2d
0x33 0x4d 0x32 0x20 0x28 0x42 0x31 0x2e 0x35 0x39 0x46 0x30 0x32 0x2e 0x30 0x29
0x00 0x00
avrdude: jtag3_read_sib(): received SIB: AVR     P:3D:1-3M2 (B1.59F02.0)
avrdude: jtag3_read_byte(.., io, 0xf01, ...)
avrdude: sending enter progmode command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 13 (command_sequence == 13)

Raw message:
12  80  00
[AVR] OK
avrdude: sending read memory command:
avrdude: jtag3_edbg_send(): sending 12 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 14 (command_sequence == 14)

Raw message:
12  84  00  21  00
[AVR] Data returned:
0x00 0x21 0x00
avrdude: jtag3_read_chip_rev(): received chip silicon revision: 0x21
avrdude: silicon revision: 2.1
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: jtag3_read_byte(.., signature, 0x0, ...)
         mapped to address: 0x1100
avrdude: sending read memory command:
avrdude: jtag3_edbg_send(): sending 12 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 15 (command_sequence == 15)

Raw message:
12  84  00  1e  96  1e  00
[AVR] Data returned:
0x00 0x1e 0x96 0x1e 0x00
avrdude: jtag3_read_byte(.., signature, 0x1, ...)
         mapped to address: 0x1101
Reading | #################                                  | 33% 0.01 s
avrdude: jtag3_read_byte(.., signature, 0x2, ...)
         mapped to address: 0x1102
Reading | ################################################## | 100% 0.01 s
avrdude: device signature = 0x1e961e (probably avr64ea48)
avrdude: sending leave progmode command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 16 (command_sequence == 16)

Raw message:
12  80  00
[AVR] OK
avrdude: jtag3_close()
avrdude: sending AVR sign-off command:
avrdude: jtag3_edbg_send(): sending 3 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 17 (command_sequence == 17)

Raw message:
12  80  00
[AVR] OK
avrdude: sending sign-off command:
avrdude: jtag3_edbg_send(): sending 4 bytes
avrdude: jtag3_edbg_recv():
avrdude: jtag3_recv(): Got message seqno 18 (command_sequence == 18)

Raw message:
01  80  00
[general] OK

avrdude: jtag3_edbg_signoff()

avrdude done.  Thank you.

@askn37
Copy link
Contributor Author

askn37 commented Nov 3, 2023

avrdude: Version 7.2-20231102 (9c894e15)

avrdude: jtagmkII_read_byte(): sending read memory command: 
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [09] . [00] 
. [0a] . [00] . [00] . [00] 
. [0e] . [05] . [c0] 
. [01] . [00] . [00] . [00] 
. [01] . [0f] . [00] . [01] 
. [93] . [bd]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [09]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [02]
avrdude: ser_recv: l [6c]
avrdude: ser_recv: . [da]

avrdude: jtagmkII_recv(): got message seqno 9 (command_sequence == 9)
avrdude: jtagmkII_recv: . [82] . [02]

Raw message:
0x82 0x02 
memory contents:
0x02  

avrdude: jtagmkII_read_chip_rev(): received chip silicon revision: 0x02
avrdude: silicon revision: 0.2
avrdude: AVR device initialized and ready to accept instructions

This is still a disadvantage for me.

/* Description of AVR067 */
MTYPE_IO_SHADOW    = 0x30  // cached IO registers?
MTYPE_SRAM         = 0x20  // target's SRAM or [ext.] IO registers
MTYPE_EEPROM       = 0x22  // EEPROM, what way?
MTYPE_EVENT        = 0x60  // ICE event memory
MTYPE_SPM          = 0xA0  // flash through LPM/SPM
MTYPE_FLASH_PAGE   = 0xB0  // flash in programming mode
MTYPE_EEPROM_PAGE  = 0xB1  // EEPROM in programming mode
MTYPE_FUSE_BITS    = 0xB2  // fuse bits in programming mode
MTYPE_LOCK_BITS    = 0xB3  // lock bits in programming mode
MTYPE_SIGN_JTAG    = 0xB4  // signature in programming mode
MTYPE_OSCCAL_BYTE  = 0xB5  // osccal cells in programming mode
MTYPE_CAN          = 0xB6  // CAN mailbox
MTYPE_XMEGA_FLASH  = 0xC0  // xmega (app.) flash (AVR067: XMEGA_APPLICATION_FLASH)
MTYPE_BOOT_FLASH   = 0xC1  // xmega boot flash
MTYPE_EEPROM_XMEGA = 0xC4  // xmega EEPROM in debug mode
MTYPE_USERSIG      = 0xC5  // xmega user signature (AVR067: XMEGA_USER_SIGNATURE)
MTYPE_PRODSIG      = 0xC6  // xmega production signature (AVR067: XMEGA_CALIBRATION_SIGNATURE)

Can someone clearly explain why the IO data memory bus is configured with MTYPE_XMEGA_FLASH=0xC0? This label is originally intended to refer to the code address bus after APPCODE. It must be a coincidence that I happen to be able to read the data bus.

In case you forgot, the AVR is a Harvard architecture, so the code address bus (word granularity) and data address bus (byte granularity) are completely different. Please use them with strict distinction. The same is true for PDI, UPDI, and JTAG. MTYPE is a guideline for that purpose. Don't take it lightly!

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

@stefanrueger

Just want to add some debug logs with similar testing devices as @MCUdude, but tested using latest PR #1538 under Windows with MSYS2 mingw64 build wth traces.

Which programmer expects -c jtag2updi and has FW 7 or above?

@stefanrueger none that I'm aware of. For reference, I've gathered the FW version of the Arduino Nano Every, Thinary Nano Every and a DIY jtag2updi:

This is the output from my official Arduino Nano Every:

My debug log. I got slightly newer FW version compared to Hans: S_MCU FW version: 6.07.

You can also see that -r function works fine.

Click for full debug log for official Arduino Nano Every
PS>.\avrdude -c jtag2updi -P COM12 -p atmega4809 -vvvv -r

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

avrdude: touching serial port COM12 at 1200 baud
avrdude: waiting for new port... using same port COM12
         Using Port                    : COM12
         Using Programmer              : jtag2updi
avrdude: jtagmkII_open_pdi()
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync() attempt 1 of 10: sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [1d]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [86] . [01] . [01] . [07] . [01] . [01] . [01] . [07] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00]
avrdude: ser_recv: o [6f]
avrdude: ser_recv: V [56]

avrdude: jtagmkII_recv(): got message seqno 0 (command_sequence == 0)
avrdude: jtagmkII_recv: . [86] . [01] . [01] . [07] . [01] . [01] . [01] . [07] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00]

Raw message:
0x86 0x01 0x01 0x07 0x01 0x01 0x01 0x07 0x06 0x01 0x00 0x00 0x00 0x00 0x00 0x00
0x4a 0x54 0x41 0x47 0x49 0x43 0x45 0x20 0x6d 0x6b 0x49 0x49 0x00
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              1.07
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.07
  hardware version:              1
Serial number:                   00:00:00:00:00:00
Device ID:                       JTAGICE mkII
avrdude: jtagmkII_getsync(): using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm emulator_mode 0x03, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: ser_send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [cd]
avrdude: ser_recv: . [83]

avrdude: jtagmkII_recv(): got message seqno 1 (command_sequence == 1)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_getsync(): sending get sync command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . [0f] . [e2] u [75]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [1d]
avrdude: ser_recv: . [09]

avrdude: jtagmkII_recv(): got message seqno 2 (command_sequence == 2)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

         AVR Part                      : ATmega4809
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         10    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4352    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         64   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        256   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      49152  128      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_UPDI
         Description     : JTAGv2 to UPDI bridge
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [03] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [01] . [d3] . [99]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [81] . [01] . [01]
avrdude: ser_recv: . [ed]
avrdude: ser_recv: . [cd]

avrdude: jtagmkII_recv(): got message seqno 3 (command_sequence == 3)
avrdude: jtagmkII_recv: . [81] . [01] . [01]

Raw message:
0x81 0x01 0x01
parameter values:
0x01  0x01

avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [02] . [aa] B [42]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [81] . [07] . [01] . [07] . [06]
avrdude: ser_recv: . [e6]
avrdude: ser_recv: M [4d]

avrdude: jtagmkII_recv(): got message seqno 4 (command_sequence == 4)
avrdude: jtagmkII_recv: . [81] . [07] . [01] . [07] . [06]

Raw message:
0x81 0x07 0x01 0x07 0x06
parameter values:
0x07  0x01  0x07  0x06

         M_MCU HW version: 1
         M_MCU FW version: 1.07
         S_MCU HW version: 1
         S_MCU FW version: 6.07
         Serial number   : 00:00:00:00:00:00
avrdude: jtagmkII_initialize(): trying to set baudrate to 115200
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm baud_rate 0x05, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: ser_send: . [1b] . [05] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [05] . [07] . [e1] . [c4]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [13]
avrdude: ser_recv: . [95]

avrdude: jtagmkII_recv(): got message seqno 5 (command_sequence == 5)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command:
avrdude: jtagmkII_send(): sending 299 bytes
avrdude: ser_send: . [1b] . [06] . [00] + [2b] . [01] . [00] . [00] . [0e] . [0c] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [c0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [01] . [00] . [00] . [00] . [80] _ [5f] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] ? [3f] . [00] ; [3b] . [17]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [06]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [c3]
avrdude: ser_recv: . [1f]

avrdude: jtagmkII_recv(): got message seqno 6 (command_sequence == 6)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_reset(): sending reset command:
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [07] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] . [f6] h [68]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [07]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: | [7c]
avrdude: ser_recv: . [9e]

avrdude: jtagmkII_recv(): got message seqno 7 (command_sequence == 7)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_read_byte(.., io, 0xf01, ...)
avrdude: jtagmkII_program_enable(): Sending enter progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [08] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] c [63] . [fd]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [08]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [ce]
avrdude: ser_recv: / [2f]

avrdude: jtagmkII_recv(): got message seqno 8 (command_sequence == 8)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_program_enable(): Sending enter progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [09] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] . [dc] | [7c]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [09]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: q [71]
avrdude: ser_recv: . [ae]

avrdude: jtagmkII_recv(): got message seqno 9 (command_sequence == 9)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0a] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [c0] . [01] . [00] . [00] . [00] . [01] . [0f] . [00] . [01] . [82] . [8d]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [01]
avrdude: ser_recv: . [f0]
avrdude: ser_recv: > [3e]

avrdude: jtagmkII_recv(): got message seqno 10 (command_sequence == 10)
avrdude: jtagmkII_recv: . [82] . [01]

Raw message:
0x82 0x01
memory contents:
0x01

avrdude: jtagmkII_read_chip_rev(): received chip silicon revision: 0x01
avrdude: silicon revision: 0.1
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: jtagmkII_read_byte(.., signature, 0x0, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0b] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [00] . [11] . [00] . [00] . [1a] . [d4]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [1e]
avrdude: ser_recv: { [7b]
avrdude: ser_recv: . [9b]

avrdude: jtagmkII_recv(): got message seqno 11 (command_sequence == 11)
avrdude: jtagmkII_recv: . [82] . [1e]

Raw message:
0x82 0x1e
memory contents:
0x1e

avrdude: jtagmkII_read_byte(.., signature, 0x1, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0c] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [01] . [11] . [00] . [00] . [8c] . [b8]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0c]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [96]
avrdude: ser_recv: . [d9]
avrdude: ser_recv: z [7a]

avrdude: jtagmkII_recv(): got message seqno 12 (command_sequence == 12)
avrdude: jtagmkII_recv: . [82] . [96]

Raw message:
0x82 0x96
memory contents:
0x96

Reading | #################                                  | 33% 0.06 s
avrdude: jtagmkII_read_byte(.., signature, 0x2, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0d] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [02] . [11] . [00] . [00] N [4e] . [8d]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0d]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] Q [51]
avrdude: ser_recv: . [97]
avrdude: ser_recv: . [85]

avrdude: jtagmkII_recv(): got message seqno 13 (command_sequence == 13)
avrdude: jtagmkII_recv: . [82] Q [51]

Raw message:
0x82 0x51
memory contents:
0x51

Reading | ################################################## | 100% 0.10 s
avrdude: device signature = 0x1e9651 (probably m4809)
avrdude: jtagmkII_program_disable(): Sending leave progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [0e] . [00] . [01] . [00] . [00] . [00] . [0e] . [15] [ [5b] . [f1]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [7f]
avrdude: ser_recv: 2 [32]

avrdude: jtagmkII_recv(): got message seqno 14 (command_sequence == 14)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_reset(): sending reset command:
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [0f] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] < [3c] . [17]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0f]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [c0]
avrdude: ser_recv: . [b3]

avrdude: jtagmkII_recv(): got message seqno 15 (command_sequence == 15)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): sending GO command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [10] . [00] . [01] . [00] . [00] . [00] . [0e] . [08] J [4a] Q [51]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [10]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: Y [59]

avrdude: jtagmkII_recv(): got message seqno 16 (command_sequence == 16)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_close(): sending sign-off command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [11] . [00] . [01] . [00] . [00] . [00] . [0e] . [00] . [bd] \ [5c]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [11]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [b5]
avrdude: ser_recv: . [d8]

avrdude: jtagmkII_recv(): got message seqno 17 (command_sequence == 17)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK


avrdude done.  Thank you.

And this is the output from from the Thinary Nano Every (Atmega4808 based):

My debug log under Windows with MSYS2 mingw64 binary (with libserialport)
Same FW version as Hans. S_MCU FW version: 6.00

Click for full debug log for Nano Every ATmega4808
PS>.\avrdude -c jtag2updi -P Ch340 -p atmega4808 -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : COM11
         Using Programmer              : jtag2updi
avrdude: jtagmkII_open_pdi()
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync() attempt 1 of 10: sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [1d]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [0a] . [0b] . [0c] . [0d] . [0e] . [0f] T [54] h [68] i [69] n [6e] a [61] r [72] y [79]   [20] m [6d] k [6b] I [49] I [49] . [00]
avrdude: ser_recv: f [66]
avrdude: ser_recv: : [3a]

avrdude: jtagmkII_recv(): got message seqno 0 (command_sequence == 0)
avrdude: jtagmkII_recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [0a] . [0b] . [0c] . [0d] . [0e] . [0f] T [54] h [68] i [69] n [6e] a [61] r [72] y [79]   [20] m [6d] k [6b] I [49] I [49] . [00]

Raw message:
0x86 0x01 0x01 0x00 0x06 0x01 0x01 0x00 0x06 0x01 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f
0x54 0x68 0x69 0x6e 0x61 0x72 0x79 0x20 0x6d 0x6b 0x49 0x49 0x00
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
Serial number:                   0a:0b:0c:0d:0e:0f
Device ID:                       Thinary mkII
avrdude: jtagmkII_getsync(): using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm emulator_mode 0x03, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: ser_send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [cd]
avrdude: ser_recv: . [83]

avrdude: jtagmkII_recv(): got message seqno 1 (command_sequence == 1)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_getsync(): sending get sync command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . [0f] . [e2] u [75]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [1d]
avrdude: ser_recv: . [09]

avrdude: jtagmkII_recv(): got message seqno 2 (command_sequence == 2)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

         AVR Part                      : ATmega4808
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         10    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4352    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         64   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        256   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      49152  128      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_UPDI
         Description     : JTAGv2 to UPDI bridge
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [03] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [01] . [d3] . [99]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [81] . [01] . [01]
avrdude: ser_recv: . [ed]
avrdude: ser_recv: . [cd]

avrdude: jtagmkII_recv(): got message seqno 3 (command_sequence == 3)
avrdude: jtagmkII_recv: . [81] . [01] . [01]

Raw message:
0x81 0x01 0x01
parameter values:
0x01  0x01

avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [02] . [aa] B [42]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [81] . [00] . [06] . [00] . [06]
avrdude: ser_recv: . [ca]
avrdude: ser_recv: . [db]

avrdude: jtagmkII_recv(): got message seqno 4 (command_sequence == 4)
avrdude: jtagmkII_recv: . [81] . [00] . [06] . [00] . [06]

Raw message:
0x81 0x00 0x06 0x00 0x06
parameter values:
0x00  0x06  0x00  0x06

         M_MCU HW version: 1
         M_MCU FW version: 6.00
         S_MCU HW version: 1
         S_MCU FW version: 6.00
         Serial number   : 0a:0b:0c:0d:0e:0f
avrdude: jtagmkII_initialize(): trying to set baudrate to 115200
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm baud_rate 0x05, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: ser_send: . [1b] . [05] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [05] . [07] . [e1] . [c4]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [13]
avrdude: ser_recv: . [95]

avrdude: jtagmkII_recv(): got message seqno 5 (command_sequence == 5)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command:
avrdude: jtagmkII_send(): sending 299 bytes
avrdude: ser_send: . [1b] . [06] . [00] + [2b] . [01] . [00] . [00] . [0e] . [0c] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [c0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [01] . [00] . [00] . [00] . [80] _ [5f] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] ? [3f] . [00] ; [3b] . [17]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [06]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [c3]
avrdude: ser_recv: . [1f]

avrdude: jtagmkII_recv(): got message seqno 6 (command_sequence == 6)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_reset(): sending reset command:
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [07] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] . [f6] h [68]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [07]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: | [7c]
avrdude: ser_recv: . [9e]

avrdude: jtagmkII_recv(): got message seqno 7 (command_sequence == 7)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_read_byte(.., io, 0xf01, ...)
avrdude: jtagmkII_program_enable(): Sending enter progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [08] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] c [63] . [fd]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [08]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [ce]
avrdude: ser_recv: / [2f]

avrdude: jtagmkII_recv(): got message seqno 8 (command_sequence == 8)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_program_enable(): Sending enter progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [09] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] . [dc] | [7c]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [09]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: q [71]
avrdude: ser_recv: . [ae]

avrdude: jtagmkII_recv(): got message seqno 9 (command_sequence == 9)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0a] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [c0] . [01] . [00] . [00] . [00] . [01] . [0f] . [00] . [01] . [82] . [8d]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [01]
avrdude: ser_recv: . [f0]
avrdude: ser_recv: > [3e]

avrdude: jtagmkII_recv(): got message seqno 10 (command_sequence == 10)
avrdude: jtagmkII_recv: . [82] . [01]

Raw message:
0x82 0x01
memory contents:
0x01

avrdude: jtagmkII_read_chip_rev(): received chip silicon revision: 0x01
avrdude: silicon revision: 0.1
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: jtagmkII_read_byte(.., signature, 0x0, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0b] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [00] . [11] . [00] . [00] . [1a] . [d4]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [1e]
avrdude: ser_recv: { [7b]
avrdude: ser_recv: . [9b]

avrdude: jtagmkII_recv(): got message seqno 11 (command_sequence == 11)
avrdude: jtagmkII_recv: . [82] . [1e]

Raw message:
0x82 0x1e
memory contents:
0x1e

avrdude: jtagmkII_read_byte(.., signature, 0x1, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0c] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [01] . [11] . [00] . [00] . [8c] . [b8]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0c]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [96]
avrdude: ser_recv: . [d9]
avrdude: ser_recv: z [7a]

avrdude: jtagmkII_recv(): got message seqno 12 (command_sequence == 12)
avrdude: jtagmkII_recv: . [82] . [96]

Raw message:
0x82 0x96
memory contents:
0x96

Reading | #################                                  | 33% 0.06 s
avrdude: jtagmkII_read_byte(.., signature, 0x2, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0d] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [02] . [11] . [00] . [00] N [4e] . [8d]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0d]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] P [50]
avrdude: ser_recv: . [1e]
avrdude: ser_recv: . [94]

avrdude: jtagmkII_recv(): got message seqno 13 (command_sequence == 13)
avrdude: jtagmkII_recv: . [82] P [50]

Raw message:
0x82 0x50
memory contents:
0x50

Reading | ################################################## | 100% 0.10 s
avrdude: device signature = 0x1e9650 (probably m4808)
avrdude: jtagmkII_program_disable(): Sending leave progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [0e] . [00] . [01] . [00] . [00] . [00] . [0e] . [15] [ [5b] . [f1]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [7f]
avrdude: ser_recv: 2 [32]

avrdude: jtagmkII_recv(): got message seqno 14 (command_sequence == 14)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_reset(): sending reset command:
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [0f] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] < [3c] . [17]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0f]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [c0]
avrdude: ser_recv: . [b3]

avrdude: jtagmkII_recv(): got message seqno 15 (command_sequence == 15)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): sending GO command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [10] . [00] . [01] . [00] . [00] . [00] . [0e] . [08] J [4a] Q [51]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [10]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: Y [59]

avrdude: jtagmkII_recv(): got message seqno 16 (command_sequence == 16)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_close(): sending sign-off command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [11] . [00] . [01] . [00] . [00] . [00] . [0e] . [00] . [bd] \ [5c]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [11]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [b5]
avrdude: ser_recv: . [d8]

avrdude: jtagmkII_recv(): got message seqno 17 (command_sequence == 17)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK


avrdude done.  Thank you.

And this is from a DIY jtag2updi I don't know when I flashed with the latest firmware available. Probably a year ago:

This is my debug log under Windows using MSYS2 ming64 build (with libserialport). Same FW version as Hans.
DIY jtag2updi, using a CH340 Uno Clone.

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
Serial number:                   00:00:00:00:00:00
Device ID:                       JTAGICE mkII
Click for full debug log for a DIY jtag2updi, using a CH340 Uno Clone
PS>.\avrdude -c jtag2updi -P Ch340 -p atmega4808 -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : COM4
         Using Programmer              : jtag2updi
avrdude: jtagmkII_open_pdi()
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync() attempt 1 of 10: sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [1d]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00]
avrdude: ser_recv: < [3c]
avrdude: ser_recv: . [7f]

avrdude: jtagmkII_recv(): got message seqno 0 (command_sequence == 0)
avrdude: jtagmkII_recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45]   [20] m [6d] k [6b] I [49] I [49] . [00]

Raw message:
0x86 0x01 0x01 0x00 0x06 0x01 0x01 0x00 0x06 0x01 0x00 0x00 0x00 0x00 0x00 0x00
0x4a 0x54 0x41 0x47 0x49 0x43 0x45 0x20 0x6d 0x6b 0x49 0x49 0x00
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
S_MCU:
  boot-loader FW version:        1
  firmware version:              6.00
  hardware version:              1
Serial number:                   00:00:00:00:00:00
Device ID:                       JTAGICE mkII
avrdude: jtagmkII_getsync(): using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm emulator_mode 0x03, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: ser_send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [cd]
avrdude: ser_recv: . [83]

avrdude: jtagmkII_recv(): got message seqno 1 (command_sequence == 1)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_getsync(): sending get sync command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . [0f] . [e2] u [75]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [1d]
avrdude: ser_recv: . [09]

avrdude: jtagmkII_recv(): got message seqno 2 (command_sequence == 2)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

         AVR Part                      : ATmega4808
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         10    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       append      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootend     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         10    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osccal16                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osccal20                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osc16err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           osc20err                0     0     0    0 no          2    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4352    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         64   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        256   64      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      49152  128      0     0     0 0x00 0x00

         Programmer Type : JTAGMKII_UPDI
         Description     : JTAGv2 to UPDI bridge
avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [03] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [01] . [d3] . [99]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [03]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [81] . [01] . [01]
avrdude: ser_recv: . [ed]
avrdude: ser_recv: . [cd]

avrdude: jtagmkII_recv(): got message seqno 3 (command_sequence == 3)
avrdude: jtagmkII_recv: . [81] . [01] . [01]

Raw message:
0x81 0x01 0x01
parameter values:
0x01  0x01

avrdude: jtagmkII_getparm()
avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02):
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [02] . [aa] B [42]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [04]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [81] . [00] . [06] . [00] . [06]
avrdude: ser_recv: . [ca]
avrdude: ser_recv: . [db]

avrdude: jtagmkII_recv(): got message seqno 4 (command_sequence == 4)
avrdude: jtagmkII_recv: . [81] . [00] . [06] . [00] . [06]

Raw message:
0x81 0x00 0x06 0x00 0x06
parameter values:
0x00  0x06  0x00  0x06

         M_MCU HW version: 1
         M_MCU FW version: 6.00
         S_MCU HW version: 1
         S_MCU FW version: 6.00
         Serial number   : 00:00:00:00:00:00
avrdude: jtagmkII_initialize(): trying to set baudrate to 115200
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm baud_rate 0x05, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: ser_send: . [1b] . [05] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [05] . [07] . [e1] . [c4]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [05]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [13]
avrdude: ser_recv: . [95]

avrdude: jtagmkII_recv(): got message seqno 5 (command_sequence == 5)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command:
avrdude: jtagmkII_send(): sending 299 bytes
avrdude: ser_send: . [1b] . [06] . [00] + [2b] . [01] . [00] . [00] . [0e] . [0c] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [c0] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [80] . [01] . [00] . [00] . [00] . [80] _ [5f] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] ? [3f] . [00] ; [3b] . [17]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [06]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [c3]
avrdude: ser_recv: . [1f]

avrdude: jtagmkII_recv(): got message seqno 6 (command_sequence == 6)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_reset(): sending reset command:
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [07] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] . [f6] h [68]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [07]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: | [7c]
avrdude: ser_recv: . [9e]

avrdude: jtagmkII_recv(): got message seqno 7 (command_sequence == 7)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_read_byte(.., io, 0xf01, ...)
avrdude: jtagmkII_program_enable(): Sending enter progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [08] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] c [63] . [fd]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [08]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [ce]
avrdude: ser_recv: / [2f]

avrdude: jtagmkII_recv(): got message seqno 8 (command_sequence == 8)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_program_enable(): Sending enter progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [09] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] . [dc] | [7c]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [09]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: q [71]
avrdude: ser_recv: . [ae]

avrdude: jtagmkII_recv(): got message seqno 9 (command_sequence == 9)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0a] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [c0] . [01] . [00] . [00] . [00] . [01] . [0f] . [00] . [01] . [82] . [8d]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [01]
avrdude: ser_recv: . [f0]
avrdude: ser_recv: > [3e]

avrdude: jtagmkII_recv(): got message seqno 10 (command_sequence == 10)
avrdude: jtagmkII_recv: . [82] . [01]

Raw message:
0x82 0x01
memory contents:
0x01

avrdude: jtagmkII_read_chip_rev(): received chip silicon revision: 0x01
avrdude: silicon revision: 0.1
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: jtagmkII_read_byte(.., signature, 0x0, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0b] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [00] . [11] . [00] . [00] . [1a] . [d4]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0b]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [1e]
avrdude: ser_recv: { [7b]
avrdude: ser_recv: . [9b]

avrdude: jtagmkII_recv(): got message seqno 11 (command_sequence == 11)
avrdude: jtagmkII_recv: . [82] . [1e]

Raw message:
0x82 0x1e
memory contents:
0x1e

avrdude: jtagmkII_read_byte(.., signature, 0x1, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0c] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [01] . [11] . [00] . [00] . [8c] . [b8]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0c]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] . [96]
avrdude: ser_recv: . [d9]
avrdude: ser_recv: z [7a]

avrdude: jtagmkII_recv(): got message seqno 12 (command_sequence == 12)
avrdude: jtagmkII_recv: . [82] . [96]

Raw message:
0x82 0x96
memory contents:
0x96

Reading | #################                                  | 33% 0.07 s
avrdude: jtagmkII_read_byte(.., signature, 0x2, ...)
avrdude: jtagmkII_read_byte(): sending read memory command:
avrdude: jtagmkII_send(): sending 10 bytes
avrdude: ser_send: . [1b] . [0d] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [02] . [11] . [00] . [00] N [4e] . [8d]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0d]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [02]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [82] P [50]
avrdude: ser_recv: . [1e]
avrdude: ser_recv: . [94]

avrdude: jtagmkII_recv(): got message seqno 13 (command_sequence == 13)
avrdude: jtagmkII_recv: . [82] P [50]

Raw message:
0x82 0x50
memory contents:
0x50

Reading | ################################################## | 100% 0.11 s
avrdude: device signature = 0x1e9650 (probably m4808)
avrdude: jtagmkII_program_disable(): Sending leave progmode command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [0e] . [00] . [01] . [00] . [00] . [00] . [0e] . [15] [ [5b] . [f1]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [7f]
avrdude: ser_recv: 2 [32]

avrdude: jtagmkII_recv(): got message seqno 14 (command_sequence == 14)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_reset(): sending reset command:
avrdude: jtagmkII_send(): sending 2 bytes
avrdude: ser_send: . [1b] . [0f] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] < [3c] . [17]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [0f]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [c0]
avrdude: ser_recv: . [b3]

avrdude: jtagmkII_recv(): got message seqno 15 (command_sequence == 15)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): sending GO command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [10] . [00] . [01] . [00] . [00] . [00] . [0e] . [08] J [4a] Q [51]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [10]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [0a]
avrdude: ser_recv: Y [59]

avrdude: jtagmkII_recv(): got message seqno 16 (command_sequence == 16)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK

avrdude: jtagmkII_close(): sending sign-off command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: ser_send: . [1b] . [11] . [00] . [01] . [00] . [00] . [00] . [0e] . [00] . [bd] \ [5c]
avrdude: jtagmkII_recv():
avrdude: ser_recv: . [1b]
avrdude: ser_recv: . [11]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [01]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_recv: . [0e]
avrdude: ser_recv: . [80]
avrdude: ser_recv: . [b5]
avrdude: ser_recv: . [d8]

avrdude: jtagmkII_recv(): got message seqno 17 (command_sequence == 17)
avrdude: jtagmkII_recv: . [80]

Raw message:
0x80
OK


avrdude done.  Thank you.

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

One more searial trace for Windows with MSYS2 mingw64 build (with libserialport) using -c serialupdi.

Take note I have to use -b 57600 as this is a known issue with MSYS2 mingw compiler.

Click for full debug log for serialupdi with AVR64DD32
PS>.\avrdude -c serialupdi -P Ch340 -p avr64dd32 -vvvv -b 57600

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : COM11
         Using Programmer              : serialupdi
         Overriding Baud Rate          : 57600
avrdude: opening serial port ...
avrdude: sending 1 bytes [0x00]
avrdude: ser_send: . [00]
avrdude: ser_recv: . [00]
         AVR Part                      : AVR64DD32
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuses                   0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5       syscfg0     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse6       syscfg1     0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse7       codesize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse8       bootsize    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no        128  128      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           tempsense               0     0     0    0 no          4    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sernum                  0     0     0    0 no         16    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           userrow     usersig     0     0     0    0 no         32   32      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4160    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           sib                     0     0     0    0 no         32    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no        256    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      65536  512      0     0     0 0x00 0x00

         Programmer Type : serialupdi
         Description     : SerialUPDI
avrdude: STCS 0x08 to address 0x03
avrdude: sending 3 bytes [0x55, 0xc3, 0x08]
avrdude: ser_send: U [55] . [c3] . [08]
avrdude: ser_recv: . [00] . [d8] . [f8]
avrdude: STCS 0x80 to address 0x02
avrdude: sending 3 bytes [0x55, 0xc2, 0x80]
avrdude: ser_send: U [55] . [c2] . [80]
avrdude: ser_recv: U [55] . [c2] . [80]
avrdude: LDCS from 0x00
avrdude: sending 2 bytes [0x55, 0x80]
avrdude: ser_send: U [55] . [80]
avrdude: ser_recv: U [55] . [80]
avrdude: ser_recv(): programmer is not responding
avrdude: serialupdi_recv(): programmer is not responding
avrdude: check failed
avrdude: datalink not active, resetting ...
avrdude: sending double break
avrdude: ser_send: . [00]
avrdude: ser_recv: . [00]
avrdude: ser_send: . [00]
avrdude: ser_recv: . [00]
avrdude: STCS 0x08 to address 0x03
avrdude: sending 3 bytes [0x55, 0xc3, 0x08]
avrdude: ser_send: U [55] . [c3] . [08]
avrdude: ser_recv: U [55] . [c3] . [08]
avrdude: STCS 0x80 to address 0x02
avrdude: sending 3 bytes [0x55, 0xc2, 0x80]
avrdude: ser_send: U [55] . [c2] . [80]
avrdude: ser_recv: U [55] . [c2] . [80]
avrdude: LDCS from 0x00
avrdude: sending 2 bytes [0x55, 0x80]
avrdude: ser_send: U [55] . [80]
avrdude: ser_recv: U [55] . [80]
avrdude: ser_recv: 0 [30]
avrdude: received 1 bytes [0x30]
avrdude: UDPI init OK
avrdude: UPDI link initialization OK
avrdude: LDCS from 0x0B
avrdude: sending 2 bytes [0x55, 0x8b]
avrdude: ser_send: U [55] . [8b]
avrdude: ser_recv: U [55] . [8b]
avrdude: ser_recv: . [92]
avrdude: received 1 bytes [0x92]
avrdude: device is in SLEEP mode
avrdude: sending 2 bytes [0x55, 0xe6]
avrdude: ser_send: U [55] . [e6]
avrdude: ser_recv: U [55] . [e6]
avrdude: ser_recv: A [41] V [56] R [52]   [20]   [20]   [20]   [20]   [20] P [50] : [3a] 2 [32] D [44] : [3a] 1 [31] - [2d] 3 [33] M [4d] 2 [32]   [20] ( [28] A [41] 3 [33] . [2e] K [4b] V [56] 0 [30] 0 [30] K [4b] . [2e] 0 [30] ) [29] . [00]
avrdude: received 32 bytes [0x41, 0x56, 0x52, 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x3a, 0x32, 0x44, 0x3a, 0x31, 0x2d, 0x33, 0x4d, 0x32, 0x20, 0x28, 0x41, 0x33, 0x2e, 0x4b, 0x56, 0x30, 0x30, 0x4b, 0x2e, 0x30, 0x29, 0x00]
avrdude: received SIB: [AVR     P:2D:1-3M2 (A3.KV00K.0)]
avrdude: Device family ID: AVR
avrdude: NVM interface: P:2
avrdude: Debug interface: D:1
avrdude: PDI oscillator: 3M2
avrdude: Extra information: (A3.KV00K.0)
avrdude: NVM type 2: 24-bit, word oriented write
avrdude: reading 1 bytes from 0x000F01
avrdude: ST_PTR to 0x000F01
avrdude: sending 5 bytes [0x55, 0x6a, 0x01, 0x0f, 0x00]
avrdude: ser_send: U [55] j [6a] . [01] . [0f] . [00]
avrdude: ser_recv: U [55] j [6a] . [01] . [0f] . [00]
avrdude: ser_recv: @ [40]
avrdude: received 1 bytes [0x40]
avrdude: LD8 from ptr++
avrdude: sending 2 bytes [0x55, 0x24]
avrdude: ser_send: U [55] $ [24]
avrdude: ser_recv: U [55] $ [24]
avrdude: ser_recv: . [13]
avrdude: received 1 bytes [0x13]
avrdude: Received chip silicon revision 0x13
avrdude: Chip silicon revision: 1.3
avrdude: STCS 0x08 to address 0x03
avrdude: sending 3 bytes [0x55, 0xc3, 0x08]
avrdude: ser_send: U [55] . [c3] . [08]
avrdude: ser_recv: U [55] . [c3] . [08]
avrdude: STCS 0x80 to address 0x02
avrdude: sending 3 bytes [0x55, 0xc2, 0x80]
avrdude: ser_send: U [55] . [c2] . [80]
avrdude: ser_recv: U [55] . [c2] . [80]
avrdude: LDCS from 0x00
avrdude: sending 2 bytes [0x55, 0x80]
avrdude: ser_send: U [55] . [80]
avrdude: ser_recv: U [55] . [80]
avrdude: ser_recv: 0 [30]
avrdude: received 1 bytes [0x30]
avrdude: UDPI init OK
avrdude: entering NVM programming mode
avrdude: LDCS from 0x0B
avrdude: sending 2 bytes [0x55, 0x8b]
avrdude: ser_send: U [55] . [8b]
avrdude: ser_recv: U [55] . [8b]
avrdude: ser_recv: . [92]
avrdude: received 1 bytes [0x92]
avrdude: UPDI writing key
avrdude: sending 2 bytes [0x55, 0xe0]
avrdude: ser_send: U [55] . [e0]
avrdude: ser_recv: U [55] . [e0]
avrdude: sending 8 bytes [0x20, 0x67, 0x6f, 0x72, 0x50, 0x4d, 0x56, 0x4e]
avrdude: ser_send:   [20] g [67] o [6f] r [72] P [50] M [4d] V [56] N [4e]
avrdude: ser_recv:   [20] g [67] o [6f] r [72] P [50] M [4d] V [56] N [4e]
avrdude: LDCS from 0x07
avrdude: sending 2 bytes [0x55, 0x87]
avrdude: ser_send: U [55] . [87]
avrdude: ser_recv: U [55] . [87]
avrdude: ser_recv: . [10]
avrdude: received 1 bytes [0x10]
avrdude: key status: 0x10
avrdude: sending reset request
avrdude: STCS 0x59 to address 0x08
avrdude: sending 3 bytes [0x55, 0xc8, 0x59]
avrdude: ser_send: U [55] . [c8] Y [59]
avrdude: ser_recv: U [55] . [c8] Y [59]
avrdude: sending release reset request
avrdude: STCS 0x00 to address 0x08
avrdude: sending 3 bytes [0x55, 0xc8, 0x00]
avrdude: ser_send: U [55] . [c8] . [00]
avrdude: ser_recv: U [55] . [c8] . [00]
avrdude: LDCS from 0x0B
avrdude: sending 2 bytes [0x55, 0x8b]
avrdude: ser_send: U [55] . [8b]
avrdude: ser_recv: U [55] . [8b]
avrdude: ser_recv: 8 [38]
avrdude: received 1 bytes [0x38]
avrdude: LDCS from 0x0B
avrdude: sending 2 bytes [0x55, 0x8b]
avrdude: ser_send: U [55] . [8b]
avrdude: ser_recv: U [55] . [8b]
avrdude: ser_recv: . [08]
avrdude: received 1 bytes [0x08]
avrdude: entered NVM programming mode
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: LDCS from 0x0B
avrdude: sending 2 bytes [0x55, 0x8b]
avrdude: ser_send: U [55] . [8b]
avrdude: ser_recv: U [55] . [8b]
avrdude: ser_recv: . [08]
avrdude: received 1 bytes [0x08]
avrdude: LD from 0x001100
avrdude: sending 5 bytes [0x55, 0x08, 0x00, 0x11, 0x00]
avrdude: ser_send: U [55] . [08] . [00] . [11] . [00]
avrdude: ser_recv: U [55] . [08] . [00] . [11] . [00]
avrdude: ser_recv: . [1e]
avrdude: received 1 bytes [0x1e]
avrdude: LD from 0x001101
avrdude: sending 5 bytes [0x55, 0x08, 0x01, 0x11, 0x00]
avrdude: ser_send: U [55] . [08] . [01] . [11] . [00]
avrdude: ser_recv: U [55] . [08] . [01] . [11] . [00]
avrdude: ser_recv: . [96]
avrdude: received 1 bytes [0x96]
avrdude: LD from 0x001102
avrdude: sending 5 bytes [0x55, 0x08, 0x02, 0x11, 0x00]
avrdude: ser_send: U [55] . [08] . [02] . [11] . [00]
avrdude: ser_recv: U [55] . [08] . [02] . [11] . [00]
avrdude: ser_recv: . [1a]
avrdude: received 1 bytes [0x1a]
Reading | ################################################## | 100% 0.05 s
avrdude: device signature = 0x1e961a (probably avr64dd32)
avrdude: leaving NVM programming mode
avrdude: sending reset request
avrdude: STCS 0x59 to address 0x08
avrdude: sending 3 bytes [0x55, 0xc8, 0x59]
avrdude: ser_send: U [55] . [c8] Y [59]
avrdude: ser_recv: U [55] . [c8] Y [59]
avrdude: sending release reset request
avrdude: STCS 0x00 to address 0x08
avrdude: sending 3 bytes [0x55, 0xc8, 0x00]
avrdude: ser_send: U [55] . [c8] . [00]
avrdude: ser_recv: U [55] . [c8] . [00]
avrdude: STCS 0x0C to address 0x03
avrdude: sending 3 bytes [0x55, 0xc3, 0x0c]
avrdude: ser_send: U [55] . [c3] . [0c]
avrdude: ser_recv: U [55] . [c3] . [0c]

avrdude done.  Thank you.

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

One more usbdev traces for Windows with MSYS2 mingw64 build (with libusb-1.0+libusb-compat-0.1 API) using -c avrispmkii and ATxemga32A4u.

Click for full debug log using AVRISP mkII and ATxmega32A4U
PS>.\avrdude -c avrispmkii -p x32a4u -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : avrispmkII
avrdude: usbdev_open(): found AVRISP mkII, serno: 00000000193B
avrdude: usbdev_send: . [01]
avrdude: usbdev_recv_frame: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P [50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
         AVR Part                      : ATxmega32A4U
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse4                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no         52    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4096    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no       1024   32      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      36864  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           application             0     0     0    0 no      32768  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           apptable                0     0     0    0 no       4096  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           boot                    0     0     0    0 no       4096  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           usersig                 0     0     0    0 no        256  256      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: usbdev_send: . [03] . [90]
avrdude: usbdev_recv_frame: . [03] . [00] . [01]
avrdude: usbdev_send: . [03] . [91]
avrdude: usbdev_recv_frame: . [03] . [00] . [01]
avrdude: usbdev_send: . [03] . [92]
avrdude: usbdev_recv_frame: . [03] . [00] . [18]
         Hardware Version: 1
         Serial number   : 00000000193B
         Firmware Version Controller : 1.24
avrdude: usbdev_send: . [03] . [94]
avrdude: usbdev_recv_frame: . [03] . [00]   [20]
         Vtarget         : 3.2 V
avrdude: usbdev_send: . [03] . [98]
avrdude: usbdev_recv_frame: . [03] . [00] . [06]
         SCK period      : 8.00 us
avrdude: usbdev_send: Q [51] . [00]
avrdude: usbdev_recv_frame: Q [51] . [00]
avrdude: usbdev_send: P [50] . [01]
avrdude: usbdev_recv_frame: P [50] . [01] . [00]
avrdude: usbdev_send: P [50] . [07] . [01] . [01] . [00] . [01] . [c0]
avrdude: usbdev_recv_frame: P [50] . [07] . [00]
avrdude: usbdev_send: P [50] . [07] . [02] . [00]   [20]
avrdude: usbdev_recv_frame: P [50] . [07] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [93] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [04]
avrdude: silicon revision: 0.4
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [90] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [1e]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [91] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [95]
Reading | #################                                  | 33% 0.01 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [92] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] A [41]
Reading | ################################################## | 100% 0.02 s
avrdude: device signature = 0x1e9541 (probably x32a4u)
avrdude: usbdev_send: P [50] . [02]
avrdude: usbdev_recv_frame: P [50] . [02] . [00]

avrdude done.  Thank you.

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

Can someone clearly explain why the IO data memory bus is configured with MTYPE_XMEGA_FLASH=0xC0? This label is originally intended to refer to the code address bus after APPCODE. It must be a coincidence that I happen to be able to read the data bus.

@askn37
I think you might have a point.

@stefanrueger
How do I know if the reading of io is correct. The following data look suspicious.
0090 1e 95 41 --> looks like signature.

The following output is from latest PR #1538.

PS>pwd

Path
----
C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64

PS>.\avrdude -c avrispmkii -p x32a4u -qqt
avrdude> part

AVR Part                      : ATxmega32A4U
RESET disposition             : dedicated
RETRY pulse                   : SCK
Serial program mode           : yes
Parallel program mode         : yes
Memory Detail                 :

                                  Block Poll               Page                       Polled
  Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
  ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
  fuse1                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
  fuse2                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
  fuse4                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
  fuse5                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
  lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
  prodsig     sigrow      0     0     0    0 no         52    1      0     0     0 0x00 0x00
  signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
  data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
  io                      0     0     0    0 no       4096    1      0     0     0 0x00 0x00
  fuse0                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
  eeprom                  0     0     0    0 no       1024   32      0     0     0 0x00 0x00
  flash                   0     0     0    0 no      36864  256      0     0     0 0x00 0x00
  application             0     0     0    0 no      32768  256      0     0     0 0x00 0x00
  apptable                0     0     0    0 no       4096  256      0     0     0 0x00 0x00
  boot                    0     0     0    0 no       4096  256      0     0     0 0x00 0x00
  usersig                 0     0     0    0 no        256  256      0     0     0 0x00 0x00
avrdude> read fuse1
0000  00                                                |.               |
avrdude> read fuse2
0000  63                                                |c               |
avrdude> read fuse4
0000  1e                                                |.               |
avrdude> read fuse5
0000  3f                                                |?               |
avrdude> read fuse0
0000  55                                                |U               |
avrdude> read lock
0000  ff                                                |.               |
avrdude> read sigrow
0000  0d 40 7b 0a 40 7f ff 01  38 55 30 31 35 32 ff ff  | @{ @...8U0152..|
0010  03 ff 05 00 16 00 ff ff  ff ff cf 07 24 40 ff ff  |............$@..|
0020  00 00 00 ff ff ff ff ff  ff ff ff ff ff ff 5e 09  |..............^ |
0030  ff ff 02 15                                       |....            |
avrdude> read prodsig
0000  0d 40 7b 0a 40 7f ff 01  38 55 30 31 35 32 ff ff  | @{ @...8U0152..|
0010  03 ff 05 00 16 00 ff ff  ff ff cf 07 24 40 ff ff  |............$@..|
0020  00 00 00 ff ff ff ff ff  ff ff ff ff ff ff 5e 09  |..............^ |
0030  ff ff 02 15                                       |....            |
avrdude> read signature
0000  1e 95 41                                          |..A             |
avrdude> read eeprom 0 0x10
0000  54 68 65 20 71 75 69 63  6b 20 62 72 6f 77 6e 20  |The quick brown |
avrdude> read flash 0 0x10
0000  fd c0 00 00 18 c1 00 00  16 c1 00 00 14 c1 00 00  |................|
avrdude> read application 0 0x10
0000  fd c0 00 00 18 c1 00 00  16 c1 00 00 14 c1 00 00  |................|
avrdude> read boot 0 0x10
0000  00 c0 00 91 78 00 05 fd  6a c0 f0 92 80 06 08 e1  |....x...j.......|
avrdude> read apptable
0000  d4 cb d0 d0 d5 fd b3 a3  0d 0a 0d 00 c7 eb bd ab  |........   .....|
0010  bf a8 b2 e5 c8 eb b2 e5  b2 db bd f8 d0 d0 b2 e2  |................|
0020  ca d4 0d 00 bf a8 b0 b2  d7 b0 ca a7 b0 dc 0d 00  |.. ........... .|
0030  c7 eb b0 ce b3 f6 bf a8  d4 d9 d6 d8 d0 c2 b2 e5  |................|
0040  c8 eb b2 e5 b2 db bd f8  d0 d0 b2 e2 ca d4 0d 00  |.............. .|
0050  43 61 72 64 20 69 6e 66  6f 72 6d 61 74 69 6f 6e  |Card information|
0060  3a 0d 00 20 20 20 20 00  53 44 48 43 00 53 44 00  |: .    .SDHC.SD.|
0070  4d 4d 43 20 48 69 67 68  20 44 65 6e 73 69 74 79  |MMC High Density|
0080  00 4d 4d 43 00 53 44 49  4f 0d 00 53 44 20 43 4f  |.MMC.SDIO .SD CO|
0090  4d 42 4f 00 55 6e 6b 6e  6f 77 0d 00 0d 0a 20 20  |MBO.Unknow .    |
00a0  20 20 25 64 20 4d 42 0d  0a 00 4d 6f 75 6e 74 20  |  %d MB  .Mount |
00b0  64 69 73 6b 20 28 66 5f  6d 6f 75 6e 74 29 2e 2e  |disk (f_mount)..|
00c0  2e 0d 00 5b 46 41 49 4c  5d 20 72 65 73 20 25 64  |. .[FAIL] res %d|
00d0  0d 0a 00 5b 4f 4b 5d 0d  00 43 72 65 61 74 65 20  |  .[OK] .Create |
00e0  61 20 66 69 6c 65 20 28  66 5f 6f 70 65 6e 29 2e  |a file (f_open).|
00f0  2e 2e 0d 00 57 72 69 74  65 20 74 6f 20 74 65 73  |.. .Write to tes|
avrdude> read usersig
0000  55 aa 55 aa 71 75 69 63  6b 20 62 72 6f 77 6e 20  |U.U.quick brown |
0010  66 6f 78 20 6a 75 6d 70  73 20 6f 76 65 72 20 74  |fox jumps over t|
0020  68 65 20 6c 61 7a 79 20  64 6f 67 0a 54 68 65 20  |he lazy dog The |
0030  71 75 69 63 6b 20 62 72  6f 77 6e 20 66 6f 78 20  |quick brown fox |
0040  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0050  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0070  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0080  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
0090  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00a0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00b0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00c0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00d0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00e0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
00f0  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
avrdude> read data
avrdude error: (read) cannot read memory data of size 0
avrdude> read io
0000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0030  00 00 00 00 00 00 00 00  00 00 00 00 00 ff 2f 00  |............../.|
0040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0050  01 00 00 00 7b 02 00 00  00 00 00 00 00 00 00 01  |....{...........|
0060  00 00 40 0a 00 12 7a 00  00 00 40 0d 00 a1 07 00  |..@ ..z...@ ....|
0070  00 00 00 00 00 00 00 00  13 00 00 00 00 00 00 00  |................|
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0090  1e 95 41 04 00 00 00 00  00 00 00 00 00 00 00 00  |..A.............|
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
avrdude> quit

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

My Dragon uses the JTAG2 protocol use FW 7. And it seems like the JTAGmkII does as well:

@MCUdude

I can confirm that AVR Drago uses the JTAG2 protocol with FW 7. But I can not connect to ATxmega32A4U. I remember AVR Dragon has some limitations when it comes to PDI programming. Or maybe my connection is not stable.

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              2

Run log with latest PR #1538 with trace function, MSYS2 mingw64 build with libusb-1.0+libusb-compat-0.1 (WinUSB driver).

PS>.\avrdude -c dragon_pdi -p x32a4u -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : dragon_pdi
avrdude: jtagmkII_dragon_open_pdi()
avrdude: usbdev_open(): found AVRDRAGON, serno: 00A200001487
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync() attempt 1 of 10: sending sign-on command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: usbdev_send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): got message seqno 0 (command_sequence == 0)
avrdude: jtagmkII_recv: . [86] . [01] . [ff] ' [27] . [07] . [01] . [ff] ' [27] . [07] . [02] . [00] . [a2] . [00] . [00] . [14] . [87] A [41] V [56] R [52] D [44] R [52] A [41] G [47] O [4f] N [4e] . [00]

Raw message:
0x86 0x01 0xff 0x27 0x07 0x01 0xff 0x27 0x07 0x02 0x00 0xa2 0x00 0x00 0x14 0x87
0x41 0x56 0x52 0x44 0x52 0x41 0x47 0x4f 0x4e 0x00
Sign-on succeeded

JTAG ICE mkII sign-on message:
Communications protocol version: 1
M_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              1
S_MCU:
  boot-loader FW version:        255
  firmware version:              7.39
  hardware version:              2
Serial number:                   00:a2:00:00:14:87
Device ID:                       AVRDRAGON
avrdude: jtagmkII_getsync(): using a 298-byte device descriptor
avrdude: jtagmkII_setparm()
avrdude: jtagmkII_setparm() sending set parameter command (parm emulator_mode 0x03, 1 bytes):
avrdude: jtagmkII_send(): sending 3 bytes
avrdude: usbdev_send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31]
avrdude: jtagmkII_recv():

avrdude: jtagmkII_recv(): got message seqno 1 (command_sequence == 1)
avrdude: jtagmkII_recv: . [ae]

Raw message:
0xae
unknown message 0xae

avrdude jtagmkII_setparm() [jtagmkII.c:2542] error: bad response to set parameter emulator_mode: Unknown JTAG ICE mkII result code 0xae
avrdude main() [main.c:1280] error: unable to open port usb for programmer dragon_pdi

avrdude done.  Thank you.

@askn37
Copy link
Contributor Author

askn37 commented Nov 3, 2023

@mcuee

How do I know if the reading of io is correct. The following data look suspicious.
0090 1e 95 41 --> looks like signature.

ATxmega32A4U [Production Signature Row] PDI Address base is $08E0200 (25-bit address 32MiB memory map)

Why there? I'm sure the address offset is wrong...
(I only have the datasheet)

Atmel-8331-8-and-16-bit-AVR-Microcontroller-XMEGA-AU_Manual

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

@MCUdude

Since I cannot get my AVR Drago to connect to my ATxmega32A4U breakout board, please help to test your AVR Dragon with your xMega target and see if there ar anything strange (eg: to dump io and other memory types, like what I did using AVRISP mkII). Thanks.

My full debug log for read io command using AVRISP mkII and ATxmega32A4U.

click for the debug log with AVRISP mkII and ATxmega32A4U
PS>.\avrdude -c avrispmkii -p x32a4u -t -vvvv

avrdude: Version 7.2-20231102 (3eaa9f2)
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\work\avr\avrdude_test\avrdude_bin\github_bin\pr1538\avrdude-mingw-x86_64\avrdude.conf

         Using Port                    : usb
         Using Programmer              : avrispmkII
avrdude: usbdev_open(): found AVRISP mkII, serno: 00000000193B
avrdude: usbdev_send: . [01]
avrdude: usbdev_recv_frame: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P [50] _ [5f] M [4d] K [4b] 2 [32]
avrdude: stk500v2_getsync(): found AVRISP mkII programmer
         AVR Part                      : ATxmega32A4U
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse4                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse5                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock                    0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           prodsig     sigrow      0     0     0    0 no         52    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           data                    0     0     0    0 no          0    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           io                      0     0     0    0 no       4096    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0                   0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                  0     0     0    0 no       1024   32      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash                   0     0     0    0 no      36864  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           application             0     0     0    0 no      32768  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           apptable                0     0     0    0 no       4096  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           boot                    0     0     0    0 no       4096  256      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           usersig                 0     0     0    0 no        256  256      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
avrdude: usbdev_send: . [03] . [90]
avrdude: usbdev_recv_frame: . [03] . [00] . [01]
avrdude: usbdev_send: . [03] . [91]
avrdude: usbdev_recv_frame: . [03] . [00] . [01]
avrdude: usbdev_send: . [03] . [92]
avrdude: usbdev_recv_frame: . [03] . [00] . [18]
         Hardware Version: 1
         Serial number   : 00000000193B
         Firmware Version Controller : 1.24
avrdude: usbdev_send: . [03] . [94]
avrdude: usbdev_recv_frame: . [03] . [00] ! [21]
         Vtarget         : 3.3 V
avrdude: usbdev_send: . [03] . [98]
avrdude: usbdev_recv_frame: . [03] . [00] . [06]
         SCK period      : 8.00 us
avrdude: usbdev_send: Q [51] . [00]
avrdude: usbdev_recv_frame: Q [51] . [00]
avrdude: usbdev_send: P [50] . [01]
avrdude: usbdev_recv_frame: P [50] . [01] . [00]
avrdude: usbdev_send: P [50] . [07] . [01] . [01] . [00] . [01] . [c0]
avrdude: usbdev_recv_frame: P [50] . [07] . [00]
avrdude: usbdev_send: P [50] . [07] . [02] . [00]   [20]
avrdude: usbdev_recv_frame: P [50] . [07] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [93] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [04]
avrdude: silicon revision: 0.4
avrdude: AVR device initialized and ready to accept instructions
Reading |                                                    | 0% 0.00 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [90] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [1e]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [91] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [95]
Reading | #################                                  | 33% 0.01 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [92] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] A [41]
Reading | ################################################## | 100% 0.02 s
avrdude: device signature = 0x1e9541 (probably x32a4u)
avrdude: Note: programmer supports page erase for Xmega devices.
         Each page will be erased before programming it, but no chip erase is performed.
         To disable page erases, specify the -D option; for a chip-erase, use the -e option.

avrdude: processing -t interactive terminal
avrdude> read io
>>> read io 0x0 0x100
Reading |                                                    | 0% 0.00 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [00] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [01] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [02] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [03] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #                                                  | 1% 0.02 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [04] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [05] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [06] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #                                                  | 2% 0.04 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [07] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [08] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##                                                 | 3% 0.05 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [09] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [0a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [0b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##                                                 | 4% 0.07 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [0c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [0d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###                                                | 5% 0.09 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [0e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [0f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [10] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###                                                | 6% 0.10 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [11] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [12] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ####                                               | 7% 0.12 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [13] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [14] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [15] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ####                                               | 8% 0.13 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [16] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [17] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [18] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #####                                              | 9% 0.15 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [19] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [1a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #####                                              | 10% 0.17 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [1b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [1c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [1d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ######                                             | 11% 0.18 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [1e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [1f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ######                                             | 12% 0.20 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00]   [20] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ! [21] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] " [22] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #######                                            | 13% 0.22 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] # [23] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] $ [24] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #######                                            | 14% 0.23 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] % [25] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] & [26] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ' [27] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ########                                           | 15% 0.25 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ( [28] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ) [29] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ########                                           | 16% 0.26 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] * [2a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] + [2b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] , [2c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #########                                          | 17% 0.28 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] - [2d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [2e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] / [2f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #########                                          | 18% 0.30 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 0 [30] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 1 [31] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##########                                         | 19% 0.31 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 2 [32] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 3 [33] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 4 [34] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##########                                         | 20% 0.33 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 5 [35] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 6 [36] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###########                                        | 21% 0.34 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 7 [37] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 8 [38] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] 9 [39] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###########                                        | 22% 0.36 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] : [3a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ; [3b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ############                                       | 23% 0.37 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] < [3c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] = [3d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [ff]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] > [3e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] / [2f]
Reading | ############                                       | 24% 0.39 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ? [3f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] @ [40] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #############                                      | 25% 0.40 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] A [41] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] B [42] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] C [43] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #############                                      | 26% 0.42 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] D [44] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] E [45] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] F [46] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##############                                     | 27% 0.44 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] G [47] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] H [48] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##############                                     | 28% 0.45 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] I [49] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] J [4a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] K [4b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###############                                    | 29% 0.47 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] L [4c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] M [4d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###############                                    | 30% 0.49 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] N [4e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] O [4f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] P [50] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [01]
Reading | ################                                   | 31% 0.50 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] Q [51] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] R [52] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################                                   | 32% 0.52 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] S [53] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] T [54] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] { [7b]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] U [55] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [02]
Reading | #################                                  | 33% 0.54 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] V [56] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] W [57] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] X [58] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #################                                  | 34% 0.55 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] Y [59] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] Z [5a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##################                                 | 35% 0.57 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] [ [5b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] \ [5c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ] [5d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##################                                 | 36% 0.58 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ^ [5e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] _ [5f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [01]
Reading | ###################                                | 37% 0.60 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ` [60] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] a [61] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] b [62] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] @ [40]
Reading | ###################                                | 38% 0.62 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] c [63] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [0a]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] d [64] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ####################                               | 39% 0.63 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] e [65] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [12]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] f [66] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] z [7a]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] g [67] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ####################                               | 40% 0.65 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] h [68] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] i [69] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #####################                              | 41% 0.66 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] j [6a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] @ [40]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] k [6b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [0d]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] l [6c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #####################                              | 42% 0.68 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] m [6d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [a1]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] n [6e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [07]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] o [6f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ######################                             | 43% 0.70 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] p [70] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] q [71] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ######################                             | 44% 0.71 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] r [72] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] s [73] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] t [74] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #######################                            | 45% 0.73 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] u [75] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] v [76] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #######################                            | 46% 0.74 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] w [77] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] x [78] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [13]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] y [79] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ########################                           | 47% 0.76 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] z [7a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] { [7b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ########################                           | 48% 0.77 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] | [7c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] } [7d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] ~ [7e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #########################                          | 49% 0.79 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [7f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [80] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #########################                          | 50% 0.80 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [81] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [82] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [83] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##########################                         | 51% 0.82 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [84] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [85] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [86] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##########################                         | 52% 0.84 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [87] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [88] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###########################                        | 53% 0.85 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [89] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [8a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [8b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###########################                        | 54% 0.87 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [8c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [8d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ############################                       | 55% 0.89 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [8e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [8f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [90] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [1e]
Reading | ############################                       | 56% 0.90 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [91] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [95]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [92] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] A [41]
Reading | #############################                      | 57% 0.92 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [93] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [04]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [94] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [95] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #############################                      | 58% 0.94 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [96] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [97] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [98] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##############################                     | 59% 0.96 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [99] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [9a] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##############################                     | 60% 0.97 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [9b] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [9c] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [9d] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###############################                    | 61% 0.99 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [9e] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [9f] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###############################                    | 62% 1.00 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a0] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a1] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a2] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################################                   | 63% 1.02 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a3] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a4] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################################                   | 64% 1.03 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a5] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a6] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a7] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #################################                  | 65% 1.05 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a8] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [a9] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #################################                  | 66% 1.06 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [aa] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ab] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ac] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##################################                 | 67% 1.08 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ad] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ae] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [af] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##################################                 | 68% 1.10 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b0] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b1] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###################################                | 69% 1.11 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b2] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b3] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b4] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###################################                | 70% 1.13 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b5] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b6] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ####################################               | 71% 1.14 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b7] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b8] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [b9] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ####################################               | 72% 1.16 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ba] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [bb] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #####################################              | 73% 1.18 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [bc] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [bd] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [be] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #####################################              | 74% 1.19 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [bf] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c0] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ######################################             | 75% 1.21 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c1] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c2] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c3] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ######################################             | 76% 1.22 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c4] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c5] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c6] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #######################################            | 77% 1.24 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c7] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c8] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #######################################            | 78% 1.26 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [c9] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ca] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [cb] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ########################################           | 79% 1.28 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [cc] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [cd] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ########################################           | 80% 1.29 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ce] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [cf] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d0] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #########################################          | 81% 1.31 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d1] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d2] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #########################################          | 82% 1.32 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d3] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d4] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d5] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##########################################         | 83% 1.34 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d6] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d7] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d8] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##########################################         | 84% 1.36 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [d9] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [da] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###########################################        | 85% 1.37 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [db] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [dc] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [dd] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###########################################        | 86% 1.39 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [de] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [df] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ############################################       | 87% 1.40 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e0] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e1] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e2] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ############################################       | 88% 1.42 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e3] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e4] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #############################################      | 89% 1.43 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e5] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e6] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e7] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #############################################      | 90% 1.45 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e8] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [e9] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##############################################     | 91% 1.46 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ea] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [eb] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ec] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ##############################################     | 92% 1.48 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ed] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ee] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ef] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###############################################    | 93% 1.50 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f0] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f1] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ###############################################    | 94% 1.51 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f2] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f3] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f4] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################################################   | 95% 1.53 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f5] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f6] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################################################   | 96% 1.55 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f7] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f8] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [f9] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #################################################  | 97% 1.56 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [fa] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [fb] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | #################################################  | 98% 1.58 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [fc] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [fd] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [fe] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################################################## | 99% 1.60 s
avrdude: usbdev_send: P [50] . [05] . [01] . [01] . [00] . [00] . [ff] . [00] . [01]
avrdude: usbdev_recv_frame: P [50] . [05] . [00] . [00]
Reading | ################################################## | 100% 1.60 s
0000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0030  00 00 00 00 00 00 00 00  00 00 00 00 00 ff 2f 00  |............../.|
0040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0050  01 00 00 00 7b 02 00 00  00 00 00 00 00 00 00 01  |....{...........|
0060  00 00 40 0a 00 12 7a 00  00 00 40 0d 00 a1 07 00  |..@ ..z...@ ....|
0070  00 00 00 00 00 00 00 00  13 00 00 00 00 00 00 00  |................|
0080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
0090  1e 95 41 04 00 00 00 00  00 00 00 00 00 00 00 00  |..A.............|
00a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
avrdude> quit
avrdude: usbdev_send: P [50] . [02]
avrdude: usbdev_recv_frame: P [50] . [02] . [00]

avrdude done.  Thank you.

@askn37
Copy link
Contributor Author

askn37 commented Nov 3, 2023

I've never thought about it before, but the "part" command doesn't help. In the Xmega generation "x32a4u" example, I would like to know the start address definition for each section, but it does not exist. There is even less information about the UPDI generation. What do "mode", "delay" and "polling index" mean? Where can I change them? Of course they were important to older generations of programmers. I feel a generation gap....

@stefanrueger
Copy link
Collaborator

| How do I know if the reading of io is correct. The following data look suspicious.
| 0090 1e 95 41 --> looks like signature.

The io memory is the internal I/O register file. It was introduced in PR #1474. It is likely that not all programmers have been extended to be able to read/write it. And some cannot (for example ISP programming has no access; we have not yet found a way to write to io for XMEGAs). But in this case the result looks correct. The ATxmega32A4U has the MCU peripheral at address 0x90 in io, which in turn starts with the three device id bytes followed by the revision ID (4 in this case). See below.

Screenshot from 2023-11-03 10-55-03

And here the details of the MCU register:

Screenshot from 2023-11-03 10-54-33

@stefanrueger
Copy link
Collaborator

| the "part" command doesn't help

Please! This is a venerable command as old as the terminal introduced at a time when there were only classic parts around.

But yes, it is right to say that the AVRDUDE project should probably review the part command and extend it to XMEGAs and UPDI parts as to display relevant properties of these types. @MCUdude, this sounds right up your road? 😉 The same is true for debug messages that ought to be updated with more relevant info (and perhaps consider removal of the repeated headlines).

         AVR Part                      : AVR32DA32
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse0       wdtcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse1       bodcfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00
                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           fuse2       osccfg      0     0     0    0 no          1    1      0     0     0 0x00 0x00

| would like to know the start address definition for each section

BTW, you can always ask avrdude:

$ avrdude -px32a4u/At | grep offset
.ptmm	ATxmega32A4U	eeprom	offset	0x8c0000
.ptmm	ATxmega32A4U	flash	offset	0x800000
.ptmm	ATxmega32A4U	application	offset	0x800000
.ptmm	ATxmega32A4U	apptable	offset	0x807000
.ptmm	ATxmega32A4U	boot	offset	0x808000
.ptmm	ATxmega32A4U	fuse0	offset	0x8f0020
.ptmm	ATxmega32A4U	fuse1	offset	0x8f0021
.ptmm	ATxmega32A4U	fuse2	offset	0x8f0022
.ptmm	ATxmega32A4U	fuse4	offset	0x8f0024
.ptmm	ATxmega32A4U	fuse5	offset	0x8f0025
.ptmm	ATxmega32A4U	lock	offset	0x8f0027
.ptmm	ATxmega32A4U	prodsig	offset	0x8e0200
.ptmm	ATxmega32A4U	signature	offset	0x1000090
.ptmm	ATxmega32A4U	usersig	offset	0x8e0400
.ptmm	ATxmega32A4U	data	offset	0x1000000
.ptmm	ATxmega32A4U	io	offset	0x0

@MCUdude
Copy link
Collaborator

MCUdude commented Nov 3, 2023

The part command could need some love. The Memory detail table it prints is verbose, and IMO contains a lot of information you usually don't need to know (and can rather use the developer options instead).

If you could give me a list of what should be there, (what what should be removed), I can see if I can create a more useful implementation.

         AVR Part                      : AVR32DA32
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Memory Detail                 :
  • I've seen several AVRs with dedicated reset pins that say RESET disposition: IO. I don't see why we should even print this.
  • What does RETRY pulse even mean?
  • The AVR32DA32 doesn't have a parallel programming interface at all. Not sure why Avrdude thinks this...

@mcuee
Copy link
Collaborator

mcuee commented Nov 3, 2023

The part command could need some love. The Memory detail table it prints is verbose, and IMO contains a lot of information you usually don't need to know (and can rather use the developer options instead).

Totally agree.

@stefanrueger
Copy link
Collaborator

@MCUdude Thanks! Yes, you are right. If it was up to me I would keep the info printed for the classic parts with the exception of

  • Memory poll index (not used by AVRDUDE and actually 0 in avrdude.conf for all memories of all parts)
  • Repeated headlines above a certain verbosity (was that ever useful to anyone?)

For the PM_PDI, PM_UPDI and (rare, only half-heartedly supported 32-bit) PM_aWire parts I trust that you have way more experience for what might be useful (eg, offset, size, page_size, readsize etc) than I; it is clear that the unused bits (mode, delay, readback etc) should not be displayed.

AVR32DA32 doesn't have a parallel programming interface at all. Not sure why Avrdude thinks this...

Haha, well spotted! I guess it's the default for classic parts (so parallel unless some bit is set in some flag), and hence this is incorrectly asserted for UPDI parts.

Yes, this needs a bit TLC. Thank you for taking that on.

@stefanrueger
Copy link
Collaborator

@askn37 This issue will be closed shortly. Let me reflect on some of the things observed:

bug in the old version [...] This version reverted to the same behavior as v7.2. It's not a bug anymore. [...]

We tend to talk about undocumented behaviour, when an unsupported programmer sends info back to AVRDUDE that makes it behave in a certain way. When AVRDUDE does not behave like an unsupported programmer expects we tend not to think that this is a bug. This may be unfortunate for the unsupported programmer, but it is not a bug.

UPDI4AVR was fine in the 6.3 to 7.2 implementation, so this fact suggests a break in compatibility.

updi4avr is not on the list of currently 162 supported programmers (avrdude -c\?). It probably should be, but it it isn't. The updi4avr project uses undocumented behaviour by AVRDUDE: sending a FW version to AVRDUDE that makes it think it is connected to a supported programmer that might be connected to an XMEGA and therefore sets XMEGA parameters (eg, offsets for the application section or bootloader section). This is not a great way to establish a protocol between host downloader/uploader and the programmer FW:

  • Using an XMEGA structure for UPDI parts does not read well nor is it easy to maintain
  • AVRDUDE might decide to change undocumented behaviour for any or no reason. For example, an update of a supported programmer might require AVRDUDE follows suit. (How should the AVRDUDE project know that some programmer out there uses undocumented behaviour?)

A better way to support a new programmer is to submit to the AVRDUDE project a PR for an independent programmer module, eg, updi4avr.c that exports a -c updi4avr programmer. This way the AVRDUDE project knows about that programmer.

[mode, delay etc] were important to older generations of programmers

They are important to older generations of programmers! Just because new parts and programmers came along does not mean that all hardware with classic parts vanish in thin air. The AVRDUDE project prides itself with being able to handle 20-year old parts and programmers!

@askn37
Copy link
Contributor Author

askn37 commented Nov 3, 2023

@stefanrueger

I also agree with you.

I have already started gathering information to create updi4avr.c. (I still don't know how to add new files to the project)
For the time being, the JTAGICEmkII protocol (AVR067) is the reference, so using jtagmkII.c is almost the same, but we will clean up unnecessary code that is not related to PM_UPDI. The only additional functionality will probably be high voltage support.
In the future JTAG2UPDI and its variants may also probably be taken care of. (The main difference between FWV=6 and FWV=7 is the presence or absence of address offsets for processing block chunks, so it doesn't require much effort.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants