Hello,
again, thanks for the feedback.
The ATtiny3216 as well as its family are quite new and thus there are very
few ressources. It seems that they are much closer to a xmega as to a tiny.
I've made sure that the correct config file is used. It contains entries
for the ATtiny3216. Those entries do not include a pgm_enable instruction.
Adding such an instruchtion just causes another error. I have included
some traces below.
I looked at the programming pin with a logic analyzer. Using Windows and
Atmel Studio, I can see activity & the correct device ID is read. The
settingof the STK600 are the same as displayed when using avrdude.
Leaving the whole setup as it is but switching the usb plug to the linux
devices, there is not any activity visible. It seems that the updi
interface of the STK600 is not being activated,
Here are some traces:
############# Command: sudo ./avrdude -C avrdude.conf -c stk600 -p t3216 -B
50 -vv
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
User configuration file is "/home/till/.avrduderc"
User configuration file does not exist or is not a regular file,
skipping
Using Port : usb
Using Programmer : stk600
Setting bit clk period : 50.0
avrdude: usbdev_open(): Found STK600, serno: 0045E5507FEB
AVR Part : ATtiny3216
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
signature 0 0 0 0 no 3 0 0
0 0 0x00 0x00
prodsig 0 0 0 0 no 61 61 0
0 0 0x00 0x00
fuses 0 0 0 0 no 9 0 0
0 0 0x00 0x00
fuse0 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse1 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse2 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse4 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse5 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse6 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse7 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse8 0 0 0 0 no 1 0 0
0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0
0 0 0x00 0x00
data 0 0 0 0 no 0 0 0
0 0 0x00 0x00
usersig 0 0 0 0 no 32 32 0
0 0 0x00 0x00
flash 0 0 0 0 no 32768 128 0
0 0 0x00 0x00
eeprom 0 0 0 0 no 256 64 0
0 0 0x00 0x00
Programmer Type : STK600
Description : Atmel STK600
Programmer Model: STK600
Hardware Version: 3
Firmware Version Master : 2.45
Firmware Version Slave 1: 2.03
Firmware Version Slave 2: 2.02
Routing card : Not present
Socket card : Not present
RC_ID table rev : 230
EC_ID table rev : 1
Vtarget : 3.3 V
Varef 0 : 0.00 V
Varef 1 : 0.00 V
SCK period : 50.00 us
Oscillator : 16.007 MHz
avrdude: stk500v2_program_enable(): program enable instruction not defined
for part "ATtiny3216"
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
############# Command: sudo ./avrdude -C avrdude.conf -c stk600 -p t3216 -B
50 -vv -Favrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
User configuration file is "/home/till/.avrduderc"
User configuration file does not exist or is not a regular file,
skipping
Using Port : usb
Using Programmer : stk600
Setting bit clk period : 50.0
avrdude: usbdev_open(): Found STK600, serno: 0045E5507FEB
AVR Part : ATtiny3216
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
signature 0 0 0 0 no 3 0 0
0 0 0x00 0x00
prodsig 0 0 0 0 no 61 61 0
0 0 0x00 0x00
fuses 0 0 0 0 no 9 0 0
0 0 0x00 0x00
fuse0 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse1 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse2 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse4 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse5 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse6 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse7 0 0 0 0 no 1 0 0
0 0 0x00 0x00
fuse8 0 0 0 0 no 1 0 0
0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0
0 0 0x00 0x00
data 0 0 0 0 no 0 0 0
0 0 0x00 0x00
usersig 0 0 0 0 no 32 32 0
0 0 0x00 0x00
flash 0 0 0 0 no 32768 128 0
0 0 0x00 0x00
eeprom 0 0 0 0 no 256 64 0
0 0 0x00 0x00
Programmer Type : STK600
Description : Atmel STK600
Programmer Model: STK600
Hardware Version: 3
Firmware Version Master : 2.45
Firmware Version Slave 1: 2.03
Firmware Version Slave 2: 2.02
Routing card : Not present
Socket card : Not present
RC_ID table rev : 230
EC_ID table rev : 1
Vtarget : 3.3 V
Varef 0 : 0.00 V
Varef 1 : 0.00 V
SCK period : 50.00 us
Oscillator : 16.007 MHz
avrdude: stk500v2_program_enable(): program enable instruction not defined
for part "ATtiny3216"
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x10575a
avrdude: Expected signature for ATtiny3216 is 1E 95 21
avrdude done. Thank you.
############# Command: sudo ./avrdude -C avrdude.conf -c stk600 -p t3216 -B
50 -vvvv with the pgm instruction added to the part and incravrdude:
Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
User configuration file is "/home/till/.avrduderc"
User configuration file does not exist or is not a regular file,
skipping
Using Port : usb
Using Programmer : stk600
Setting bit clk period : 50.0
avrdude: usbdev_open(): Found STK600, serno: 0045E5507FEB
avrdude: Sent: . [01]
avrdude: Recv: . [01] . [00] . [06] S [53] T [54] K [4b] 6 [36] 0 [30] 0
[30]
avrdude: stk500v2_getsync(): found STK600 programmer
avrdude: Sent: . [02] . [c0] . [01] . [8f]
avrdude: Recv: . [02] . [00]
AVR Part : ATtiny3216
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW
MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------
----- ----- ---------
signature 0 0 0 0 no 3 0 0
0 0 0x00 0x00
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 0 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 0 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 0 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 0 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 0 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 0 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 0 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 0 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 0 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 0 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 0 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 32 32 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 : STK600
Description : Atmel STK600
Programmer Model: STK600
avrdude: Sent: . [03] . [90]
avrdude: Recv: . [03] . [00] . [03]
avrdude: Sent: . [03] . [91]
avrdude: Recv: . [03] . [00] . [02]
avrdude: Sent: . [03] . [92]
avrdude: Recv: . [03] . [00] - [2d]
Hardware Version: 3
Firmware Version Master : 2.45
avrdude: Sent: . [03] . [a8]
avrdude: Recv: . [03] . [00] . [02]
avrdude: Sent: . [03] . [a9]
avrdude: Recv: . [03] . [00] . [03]
avrdude: Sent: . [03] . [aa]
avrdude: Recv: . [03] . [00] . [02]
avrdude: Sent: . [03] . [ab]
avrdude: Recv: . [03] . [00] . [02]
Firmware Version Slave 1: 2.03
Firmware Version Slave 2: 2.02
avrdude: Sent: . [03] . [a6]
avrdude: Recv: . [03] . [00] . [ff]
Routing card : Not present
avrdude: Sent: . [03] . [a5]
avrdude: Recv: . [03] . [00] . [ff]
Socket card : Not present
avrdude: Sent: . [03] . [c8]
avrdude: Recv: . [03] . [00] . [00] . [e6]
RC_ID table rev : 230
avrdude: Sent: . [03] . [c9]
avrdude: Recv: . [03] . [00] . [00] . [01]
EC_ID table rev : 1
avrdude: Sent: . [03] . [94]
avrdude: Recv: . [03] . [00] ! [21]
Vtarget : 3.3 V
avrdude: Sent: . [03] . [c2]
avrdude: Recv: . [03] . [00] . [00] . [00]
Varef 0 : 0.00 V
avrdude: Sent: . [03] . [c3]
avrdude: Recv: . [03] . [00] . [00] . [00]
Varef 1 : 0.00 V
avrdude: Sent: . [03] . [c0]
avrdude: Recv: . [03] . [00] . [01] . [8f]
SCK period : 50.00 us
avrdude: Sent: . [03] . [c1]
avrdude: Recv: . [03] . [00] . [de] . [fc]
Oscillator : 16.007 MHz
avrdude: Sent: . [02] . [9e] . [01]
avrdude: Recv: . [02] . [00]
avrdude: Sent: . [10] . [00] . [00] . [00] . [00] . [00] . [00] . [00] .
[ac] S [53] . [00] . [00]
avrdude: Recv: . [10] . [c0]
avrdude: stk500v2_command(): command failed
avrdude: Sent: . [03] . [a1]
avrdude: Recv: . [03] . [00] . [00]
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status:
Unknown status 0x00
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: Sent: . [11] . [01] . [01]
avrdude: Recv: . [11] . [00]
avrdude done. Thank you.eased verbosity
Am Mi., 12. Juni 2019 um 08:17 Uhr schrieb Rogier Wolff <
[email protected]>:
> On Wed, Jun 12, 2019 at 07:58:30AM +0200, Till Sellschopp wrote:
> > The error messages declares a missing "pgm_enable" of the respective
> part
> > (attiny3216).
> > In all configurations I could find, the attiny3216 or similar uC of the
> > same family do not have that property. Neither do the parent parts.
> > Are you aware of any ressources dealing with this topic? Currently it
> seems
> > to me, that alle devices in the configuration file have the same
> > "pgm_enable" pattern.
>
> Just looking for "pgm_enable" in my avrdude.conf I find under "attiny12":
>
> pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
> "x x x x x x x x x x x x x x x x";
>
>
> Now my avrdude.conf is too old to have your '3216 device listed.
>
> Sometimes the error messages are not completely clear. Maybe the first
> reference to the '3216 is where the code tries to look up the
> pgm_enable instruction. If the lookup fails, because avrdude is
> looking in a different avrdude.conf file than you, and that file
> doesn't have the 3216 like mine, then yes, the lookup fialed, but the
> whole device is missing.
>
> Double check that by running avrdude under "strace" and grep for "open"
> in the trace output....
>
> My avrdude.conf does not have /any/ variation in the "pgm_enable"
> instruction. Maybe the avrdude guys decided to remove the config
> parameter from the config file. Then you have a new config file and
> an old avrdude (that still requires it?)
>
> Try adding the pgm_enable instruction listed above.
>
> Roger.
>
> --
> ** [email protected] ** https://www.BitWizard.nl/ ** +31-15-2049110
> **
> ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 **
> The plan was simple, like my brother-in-law Phil. But unlike
> Phil, this plan just might work.
>
_______________________________________________
AVR-chat mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-chat