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: YuGiOhJCJ
Subject: Re: [avr-chat] how to connect USBasp to attiny2313
Date: Fri, 9 Aug 2013 06:36:47 +0200

$ sudo avrdude -p t2313 -c usbasp -v

avrdude: Version 5.11.1, compiled on Aug  4 2013 at 12:57:07
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/usr/etc/avrdude.conf"
         User configuration file is "/home/spierre/.avrduderc"
         User configuration file does not exist or is not a regular file, 
skipping

         Using Port                    : /dev/parport0
         Using Programmer              : usbasp
         AVR Part                      : ATtiny2313
         Chip Erase delay              : 9000 us
         PAGEL                         : PD4
         BS2                           : PD6
         RESET disposition             : possible i/o
         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        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
           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: auto set sck period (because given equals null)
avrdude: warning: cannot set sck period. please check for usbasp firmware 
update.
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e910a
avrdude: safemode: lfuse reads as 64
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as FF

avrdude: safemode: lfuse reads as 64
avrdude: safemode: hfuse reads as DF
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK

avrdude done.  Thank you.

It works now :)
I have probably done a mistake on the wiring the last time.

As the this programmer contains a modified version of the opensource firmware 
on the fischl.de site, it means that I can't flash it with the original 
firmware if one day I need to upgrade the firmware.
Damned, they should not call this a usbasp programmer if it doesn't use exactly 
the original firmware.
If one day it doesn't work, I will buy a new one, I have no choice.

Since the usbasp firmware is distributed under the terms and conditions of the 
GNU GPL version 2, they should give the source code of the modified version of 
the firmware I have on my programmer.
Do you see this source code somewhere ?

Anyway at this moment, it works, so thank you a lot.
Best regards.

On Thu, 08 Aug 2013 12:59:28 -0400
Ormund Williams <address@hidden> wrote:

> On Thu, 2013-08-08 at 08:29 +0200, YuGiOhJCJ Mailing-List wrote:
> > And this is the attached file.
> > 
> I went to the link printed on the circuit board and followed it here:
> http://www.aliexpress.com/store/product/1LOT-1PCS-USBasp-AVR-Programmer-1PCS-CNT-004-Adapter-1PCS-10PIN-65CM-Wire-Free-shipping/812021_1087050891.html
> it says that this usbasp is modified to automatically find the correct
> speed so use the latest avrdude but leave out the -B switch, like this:
>         $ sudo avrdude -p t2313 -c usbasp -v
>         
> Don't forget the correct wiring.
>         
> > > - My target micro-controller attiny2313 clock is lower than 1.5 MHz
> > > - So, I need to put a jumper (J3) between the pin 25 of the usbasp 
> > > programmer internal micro-controller atmega8 and the GND (pin 3, pin 5 or 
> > > pin 21).
> > > 
> From the picture they did not put a jumper or holes for a jumper.
> 
> > > We can verify this information in the README file[1] and in the schematic 
> > > image[2] of the usbasp programmer.
> > > 
> > > I have opened the usbasp to see how I can set the jumper of the usbasp.
> > > 
> > > As you can see in the attached image, this is very little and I don't 
> > > know how to wire the pin 25 to the GND correctly.
> > > 
> > > Can you give me an advice on how I can wire the pin25 and the GND easily ?
> > > 
> The above link says that this unit is modified from the opensource
> version on the fischl.de site so the information there doesn’t quite
> apply.
> 
> Best regards.
> 
> -- 
> Ormund
> 
> 
> _______________________________________________
> AVR-chat mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-chat



reply via email to

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