Unable to connect to AVRISP MkII with avrdude

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm brand new to avrdude and trying to accomplish my first flash.  I'm on a Win 10 system.  Whether I try to write or verify, I get the same error:

 

avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)

 

Past posts on this issue are pretty old, and I've reinstalled my Atmel USB drivers anyway (which seemed to be the main issue), so I thought I'd see if there's any current wisdom on this topic.  Thanks.

 

Here's the write command I'm using:

 

avrdude -p 8515 -c avrisp2 -e -P usb -U flash:w:"E:\Karl\Documents\Sculpture\Metronomicon\5\C\Update 2018\Metronomicon 5x5\Metronomicon 5x5.hex":i -v

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

IIRC, libusb instead of Microchip drivers.

[Zadig icon] 

Zadig

USB driver installation made easy

http://zadig.akeo.ie/

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That was it.  Fixed it with Zadig.  Thanks!

 

Now I get the following:

 

C:\Program Files (x86)\AVR\AVR Dude>avrdude -p 8515 -c avrisp2 -e -P usb -U flash:w:"E:\Karl\Documents\Sculpture\Metronomicon\5\C\Update 2018\Metronomicon 5x5\Metronomicon 5x5.hex":i -v

avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\AVR\AVR Dude\avrdude.conf"

         Using Port                    : usb
         Using Programmer              : avrisp2
avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200044737
         AVR Part                      : AT90S8515
         Chip Erase delay              : 20000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom         4    12   128    0 no        512    0      0  4000  9000 0x80 0x7f
           flash          4    12   128    0 no       8192    0      0  4000  9000 0x7f 0x7f
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           fuse           0     0     0    0 no          1    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel AVR ISP mkII
         Programmer Model: AVRISP mkII
         Hardware Version: 1
         Firmware Version Master : 1.23
         Vtarget         : 0.0 V
         SCK period      : 8.00 us

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Is the "Target" in 

avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected

the AVRISP or the 8515?  I assume the latter, but if the former, why does it say, near the top:

avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200044737

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nevermind.  I found an unconnected ground.  Still getting some errors, but I think I can handle them.