[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 05:23:17 -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 #12, bug #61624 (project avrdude):
I can confirm that the uploaded program works as expected.
It looks like it's reading incorrect fuses on ATmega4809 as well. Tri's trying
to write 0xCD, but reads back 0x40. And now I'm getting a segmentation fault
when trying to set fuses on ATmega4809 as well, but not when only writing a
hex file to flash...
$ /Users/hans/Downloads/SVN/avrdude/avrdude
-C/Users/hans/Documents/Arduino/hardware/MegaCoreX/megaavr/avrdude.conf -vvv
-patmega4809 -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:0xCD: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 : ATmega4809
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 49152 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: 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 [0x08]
avrdude: Already in prog 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 [0x96]
Reading | ################# | 33%
0.01savrdude: LD from 0x001102
avrdude: Sending 4 bytes [0x55, 0x04, 0x02, 0x11]
avrdude: Received 1 bytes [0x51]
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e9651 (probably m4809)
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 [0x54]
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of fuse1 verified
avrdude: reading input file "0x01"
avrdude: writing fuse2 (1 bytes):
Writing | | 0%
0.00savrdude: ST to 0x001282
avrdude: Sending 4 bytes [0x55, 0x44, 0x82, 0x12]
avrdude: Received 1 bytes [0x40]
avrdude: Sending 1 bytes [0x01]
avrdude: Received 1 bytes [0x40]
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of fuse2 written
avrdude: verifying fuse2 memory against 0x01:
avrdude: load data fuse2 data from input file 0x01:
avrdude: input file 0x01 contains 1 bytes
avrdude: reading on-chip fuse2 data:
Reading | | 0%
0.00savrdude: LD from 0x001282
avrdude: Sending 4 bytes [0x55, 0x04, 0x82, 0x12]
avrdude: Received 1 bytes [0x01]
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of fuse2 verified
avrdude: reading input file "0x00"
avrdude: writing fuse4 (1 bytes):
Writing | | 0%
0.00savrdude: ST to 0x001284
avrdude: Sending 4 bytes [0x55, 0x44, 0x84, 0x12]
avrdude: Received 1 bytes [0x40]
avrdude: Sending 1 bytes [0x00]
avrdude: Received 1 bytes [0x40]
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of fuse4 written
avrdude: verifying fuse4 memory against 0x00:
avrdude: load data fuse4 data from input file 0x00:
avrdude: input file 0x00 contains 1 bytes
avrdude: reading on-chip fuse4 data:
Reading | | 0%
0.00savrdude: LD from 0x001284
avrdude: Sending 4 bytes [0x55, 0x04, 0x84, 0x12]
avrdude: Received 1 bytes [0x00]
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of fuse4 verified
avrdude: reading input file "0xCD"
avrdude: writing fuse5 (1 bytes):
Writing | | 0%
0.00savrdude: ST to 0x001285
avrdude: Sending 4 bytes [0x55, 0x44, 0x85, 0x12]
avrdude: Received 1 bytes [0x40]
avrdude: Sending 1 bytes [0xcd]
avrdude: Received 1 bytes [0x40]
Writing | ################################################## | 100% 0.01s
avrdude: 1 bytes of fuse5 written
avrdude: verifying fuse5 memory against 0xCD:
avrdude: load data fuse5 data from input file 0xCD:
avrdude: input file 0xCD contains 1 bytes
avrdude: reading on-chip fuse5 data:
Reading | | 0%
0.00savrdude: LD from 0x001285
avrdude: Sending 4 bytes [0x55, 0x04, 0x85, 0x12]
avrdude: Received 1 bytes [0xc9]
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/
- [bug #61624] [Feature request] Serial/UART UPDI programmers, (continued)
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/12
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/12
- Re: [bug #61624] [Feature request] Serial/UART UPDI programmers, Joerg Wunsch, 2021/12/12
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/12
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/12
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers,
mcudude <=
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, mcudude, 2021/12/13
- [bug #61624] [Feature request] Serial/UART UPDI programmers, Dawid Buchwald, 2021/12/13