programming ATTiny2313

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
private_click
 
Posts: 2
Joined: Mon Dec 28, 2009 6:31 pm

programming ATTiny2313

Post by private_click »

first of all i want to thank the staff for all the great tutorials they are posting.

i am currently working on USBtinyISP, specifically programming the microcontroller.
because i do not have a programmer i am using an arduino duemilanove as the programmer.
i uploaded the sketch from here (avr910_ard.pde , other versions make avrdude hang)
before uploading the actual code for USBtinyISP, i tried to upload 'test_leds.hex' ( from here ) but i get a nasty error:

Code: Select all

Found programmer: Id = "AVR ISP"; type = S
    Software Version = 2.3; Hardware Version = 1.0
Programmer supports auto addr increment.

Programmer supports the following devices:
    Device code: 0x01 = (unknown)
    Device code: 0x56 = ATtiny15
    Device code: 0x76 = ATMEGA8
    Device code: 0x5e = ATtiny2313

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e910a
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "test_leds.hex"
avrdude: input file test_leds.hex auto detected as Intel Hex
avrdude: writing flash (260 bytes):

Writing | ################################################## | 100% 4.56s



avrdude: 260 bytes of flash written
avrdude: verifying flash memory against test_leds.hex:
avrdude: load data flash data from input file test_leds.hex:
avrdude: input file test_leds.hex auto detected as Intel Hex
avrdude: input file test_leds.hex contains 260 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 2.09s



avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x12 != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
the chip is powered from arduino 5v pin.
os is windows 7.

what should i do?

also, how do i complile the firmware for USBtinyISP? Make doesn't work for some reason...

thx.

solution:
after a little digging, i found out why when using the newer sketches avrdude was hanging.
you must specify the baudrate manually, '-b 19200'.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”