Irritated trying to get USBASP + Avrdude to program!

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
cyberoidx
 
Posts: 4
Joined: Sat Jun 13, 2009 1:51 am

Irritated trying to get USBASP + Avrdude to program!

Post by cyberoidx »

I'm currently using an Atmega128 based development board that was well, gifted to me. I use Ubuntu, makefile, and avr-gcc

Programming on it is easy, all I do is hit make all and make program and stuff works well.

Now I got myself a USBasp based programmer, that was tested by the maker, but can't get it working.

Tried programming a brand new Attiny13, Atmega32 and At2313 with it.

In the makefile I used to use with the atmega128, I change the MCU name. I'm using the same crystal for my atmega32 for it, so kept the speed as it is. Avrdude keeps saying that the device is wrong, or the signature is not correct. Can anyone help?

I'm attaching the makefile used for my mega128. could someone tell me the changes I need to use it for the mega32?

Also, is there something like Slow SCK that needs to be used instead of SCK for programming a factory AVR ? I read that since they use internal oscillators, the fuse bits are set to that.

I'm attaching my Makefile. Can someone tell me what changes I need to make to program an Atmega32 the first time [Using USBASP]? And then subsequently, so that it uses its 16Mhz external clock?

Thanks.
Attachments
Makefile_linux.txt
My makefile for the Atmega128.
(17.49 KiB) Downloaded 286 times

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: Irritated trying to get USBASP + Avrdude to program!

Post by mtbf0 »

are you using the same fuse settings as you used for the mega128? that may or may not be the right thing to do, but i'd guess not.

cyberoidx
 
Posts: 4
Joined: Sat Jun 13, 2009 1:51 am

Re: Irritated trying to get USBASP + Avrdude to program!

Post by cyberoidx »

I compared the fuses, those are what I want for the atmega32 too.

But don't know if thats what I need to program the first time.

mtbf0
 
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am

Re: Irritated trying to get USBASP + Avrdude to program!

Post by mtbf0 »

can we see the output from avrdude?

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

Return to “Microcontrollers”