Atmega 8 Programming Error

Hi

I did some researches. And i am trying to make my own arduino like this http://arduino.cc/en/Main/ArduinoBoardSerialSingleSided3

I am trying to upload bootloader to atmega 8 chip. I downloaded giveio and installed. I did connections by that diagram http://arduino.cc/en/Hacking/ParallelProgrammer.

I am trying to do this on breadboard. I am using 5V voltage stabilizer for supplying voltage for atmega. I am using w7. And using parallel port on motherboard(the number was something like asus ma5-78l).

I checked the parallel port from device manager and there is not any problem.

How am i trying to do this;

I firstly opened arduino software, selected paralel port as an ?sp programmer from tools menu. I selected atmega 8 board from tools and i pressed the burn bootloader.And i saw that error:

avrdude: AVR device not responding avrdude: initialization failed, rc=-1 avrdude: Yikes! Invalid device signature. avrdude: Expected signature for ATMEGA8 is 1E 93 07

Where can be a problem? I need help.

Thanks

In preferences, turn on verbose upload logging. Then try the Burn Bootloader again. You should get a lot of messages, including what signature it found, not just what it expected. If the signature found is 00 00 00 of FF FF FF you have a bad connection or bad programmer.

johnwasser: In preferences, turn on verbose upload logging. Then try the Burn Bootloader again. You should get a lot of messages, including what signature it found, not just what it expected. If the signature found is 00 00 00 of FF FF FF you have a bad connection or bad programmer.

Hi

I did that test. The result is at the down of the page. I am not using pin 3 of paralel port. So the instructions telling dont use pin 3 as a vcc. I am using other one psu. And should i use a crystal during burn. I did test with an without external crystal.

And i checked my parallel port output with a led(by other one program). That is working. I did everything by that instructions.http://arduino.cc/en/Hacking/ParallelProgrammer

Here is a which pins am i using on atmega 8. I am entering vcc to pin 7 of atmega and grnd to pin 8. pin 9-10 for crystal. pin 1 for reset. And 3 more pins of atmega connected to parallel port pins fo data or whatever.

I read something like about fuses. But i couldnt understand anything. Maybe i am skipping something about fuses or something like that. I am not sure.

I really need help. I am trying to do this for a 10 hours. I am gonna be crazy. Thank you so much about your helps...

Notice: I am using that pins and i wrote that like "name(paralel port info)".. ;

mosi(pin 2 with 470ohm r), miso(pin 11 with 220 ohm r), sck(pin 1 with 470 ohm r), reset(pin 16 without r) and grnd(pin 18 without r). Pin 18 of parallel port so ground wire going to pin 8 of atmega 8. Grnd of parallel port and power supply is going to same pin.

Programmer Type : PPI Description : Direct AVR Parallel Access cable VCC = 3 BUFF = (not used) RESET = 16 SCK = 1 MOSI = 2 MISO = 11 ERR LED = 0 RDY LED = 0 PGM LED = 0 VFY LED = 0

Here is a all of error code.


C:\Program Files\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega8 -cdapa -F -e -Ulock:w:0x3F:m -Uhfuse:w:0xca:m -Ulfuse:w:0xdf:m

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files\Arduino\hardware/tools/avr/etc/avrdude.conf"

Using Port : lpt1 Using Programmer : dapa 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 MaxW ReadBack


eeprom 4 20 128 0 no 512 4 0 9000 9000 0xff 0xff Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


flash 33 10 64 0 yes 8192 64 128 4500 4500 0xff 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


lfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


hfuse 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


lock 0 0 0 0 no 1 0 0 2000 2000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


calibration 0 0 0 0 no 4 0 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack


signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

Programmer Type : PPI Description : Direct AVR Parallel Access cable VCC = 3 BUFF = (not used) RESET = 16 SCK = 1 MOSI = 2 MISO = 11 ERR LED = 0 RDY LED = 0 PGM LED = 0 VFY LED = 0

avrdude: Using performance counter for bitbang delays bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] bitbang_cmd(): [ AC 53 00 00 ] [ FF FF FF FF ] avrdude: AVR device not responding avrdude: initialization failed, rc=-1 avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. avrdude: Expected signature for ATMEGA8 is 1E 93 07

avrdude done. Thank you.

Did you download giveio from MIT's Microcomputer Project Laboratory and run the enclosed ginstall.bat file like the instructions say to?

johnwasser: Did you download giveio from MIT's Microcomputer Project Laboratory and run the enclosed ginstall.bat file like the instructions say to?

Yes, I already installed it. Before i install it; i was taking error like lpt1 not found. But after i install the giveio thats solved.

Up!

come on! i tried it with a two different computer. Where can be a problem. I did everything by the insructions.

It is possible that the parallel port is not bi-directional.

You can buy a USBasp ISP device thorough eBay for less than $4 (including shipping). That might be a good investment.

johnwasser: It is possible that the parallel port is not bi-directional.

You can buy a USBasp ISP device thorough eBay for less than $4 (including shipping). That might be a good investment.

What means bi-directional for parallel port. Sure i can buy an isp programmer. But it ll come with some problems like long waiting times because shipping, problems at the customs etc.

So i think that must be an answer of why that is not working. I did everything by instructions. My paralel port outputs is working. I tried that on a asus laptop with paralel board and on oem desktop computer. I need to learn the whats wrong here.

Thank you so much for your replies johnwasser. And i am sorry about my bad english..

What means bi-directional for parallel port.

Parallel ports on modern systems usually have several different configurations that can be set via the BIOS setup functions. What is yours set as? Or, just try some other setting.

Parallel ports are difficult to access from modern operating systems like W7. "giveio" is supposed to fix that, but I've heard mixed reviews of how well it works. (for example, I have a parallel-port device programmer with some sort of giveio equivalent running under WXP. It only works when its parent (DOS) program is run in "full screen mode." It's documented as only working that way. But I can't figure out why that would be true! Do you have any computers with an older OS? Could you boot a linux "live cd" just for burning the initial bootloaders? How about something like freedos?

westfw:

What means bi-directional for parallel port.

Parallel ports on modern systems usually have several different configurations that can be set via the BIOS setup functions. What is yours set as? Or, just try some other setting.

Parallel ports are difficult to access from modern operating systems like W7. "giveio" is supposed to fix that, but I've heard mixed reviews of how well it works. (for example, I have a parallel-port device programmer with some sort of giveio equivalent running under WXP. It only works when its parent (DOS) program is run in "full screen mode." It's documented as only working that way. But I can't figure out why that would be true! Do you have any computers with an older OS? Could you boot a linux "live cd" just for burning the initial bootloaders? How about something like freedos?

Ok thats good i can install the live ubuntu. But is it gonna be enoug?. So my ubuntu version is not gonna be old os?

Thank you so much for ur helps.

The parallel programmer does not supply power to the target. When using a Parallel programmer you need to also power the target avr separately.