Programming xmega8e5 with avrdude through USBASP. error: programm enable: target doesn't answer

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to burn .hex on AtXMega8E5 using USBasp.
I use as manual http://szulat.blogspot.com/2012/08/atxmega-programmer-for-050.html.
I made physical connection like this http://3.bp.blogspot.com/-Z29VWzYD6mw/UCwO6_1XhKI/AAAAAAAAAgw/nUlaM8B9FWQ/s320/usbasp_pdi_schem_33.png
then I installed in my USBASP Firmware supporting PDI and got the AVRDUDE source and applied the patch.
 
avrdude.exe: Version 5.11svn
system: windows x86_64
 
I tried different bitclock (-B) from 1 to 200, but with the same result.
 

# ./avrdude -C avrdude.conf -c usbasp -p x8e5 -B80

avrdude.exe: set SCK frequency to 8000 Hz
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe done.  Thank you.

# ./avrdude -C avrdude.conf -c usbasp -p x8e5 -B80 -F

avrdude.exe: set SCK frequency to 8000 Hz
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
avrdude.exe: AVR device initialized and ready to accept instructions
avrdude.exe: Device signature = 0x2d0073
avrdude.exe: Expected signature for ATxmega8E5 is 1E 93 41

avrdude.exe done.  Thank you.
 
# ./avrdude -C avrdude.conf -c usbasp -p x8e5 -B80 -v
 
avrdude.exe: Version 5.11svn, compiled on Jul  2 2018 at 23:12:09
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2009 Joerg Wunsch

             System wide configuration file is "avrdude.conf"

             Using Port                    : usb
             Using Programmer              : usbasp
             Setting bit clk period        : 80.0
             AVR Part                      : ATxmega8E5
             Chip Erase delay              : 40000 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
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               prodsig        0     0     0    0 no        512  512      0     0     0 0x00 0x00
               signature      0     0     0    0 no          3    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
               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
               eeprom         0     0     0    0 no        512   32      0     0     0 0x00 0x00
               application    0     0     0    0 no       8192  128      0     0     0 0x00 0x00
               apptable       0     0     0    0 no       2048  128      0     0     0 0x00 0x00
               boot           0     0     0    0 no       2048  128      0     0     0 0x00 0x00
               flash          0     0     0    0 no      10240  128      0     0     0 0x00 0x00
               usersig        0     0     0    0 no        128  128      0     0     0 0x00 0x00

             Programmer Type : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/

avrdude.exe: set SCK frequency to 8000 Hz
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

avrdude.exe done.  Thank you.

 
1. I doubled check connections and tried again - it doesn't work.
2. I put a crystal oscillator 8MHz on XTAL1 and XTAL2 (PR0 and PR1 [pin 19 and 20]) - it doesn't work.
3. I tried #1 and #2 with and without JP3 and set bitclock (-B) from 1 till 200 - it doesn't work.
4. I checked pins connection MOSI, MISO, SCK, VCC and GND on the USBASP (Atmega8A) and on the cable - everything fine, but it doesn't work.
 
How can one fix it?
 
By the way, why is Device signature wrong?
avrdude.exe: Device signature = 0x2d0073
avrdude.exe: Expected signature for ATxmega8E5 is 1E 93 41