avrdude, stk600, updi, attiny3216

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

avrdude, stk600, updi, attiny3216

Till Sellschopp
Hello everyone,

I have a problem when trying to program the attiny3216 with avrdude using the stk600 programmer. I could not find any related issues and hope, that someone in this mailing list might be able to help.

Firstly:
- The setup (wiring etc.) works with atmel studio. It is possible to read the device id of the attiny3216. 
- I use avrdude from this repository "https://github.com/facchinm/avrdude". It is a copy from the main svn. The latest changelog entry is "2018-01-21  Joerg Wunsch"
- Avrdude compiled without any issues or tailoring. 

I use the following command to connect to the attiny3216  "./avrdude -C avrdude.conf -c stk600 -p t3216 -v"
 
The connection to the stk600 is successful & related information is printed into the terminal. 
It terminates with:
"
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.
"

If -F is used, the following is printed after the stk600 information:

"
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 = 0x1057fe
avrdude: Expected signature for ATtiny3216 is 1E 95 21

avrdude done.  Thank you.
"
The following observations were made:

- The device id changes with each call
- The behaviour does not change if the updi line is disconnected
- I could not see any activity on the updi line with a logic analyzer

I would be very thankful for any hints or ideas.

Thanks & with best regards,

Till

_______________________________________________
AVR-chat mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat
Reply | Threaded
Open this post in threaded view
|

Re: avrdude, stk600, updi, attiny3216

Martin Stejskal
Hi,
 I never used STK600, but from my experience from USBasp this happens when:
1) Clock is set too high. I would give a try to set it via "-B" parameter
2) Low voltage on target. I had some problems with flashing ATtiny13 when running at 3.3V. Changing power supply to 5V helped - this might not be your case, but check it
3) Wrong fuse settings - for example switched to external crystal, but external crystal is not present -> no clock for core -> no reply -> probably not your case
4) Wiring - since you made it work via AVR Studio, it should be OK

Hope it helps
  Martin

po 10. 6. 2019 v 18:09 odesílatel Till Sellschopp <[hidden email]> napsal:
Hello everyone,

I have a problem when trying to program the attiny3216 with avrdude using the stk600 programmer. I could not find any related issues and hope, that someone in this mailing list might be able to help.

Firstly:
- The setup (wiring etc.) works with atmel studio. It is possible to read the device id of the attiny3216. 
- I use avrdude from this repository "https://github.com/facchinm/avrdude". It is a copy from the main svn. The latest changelog entry is "2018-01-21  Joerg Wunsch"
- Avrdude compiled without any issues or tailoring. 

I use the following command to connect to the attiny3216  "./avrdude -C avrdude.conf -c stk600 -p t3216 -v"
 
The connection to the stk600 is successful & related information is printed into the terminal. 
It terminates with:
"
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.
"

If -F is used, the following is printed after the stk600 information:

"
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 = 0x1057fe
avrdude: Expected signature for ATtiny3216 is 1E 95 21

avrdude done.  Thank you.
"
The following observations were made:

- The device id changes with each call
- The behaviour does not change if the updi line is disconnected
- I could not see any activity on the updi line with a logic analyzer

I would be very thankful for any hints or ideas.

Thanks & with best regards,

Till
_______________________________________________
AVR-chat mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat

_______________________________________________
AVR-chat mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat
Reply | Threaded
Open this post in threaded view
|

Re: avrdude, stk600, updi, attiny3216

Rogier Wolff
On Mon, Jun 10, 2019 at 08:11:58PM +0200, Martin Stejskal wrote:
> 1) Clock is set too high.
> 2) Low voltage on target.
> 3) Wrong fuse settings
> 4) Wiring

None of the above:

> po 10. 6. 2019 v 18:09 odesílatel Till Sellschopp <[hidden email]>

> > avrdude: stk500v2_program_enable(): program enable instruction not defined
> > for part "ATtiny3216"

The error message says that your configuration file fails to define a
"program enable" instruction for your part.

Double check your configuration file, download a newer one, install it
and double check that avrdude is indeed using the one you think it
should use.

        Roger.

--
** [hidden email] ** 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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat
Reply | Threaded
Open this post in threaded view
|

Re: avrdude, stk600, updi, attiny3216

Till Sellschopp
Hello,

thanks for the fast feedback.
I've changed the programming speed, the target voltage is alright, the fuses are not the problem & the wiring is ok.
I did not have too much time at hand, but currently it seems to me that there is no activity whatsoever on the updi pin. I will doublecheck today.

Regarding the configuration file:

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.

Thanks for the support,

Till


Am Di., 11. Juni 2019 um 08:49 Uhr schrieb Rogier Wolff <[hidden email]>:
On Mon, Jun 10, 2019 at 08:11:58PM +0200, Martin Stejskal wrote:
> 1) Clock is set too high.
> 2) Low voltage on target.
> 3) Wrong fuse settings
> 4) Wiring

None of the above:

> po 10. 6. 2019 v 18:09 odesílatel Till Sellschopp <[hidden email]>

> > avrdude: stk500v2_program_enable(): program enable instruction not defined
> > for part "ATtiny3216"

The error message says that your configuration file fails to define a
"program enable" instruction for your part.

Double check your configuration file, download a newer one, install it
and double check that avrdude is indeed using the one you think it
should use.

        Roger.

--
** [hidden email] ** 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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat
Reply | Threaded
Open this post in threaded view
|

Re: avrdude, stk600, updi, attiny3216

Rogier Wolff
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.

--
** [hidden email] ** 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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat
Reply | Threaded
Open this post in threaded view
|

Re: avrdude, stk600, updi, attiny3216

Till Sellschopp
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 <[hidden email]>:
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.

--
** [hidden email] ** 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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-chat