Author Topic: program loading problem  (Read 3726 times)

0 Members and 1 Guest are viewing this topic.

Offline superchikuTopic starter

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
program loading problem
« 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
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: program loading problem
« Reply #1 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?

Offline frank26080115

  • Supreme Robot
  • *****
  • Posts: 322
  • Helpful? 2
Re: program loading problem
« Reply #2 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".

 

SMF spam blocked by CleanTalk