Go Down

Topic: [SOLVED] - Self made arduino...very SLOW (Read 2 times) previous topic - next topic

johnwasser

Since you don't have a bootloader on the ATmega8 you must not be using the USBTiny with Arduino0022 to upload sketches.  Are you using AVRDUDE directly?  If so, try the command Arduino tried:

Quote

avrdude -v -patmega8 -cusbtiny -e -Ulock:w:0x3F:m -Uhfuse:w:0xca:m -Ulfuse:w:0xdf:m


That will erase the chip (-e) and set the lock and fuse bits.  That SHOULD be enough to get your ATmega8 running with the 16MHz crystal.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

pgmartin

#16
May 29, 2011, 02:30 am Last Edit: May 29, 2011, 03:39 am by pgmartin Reason: 1
I´ve tried. but still with the same problem.

Code: [Select]
avrdude -v -patmega8 -cusbtiny -e -Ulock:w:0x3F:m -Uhfuse:w:0xca:
m -Ulfuse:w:0xdf:m
avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

        System wide configuration file is "C:\Users\Pablo\WinAvr\bin\avrdude.co
nf"

        Using Port                    : lpt1
        Using Programmer              : usbtiny
        AVR Part                      : ATMEGA8
        Chip Erase delay              : 10000 us
        PAGEL                         : PD7
        BS2                           : PC2
        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  Max
W   ReadBack
          ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
          eeprom         4    20   128    0 no        512    4      0  9000  90
00 0xff 0xff
          flash         33    10    64    0 yes      8192   64    128  4500  45
00 0xff 0x00
          lfuse          0     0     0    0 no          1    0      0  2000  20
00 0x00 0x00
          hfuse          0     0     0    0 no          1    0      0  2000  20
00 0x00 0x00
          lock           0     0     0    0 no          1    0      0  2000  20
00 0x00 0x00
          calibration    0     0     0    0 no          4    0      0     0
0 0x00 0x00
          signature      0     0     0    0 no          3    0      0     0
0 0x00 0x00

        Programmer Type : USBtiny
        Description     : USBtiny simple USB programmer, http://www.ladyada.net
/make/usbtinyisp/
avrdude: programmer operation not supported

avrdude: initialization failed, rc=-1
        Double check connections and try again, or use -F to override
        this check.


avrdude done.  Thank you.



Seems like the micros die after I tried to burn the bootloader using the IDE. I have killed already one Atmega 8 and two 168.
Is there anyway to diagnose them?


pgmartin

Reading this article http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=106325 I guess I have a clock problem. Is there a way to solve it?

pgmartin

Thanks for the support. A combination of the commands you suggested and installing a crystal in the burning board was the solution.

Go Up