eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« on: April 22, 2008, 05:13:55 am » |
Hi All, 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'. but, thankfully another friend lent me this: http://www.avr-tools.de/component/page,shop.product_details/flypage,shop.flypage_avr/product_id,35/category_id,14/manufacturer_id,0/option,com_virtuemart/Itemid,1/i tried to look it up on the internet but couldnt find any info about this thing. The question is, can i burn the bootloader using that programmer? If i can, i want to make somthing based on the serial one sided board.
|
|
|
|
« Last Edit: April 22, 2008, 08:25:31 am by kodockz »
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #1 on: April 22, 2008, 06:09:18 am » |
|
|
|
|
|
Logged
|
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #2 on: April 22, 2008, 06:30:18 am » |
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.
|
|
|
|
« Last Edit: April 22, 2008, 06:46:49 am by kodockz »
|
Logged
|
|
|
|
|
Wuppertal/Germany
Offline
God Member
Karma: 0
Posts: 869
|
 |
« Reply #3 on: April 22, 2008, 09:46:09 am » |
Hi, so, ur saying that its not possible to program using that LPT port programmer?
No, I simply don't know  They don't give much information(could not see a datasheet...) What's the differrence between this LPT programmer and building my own parallel programmer?
The DIY programmer should be cheaper to build. I realize that the LPT programmer from my friend is 2x5 pins.
This page http://www.evilmadscientist.com/article.php/avrtargetboards has some info on the different pinouts (2x3 vs. 2x5 pins) The original arduino-board uses the 6Pin-version. Eberhard
|
|
|
|
|
Logged
|
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #4 on: April 23, 2008, 07:21:56 am » |
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.
thx for the explanation.
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #5 on: April 23, 2008, 07:29:20 am » |
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... info here: http://www.arduino.cc/en/Hacking/Programmer. works great for me, have fun!
|
|
|
|
|
Logged
|
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #6 on: April 23, 2008, 04:19:48 pm » |
tried what the page told me to do .... but i got this error right here: 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 avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x00 avrdude: verification error; content mismatch i am using arduino-011 IDE. i've changed the preferences to this: upload.using=parallel i hope this is okay.. do i also have to add these ? parallel.name=Parallel Programmer parallel.protocol=dapa parallel.force=true # parallel.delay=200
do i still have to burn the bootloader?
|
|
|
|
|
Logged
|
|
|
|
|
Norway
Offline
Sr. Member
Karma: 0
Posts: 370
R-Doo-Inoo in the making :3
|
 |
« Reply #7 on: April 23, 2008, 08:40:23 pm » |
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.
|
|
|
|
|
Logged
|
B-dui in creation.
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #8 on: April 29, 2008, 06:11:47 am » |
could it be that the i have the 'polling' problem as stated by the tutorial?
has anyone encountered the same error as i got above?
|
|
|
|
|
Logged
|
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #9 on: May 05, 2008, 04:43:14 am » |
just a little recap - i'm using a parallel programmer that i built based on the hacking tutorial. - i have a few fresh Atmega 168, and i'm building one of it on a bread board. - circuitry is based on the serial single sided schematic - the power comes from a 9V battery - im going to burn the sketch directly using the parallel programmer - installed giveio and XP_stop_polling.reg - changed preferences to 'upload.using=parallel' - change board to 'arduino NG or older with ATmega 168' - currently using arduino-011 problems: 1. i got this error down here: 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 avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x00 avrdude: verification error; content mismatch
2. I placed an LED on Pin 13(on arduino) or pin 19(on Atmega). The LED is dimmed, I dont know why this happened. question: - what have i done wrong / what is it that i havent done?
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #10 on: May 05, 2008, 04:47:04 am » |
I saw a similar message when I plugged my parallel programmer into the ICSP connector backwards.
Double check your programmer to make sure its wired up correctly and going to the right pins.
|
|
|
|
|
Logged
|
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #11 on: May 05, 2008, 05:21:22 am » |
let's see if what i did was incorrect
parallel programmer pin vs atmega pin 11 + 220 ohm vs 18 MISO 1 + 470 ohm vs 19 SCK 2 + 470 ohm vs 17 MOSI 16 vs 1 Reset 18 vs GND
i connected my parallel programmer to the Atmega 168 as shown above. I hope what i did was correct.
or maybe my Atmega is fried? but im supposes that cant be coz at most my voltage was 9V.
|
|
|
|
« Last Edit: May 05, 2008, 05:23:50 am by kodockz »
|
Logged
|
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #12 on: May 06, 2008, 02:54:30 pm » |
a little update but nothin good.
i tried using my friend's computer and did the same steps as i did before. unfotunately, i still cant burn the bootloader nor can i burn the sketch...
hope to seek more advice real soon, my deadline is coming...
thanks for all the help ....
|
|
|
|
|
Logged
|
|
|
|
|
Denver
Offline
God Member
Karma: 19
Posts: 776
Inactive - PM
|
 |
« Reply #13 on: May 06, 2008, 04:04:51 pm » |
kodockz, A link that may help is: http://www.uchobby.com/index.php/2007/09/12/how-to-update-the-arduino/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 
|
|
|
|
|
Logged
|
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom." ~ Clifford Stoll
|
|
|
|
eindhoven, nl
Offline
Newbie
Karma: 0
Posts: 21
try and try and try and try
|
 |
« Reply #14 on: May 12, 2008, 06:15:26 am » |
@Hogan
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 ...
|
|
|
|
|
Logged
|
|
|
|
|
|