Pages: [1] 2 3 4   Go Down
Author Topic: [noob-ask] burning bootloader using LPT programmer  (Read 5044 times)
0 Members and 1 Guest are viewing this topic.
eindhoven, nl
Offline Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, i would either build it myself http://www.arduino.cc/en/Hacking/ParallelProgrammer

or buy an AT AVR-ISP MK2 since there is a good chance your next computer will not have an LPT-port any more.

Bad news is the AV-ISP MK2
http://www.reichelt.de/?;ACTION=3;LA=2;GROUP=A38;GROUPID=2969;ARTICLE=45040;START=0;SORT=artnr;OFFSET=16;SID=26UujgjqwQARoAADzbZf0118999ad3232aadee17e69f6f87e288e
seems to be out of stock in germany (www.segor.de + www.reichelt.de) right now  :-?

Eberhard
Logged

eindhoven, nl
Offline Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
God Member
*****
Karma: 1
Posts: 895
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Quote
so, ur saying that its not possible to program using that LPT port programmer?
No, I simply don't know  smiley-sad They don't give much information(could not see a datasheet...)
Quote
What's the differrence between this LPT programmer and building my own parallel programmer?
The DIY programmer should be cheaper to build.
Quote
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 Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 10
Posts: 6248
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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 Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

tried what the page told me to do ....

but i got this error right here:

Code:
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:
Code:
upload.using=parallel


i hope this is okay.. do i also have to add these ?
Code:
parallel.name=Parallel Programmer
parallel.protocol=dapa
parallel.force=true
# parallel.delay=200

do i still have to burn the bootloader?
Logged

Norway
Offline Offline
Sr. Member
****
Karma: 0
Posts: 370
R-Doo-Inoo in the making :3
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
Code:
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 Offline
Faraday Member
**
Karma: 10
Posts: 6248
Have fun!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
God Member
*****
Karma: 20
Posts: 778
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-wink

Logged

"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll

eindhoven, nl
Offline Offline
Newbie
*
Karma: 0
Posts: 21
try and try and try and try
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@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

Pages: [1] 2 3 4   Go Up
Jump to: