avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61624] [Feature request] Serial/UART UPDI programmers


From: mcudude
Subject: [bug #61624] [Feature request] Serial/UART UPDI programmers
Date: Mon, 13 Dec 2021 04:29:23 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15

Follow-up Comment #10, bug #61624 (project avrdude):

Thanks Dawid, reading from flash now works in the ATmega4809!

Just for curiosity and since I have all megaAVR-0 series chips, I decided to
try them all.

Uploading and fuse read/write works on ATmega4809, ATmega3208, ATmega1608, and
ATmega808. 

On Atmega4808, ATmega3209, ATmega1609 and ATmega809 I'm getting "Segmentation
fault: 11". Note that this only happens when I'm writing/reading fuses.

$ /Users/hans/Downloads/SVN/avrdude/avrdude
-C/Users/hans/Documents/Arduino/hardware/MegaCoreX/megaavr/avrdude.conf -vvv
-patmega3209 -cserialupdi -P /dev/cu.usbserial-1410 -b230400 -Ufuse0:w:0x00:m
-Ufuse1:w:0x54:m -Ufuse2:w:0x01:m -Ufuse4:w:0x00:m -Ufuse5:w:0xC9:m
-Ufuse6:w:0x06:m -Ufuse7:w:0x00:m -Ufuse8:w:0x00:m -Ulock:w:0xC5:m

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

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

         Using Port                    : /dev/cu.usbserial-1410
         Using Programmer              : serialupdi
         Overriding Baud Rate          : 230400
avrdude: Opening serial port...
         AVR Part                      : ATmega3209
         Chip Erase delay              : 0 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 0
         StabDelay                     : 0
         CmdexeDelay                   : 0
         SyncLoops                     : 0
         ByteDelay                     : 0
         PollIndex                     : 0
         PollValue                     : 0x00
         Memory Detail                 :

                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           signature      0     0     0    0 no          3    1      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           prodsig        0     0     0    0 no         61   61      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           fuses          0     0     0    0 no          9    1      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type 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 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 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 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 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 Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           fuse6          0     0     0    0 no          1    1      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           fuse7          0     0     0    0 no          1    1      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           fuse8          0     0     0    0 no          1    1      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type 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 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 Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           usersig        0     0     0    0 no         64   64      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           flash          0     0     0    0 no      32768  128      0     0  
  0 0x00 0x00
                                  Block Poll               Page               
       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW 
MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ -----
----- ---------
           eeprom         0     0     0    0 no        256   64      0     0  
  0 0x00 0x00

         Programmer Type : serialupdi
         Description     : SerialUPDI

avrdude: STCS 0x08 to address 0x03
avrdude: Sending 3 bytes [0x55, 0xc3, 0x08]
avrdude: STCS 0x80 to address 0x02
avrdude: Sending 3 bytes [0x55, 0xc2, 0x80]
avrdude: LDCS from 0x00
avrdude: Sending 2 bytes [0x55, 0x80]
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: Opening serial port...
avrdude: Opening serial port...
avrdude: STCS 0x08 to address 0x03
avrdude: Sending 3 bytes [0x55, 0xc3, 0x08]
avrdude: STCS 0x80 to address 0x02
avrdude: Sending 3 bytes [0x55, 0xc2, 0x80]
avrdude: LDCS from 0x00
avrdude: Sending 2 bytes [0x55, 0x80]
avrdude: Received 1 bytes [0x30]
avrdude: UDPI init OK
avrdude: UPDI link initialization OK
avrdude: Sending 2 bytes [0x55, 0xe6]
avrdude: Received 32 bytes [0x6d, 0x65, 0x67, 0x61, 0x41, 0x56, 0x52, 0x20,
0x50, 0x3a, 0x30, 0x44, 0x3a, 0x31, 0x2d, 0x33, 0x4d, 0x32, 0x20, 0x28, 0x30,
0x31, 0x2e, 0x35, 0x39, 0x42, 0x32, 0x30, 0x2e, 0x30, 0x29, 0x00]
avrdude: Received SIB: [megaAVR P:0D:1-3M2 (01.59B20.0)]
avrdude: Device family ID: megaAVR 
avrdude: NVM interface: P:0
avrdude: Debug interface: D:1
avrdude: PDI oscillator: 3M2 
avrdude: Extra information: (01.59B20.0)
avrdude: NVM type 0: 16-bit, page oriented write
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x82]
avrdude: Entering NVM programming mode
avrdude: UPDI writing key
avrdude: Sending 2 bytes [0x55, 0xe0]
avrdude: Sending 8 bytes [0x20, 0x67, 0x6f, 0x72, 0x50, 0x4d, 0x56, 0x4e]
avrdude: LDCS from 0x07
avrdude: Sending 2 bytes [0x55, 0x87]
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: Sending release reset request
avrdude: STCS 0x00 to address 0x08
avrdude: Sending 3 bytes [0x55, 0xc8, 0x00]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x21]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x01]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x08]
avrdude: LDCS from 0x0B
avrdude: Sending 2 bytes [0x55, 0x8b]
avrdude: Received 1 bytes [0x08]
avrdude: Entered NVM programming mode
avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0%
0.00savrdude: LD from 0x001100
avrdude: Sending 4 bytes [0x55, 0x04, 0x00, 0x11]
avrdude: Received 1 bytes [0x1e]
avrdude: LD from 0x001101
avrdude: Sending 4 bytes [0x55, 0x04, 0x01, 0x11]
avrdude: Received 1 bytes [0x95]
Reading | #################                                  | 33%
0.01savrdude: LD from 0x001102
avrdude: Sending 4 bytes [0x55, 0x04, 0x02, 0x11]
avrdude: Received 1 bytes [0x31]
Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9531 (probably m3209)
avrdude: reading input file "0x00"
avrdude: writing fuse0 (1 bytes):

Writing |                                                    | 0%
0.00savrdude: ST to 0x001280
avrdude: Sending 4 bytes [0x55, 0x44, 0x80, 0x12]
avrdude: Received 1 bytes [0x40]
avrdude: Sending 1 bytes [0x00]
avrdude: Received 1 bytes [0x40]
Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse0 written
avrdude: verifying fuse0 memory against 0x00:
avrdude: load data fuse0 data from input file 0x00:
avrdude: input file 0x00 contains 1 bytes
avrdude: reading on-chip fuse0 data:

Reading |                                                    | 0%
0.00savrdude: LD from 0x001280
avrdude: Sending 4 bytes [0x55, 0x04, 0x80, 0x12]
avrdude: Received 1 bytes [0x00]
Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of fuse0 verified
avrdude: reading input file "0x54"
avrdude: writing fuse1 (1 bytes):

Writing |                                                    | 0%
0.00savrdude: ST to 0x001281
avrdude: Sending 4 bytes [0x55, 0x44, 0x81, 0x12]
avrdude: Received 1 bytes [0x40]
avrdude: Sending 1 bytes [0x54]
avrdude: Received 1 bytes [0x40]
Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of fuse1 written
avrdude: verifying fuse1 memory against 0x54:
avrdude: load data fuse1 data from input file 0x54:
avrdude: input file 0x54 contains 1 bytes
avrdude: reading on-chip fuse1 data:

Reading |                                                    | 0%
0.00savrdude: LD from 0x001281
avrdude: Sending 4 bytes [0x55, 0x04, 0x81, 0x12]
avrdude: Received 1 bytes [0x00]
Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
Segmentation fault: 11

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?61624>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]