I am a noob and I've been working for a project on my friend's Arduino for two weeks now. He wants it back next week and I have to continue this project.
I've ordered some plain ATmega 168. What i think i have to do now is burn the bootloader. So that i can work with arduino IDE. Problem is, i dont have any external programmer such as 'avr isp mkII'.
well, actually i'm in holland but im not a dutch.
its also out of stock in f4rnell.
so, ur saying that its not possible to program using that LPT port programmer?
What's the differrence between this LPT programmer and building my own parallel programmer?
I realize that the LPT programmer from my friend is 2x5 pins.
i decided to salvage a parallel male connector instead and build 'the parallel programmer'.. luckily, i got one and already built it.
now wish me luck burning the bootloader. i think i''m going to try uploading the sketch thru this parallel programmer as well.. i've seen the thread somewhere...
im gonna test the burned 168 and put it on my friend's arduino NG board.
now wish me luck burning the bootloader. i think i''m going to try uploading the sketch thru this parallel programmer as well.. i've seen the thread somewhere...
if you are uploading a sketch to an atmega chip via the parallel programmer cable you dont need a bootloader.. the bootloader is only if you are using the serial method to upload sketches to it.
However, I have a similar problem trying to use the parallel cable.
I can not even find a way to be sure the cable is working at all.
I double checked the cable from the connector to the pins on atmega chip, but when I plug it in, without power to the board, one of the led lights dimly. This makes me wonder.
Does anyone know if this is normal?
I also get the wrong signature, but the link above allows you continue past that using a command line option.
For me it was no help. After a set of 20 min. long progress bars there was no joy. And if I disconnect the cable I still got the progress bars! The whole operation seemed rather funky to me. The napkin diagram, the instructions that refer to the atmega 8, the fact that I couldn't find a second reference on the web for that particular cable, and the dim led, really made me feel like I was out in the ozone.
But I hope you have better luck! It's got to be something simple
Thx man, i've read that one before. But i think its using Arduino IDE 009. The 011 has a 'burn using parallel programmer' option on it. so Its suppose to work. But im gonna try it out anw.
hey, if you find some more things, lemme know soon coz my deadline is closing in ...
I also have hooked up my new atmega168 chip on to my diecimila and then connected that to the parallel programming cable that I built based on the build you own instructions: http://www.arduino.cc/en/Hacking/ParallelProgrammer
After trying various things to get it to work I have failed. When attempting to burn the bootloader from the arduino 0011 program from tools> burn bootloader> w/ parallel programmer I get the following:
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: AVR device not responding
***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x07
avrdude: verification error; content mismatch
FWIW, I think it is normal. I also get a dimly lit power LED on mine with the cable connected to the PC and no power in the arduino.
Well, that made me feel more confident about my cable - even though I had metered it out twice before from the DB25 pins to the ATMega pins and it was OK.
So I tried it again on chip that needed a bootloader (at least) - using the IDE. I got . . .
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: AVR device not responding
***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x07
avrdude: verification error; content mismatch
So I figured maybe I was working with an unloadable chip. So I tried my last good spare. I got the same error or similar, and bricked that good chip. No L Led at power up, and
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
when I try to load.
BTW I ran status_giveio.bat and it reported "ok". I previously loaded the polling patch and my LPT port is ECP on an XP PC. (I noticed "Try not to use an interrupt is set for the port - matters?)
I don't know what to do next - buy a "real" programmer and hope I can recover 3 bricked chips, or fold ;).
I also have hooked up my new atmega168 chip on to my diecimila and then connected that to the parallel programming cable that I built based on the build you own instructions: http://www.arduino.cc/en/Hacking/ParallelProgrammer
After trying various things to get it to work I have failed. When attempting to burn the bootloader from the arduino 0011 program from tools> burn bootloader> w/ parallel programmer I get the following:
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: AVR device not responding
***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x07
avrdude: verification error; content mismatch
FWIW, I think it is normal. I also get a dimly lit power LED on mine with the cable connected to the PC and no power in the arduino.
Well, that made me feel more confident about my cable - even though I had metered it out twice before from the DB25 pins to the ATMega pins and it was OK.
So I tried it again on chip that needed a bootloader (at least) - using the IDE. I got . . .
avrdude: Expected signature for ATMEGA168 is 1E 94 06
avrdude: AVR device not responding
***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x07
avrdude: verification error; content mismatch
So I figured maybe I was working with an unloadable chip. So I tried my last good spare. I got the same error or similar, and bricked that good chip. No L Led at power up, and
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
when I try to load.
BTW I ran status_giveio.bat and it reported "ok". I previously loaded the polling patch and my LPT port is ECP on an XP PC. (I noticed "Try not to use an interrupt is set for the port - matters?)
I don't know what to do next - buy a "real" programmer and hope I can recover 3 bricked chips, or fold ;).
Any help or advice appreciated.
i think you get this error
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
when you are not reseting the arduino before uploading