Pages: 1 2 [3] 4   Go Down
Author Topic: [noob-ask] burning bootloader using LPT programmer  (Read 5341 times)
0 Members and 1 Guest are viewing this topic.
Denver
Offline Offline
God Member
*****
Karma: 20
Posts: 779
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
did u connect anything else on ur Atmega aside of the parallel programmer?

I also had the board powered. You're doing that right?
So just power, and the IDE cable - (it was a Boarduino).

Sorry this is still not working for either of you. I know how frustrating it is.  >smiley-sad
The only encouragement is that it can work and you will probably get your chips back when it does.
I don't know why it's such a "black art" though!

I only mentioned the parameter because it was a "known difference" between the working and non-working system.
(BTW, I had the .reg patch installed on the non-working system and it wasn't on the working system.)

It's also worth double checking your cable again. The surest test is to plug it into the board, and meter from the pin on the end of the cable -  to the pin on the Atmega chip.
You should get 470 Ohms from pin 1 on the cable to pin 19 on the Atmega, 470 Ohms from pin 2 to pin 17, 220 Ohms from pin 11 to pin 18, 0 Ohms from pin 16 to pin 1 (reset), and 0 ohms from pin 18 to pin 8 (gnd).

I don't know how different configurations of the cable work. My guess is that this cable is made to work with giveio and others use a different driver, but I'm not sure.

Besides making sure your board is powered, your cable is A-Ok, and trying it on every machine you can get your hands on, I can't think of any other advice.

Communication problems are typically like this - doesnt work, doesnt work, doesnt work, - works great, works great, works great.
Good luck.

Logged

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

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I was never able to make the parallel port programmer on the arduino site work, but I did use a schematic for a '244 based unit that worked just fine.  Sounds like you are travelling the same road I did.  I wound up just buying an avrispmkII, but that was before ladyada had the USBtiny device for about half the cost.

The entry for each type of programmer listed in avrdude.conf tells it which pins to use.

-j

Logged

Brazil
Offline Offline
Sr. Member
****
Karma: 0
Posts: 443
..., to learn, to know, to make, to share, to l...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Brohogan, Macsimski and Kodockz,

I always use the Parallel Port Programmer here, with Atmega8, and WinXP. It works fine for me.
I got the Device Signature problem with older IDEs, but not with 0011.

You can try the DOS prompt command to burn the bootloader using the -F command (that override the device signature). This worked for me before:
For Atmega8, use the procedure described in this post, reply#15:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1200218080;start=all
(you must change the reference from Arduino-0010 to Arduino-0011)

For Atmega168, you must change the command -pm8 to -pm168
and change the fuses settings.

If you don't know how to change the fuses for Atmega168, you can try the 0007 IDE version to burn the bootloader (it uses uisp instead of avrdude), using the parallel port programmer.
Logged

PCB Designer

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is a nice page :

http://www.dl1dow.de/inhalt/arduino/bootloader/index.html

Your parallel cable may be wired as DAPA, or as BSD.
It seems that only the BSD configuration may be fine,
but "in some cases, the ATMEGA 168 became inprogrammable"...  :-?


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

hm.. could it be that the polling register caused the trouble?  I installed them on both computers I'm working on...

is there any way to "uninstall" them?
Logged

Brazil
Offline Offline
Sr. Member
****
Karma: 0
Posts: 443
..., to learn, to know, to make, to share, to l...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't think this is your problem because I have it installed in my computer and I can burn the bootloader with the Parallel Port Programmer without problems.

Did you try the DOS solution?

Or the 0007 solution?
Logged

PCB Designer

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

Quote
I don't think this is your problem because I have it installed in my computer and I can burn the bootloader with the Parallel Port Programmer without problems.

Did you try the DOS solution?

Or the 0007 solution?

Im still busy with programming the board. I decided to leave this one out for next week after my code is fnished.

I think im gonna try the DOS coz i dont wanna ruin my working Arduino IDE 011.

Mm i believe I can find the fuse settings as specified on the other thread...
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
So did anyone find a good way to work it out easily?
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

Hmm ..

I decided to give the 011 another shot. This time i put the empty atmega168 to the arduino board (NG rev C).
I realized without any extern/USb power connected, the power turnen on.

And then again it failed.

@BroHogan,
where did u put the pause on the status_giveio?
Logged

Denver
Offline Offline
God Member
*****
Karma: 20
Posts: 779
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I typed "pause" at the very end of load... and status... batch files. This way you can run them by just clicking on them and actually see what happened.

A few weeks ago I posted a tip that went nowhere. It simply said that if your parallel cables are too long (~1M) they may not work. This was based on my experience - long cable = no work, short cable = work.

I suggested (and still do) that someone who is able to edit the guide for making the cable, add that little tip. 20cm is a good length - even if it means crawling behind your machine.

It's a shame that the ability for everyone to use a parallel ISP programmer has been so elusive here. It would be great if procedures were formalized to the extent that they would work for everyone. It would save a lot of frustration.

Right now it appears to be a black art.
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

am i missing something ?  the Arduino 007 IDE cant burn bootloader for Atmega168 ?
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It's a shame that the ability for everyone to use a parallel ISP programmer has been so elusive here. It would be great if procedures were formalized to the extent that they would work for everyone. It would save a lot of frustration.
It can't be readily formalized, because it's basically a hack.  Functionality depends to a great extent on the particulars of the specific hardware and host OS in question.

No one is being elusive, they're just not all jumping up to help troubleshoot your unique combination of hardware, software, and construction technique.

Preprogrammed ICs are available from several places online, ususally about US$4 or $5 - not much more than the bare processor.

If it's terribly important to you to be able to burn a program via ICSP, spend US$22 at LadyAda's web site, or US$36 at digikey, and get a USB attached programmer.  I know $30 or $40 is non trivial to a broke college student, but it's not all that much in the grand scheme of things, and trust me, it's much less trouble than you've already gone to.  Plus, it'll work on a machine that doesn't have a parallel port, like a laptop.

I'm surprised there isn't more attention given to the RS232 based programmers, but I suspect that the timing issues introduced in USB/RS232 adapters can wreak havoc with bit banging.

-j

Logged

Denver
Offline Offline
God Member
*****
Karma: 20
Posts: 779
Inactive - PM
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, I was only trying to help some others here.
My programmer has been working fine since I shortened the cable, so I really don't have a dog in the fight.

I wasn't saying that the people here have been elusive. I said that the problem seems to be elusive. I'd like to make that distinction.

If you say that the option on the IDE to burn with a parallel programmer is a hack and may not work for everyone, then I guess it should be left at that.
I really don't care anymore.
Logged

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

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I wasn't saying that the people here have been elusive.
Sorry, my mistake.  I've said before, I should have an interlock on my keyboard to keep me from posting until my blood-caffeine level is high enough.

Quote
f you say that the option on the IDE to burn with a parallel programmer is a hack
Nope, I meant the whole idea of a parallel port programmer, especially a wires-only device, is a hack.  I don't mean that in a negative way, but it's a fact.

Sorry if my post came off negative toward anyone, I sure didn't mean it that way.

-j

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

anw .. .

tried to execute this code here (in command prompt):
[glow]avrdude -c dapa -p m168 -P LPT1 115000 -U signature:r:-:h [/glow]

got the error that it cant access/open port LPT1.

-----edited----

ignore this.. it was lpt1 not LPT1.

then i added delays ... - i 20000 -> very long one i guess.
still it failed.

one thing that i saw was the LED that i put on pin 13 blinks/flickers while processing the code above.
The longer the delay the better i can see the blinks.

parallel programmer attached or unattched to the port gives the same result.

sigh .... other suggestion?
« Last Edit: June 13, 2008, 09:11:53 am by kodockz » Logged

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