Society of Robots - Robot Forum

Software => Software => Topic started by: superchiku on February 23, 2008, 02:51:06 PM

Title: program loading problem
Post by: superchiku on February 23, 2008, 02:51:06 PM
plzz help me iam using atmega16 mcu and trying to program it using avrdude with a home made programmer i have tried every thing but i always get the same error the error is like this
> "make.exe" program
avrdude -p atmega16 -P lpt2    -c bsd    -U flash:w:delay_test.hex

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


avrdude done.  Thank you.

make.exe: *** [program] Error 1

i have checked the connections and i have verified it with the programmer schematic i use but it still doesnt work plzz help me i need to load the program in order to check delay of my mcu plzz help

the schematic of my programmer is liike this


parallel port(db 25 pin no)      values of resistor     mcu pin no

1                                                1k                     8
2                                                 "                      6
11                                                 nil                   7
16                                                 10k                 reset(10 k connected to vcc then to the line)
20,21                                          nil                     ground
Title: Re: program loading problem
Post by: Admin on February 27, 2008, 08:01:48 PM
Assuming your schematic is correct, did you check all the pins with a multimeter to make sure its what you expect?

And the same for your atmega16 circuit?
Title: Re: program loading problem
Post by: frank26080115 on February 27, 2008, 10:53:41 PM
Did you check if your programmer is actually on LPT2?

Shouldn't
-U flash:w:delay_test.hex
be
-U flash:w:delay_test.hex:i ?

If you are not using Windows, then make sure you are giving AVRdude permission to access peripheral devices.

Can you please do us a favor and use some punctuation in your posts? And type "please" not "plzz".