avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] how to connect USBasp to attiny2313


From: Ormund Williams
Subject: Re: [avr-chat] how to connect USBasp to attiny2313
Date: Mon, 05 Aug 2013 00:41:35 -0400

On Sat, 2013-08-03 at 05:30 +0200, YuGiOhJCJ Mailing-List wrote:
>                                   Block Poll               Page               
>         Polled
>            Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  
> MaxW   ReadBack
>            ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- 
> ----- ---------
>            eeprom        65     6     4    0 no        128    4      0  4000  
> 4500 0xff 0xff
>            flash         65     6    32    0 yes      2048   32     64  4500  
> 4500 0xff 0xff
>            signature      0     0     0    0 no          3    0      0     0  
>    0 0x00 0x00 <----XXX
>            lock           0     0     0    0 no          1    0      0  9000  
> 9000 0x00 0x00
>            lfuse          0     0     0    0 no          1    0      0  9000  
> 9000 0x00 0x00
>            hfuse          0     0     0    0 no          1    0      0  9000  
> 9000 0x00 0x00
>            efuse          0     0     0    0 no          1    0      0  9000  
> 9000 0x00 0x00
>            calibration    0     0     0    0 no          2    0      0     0  
>    0 0x00 0x00
> 
>          Programmer Type : usbasp
>          Description     : USBasp, http://www.fischl.de/usbasp/
> 
> avrdude: error: programm enable: target doesn't answer. 1 
> avrdude: AVR device initialized and ready to accept instructions
> 
> Reading | ################################################## | 100% 0.00s
> 
> avrdude: Device signature = 0x000000
> avrdude: Yikes!  Invalid device signature.
>          Double check connections and try again, or use -F to override
>          this check.
> 
> 
> avrdude done.  Thank you.
> 
> But as you can see I got some errors.
> Do you see the problem ?

Looking back at all the avrdude messages you have shown, it seems that
the usbasp has never made a connection with the tiny2313, the
'signature' has always come back as 0x0000.  You have one or more of 3
problems:
        1, The wiring you have may not be correct.  In a previous
        message you showed how you connected the usbasp to the tiny2313,
        it is correct but you need to confirm that you have pin1 correct
        (see attachment), the wires are short, less than 300mm and
        making good contact.
        
        2, The tiny2313 comes with the 8MHz internal RC oscillator and
        the 
        CKDIV8 fuse enabled, that means that the tiny2313 is running at
        1MHz therefore the maximum SCK clock must be less than 250kHz,
        according to the documentation:
        http://www.fischl.de/usbasp/Readme.txt the SCK frequency is
        375kHz unless you set the internal SCK jumper of the usbasp, you
        will have to open it to do that.
        
        3, The usbasp is broken. Replace, with something better.
        
Regards.

-- 
Ormund

Attachment: connector.jpg
Description: JPEG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]