Go Down

Topic: Bootloader Flashing Headache (Read 572 times) previous topic - next topic

supermauerbros

I'm attempting to upgrade an Arduino Extreme 2 board to an ATMega168 chip. I don't have the money (or the time) to get an AVRISP so I have to go the parallel route. I bought 2 ATMEGA168's, one extra in case something goes really sour.

I don't have easy access to components where I live so I don't have a male parallel port to solder my connections to, they're just going straight into the parallel port with the proper resistors laid out on a breadboard.

The arduino 0011 software returns an error immediately when trying to program with the parallel programmer, regardless if I'm trying to program a fresh 168 or my old 8. I've tried batch files with uisp commands and while they work, and the LED on pin 13 flickers, there are two major problems. One, I can't upload sketches afterwards. And two, if I use the --verify flag on the bootloader upload it returns massive amounts of errors. Obviously something ain't right.

Also could someone give me a concise explination or link to fuses and what's capable of setting them. In some posts it's said that uisp can't set fuses but AVRdude can, and the tutorial everyone seems to link to is long dead with no cache.

These are the links I've referenced:

"168 + parallel port + uisp + avrdude + boot loader"
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1179660309

"Bootloader on ATMEGA168"
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1183647052

Apparant fuse tutorial that's dead:
http://www.site.uottawa.ca/~jdesa066/avr_getting_started5.html

Thanks for your help!

mellis

Which bootloader are you trying to burn?  You want to use the ATmega168 for NG bootloader.

When you use the --verify flag on the bootloader burning w/ uisp, do you get an error on every single byte or just a lot of them?  If the latter, it might be because the connection is not very good.  

If you set upload.verbose to true in your Arduino preferences file, and then try to burn the bootloader from the IDE, what output do you get?

supermauerbros

#2
Apr 09, 2008, 06:30 am Last Edit: Apr 09, 2008, 08:10 am by supermauerbros Reason: 1
I've tried both the bootloader found here (http://svn.berlios.de/viewcvs/arduino/trunk/bootloader168/) and the specific NG version, both result in the same errors.

The verify errors are incredibly numerous and sequential. There are so many they scroll past the point of no return in the DOS window, meaning I can't scroll up to where I launched the batch file. I would dump this to a log file but I seem to have forgotten the command and am being lazy at the moment.

I turned on verbose in the Arduino preferences, here's a txt file of that output:
http://www.jacobmauer.net/files/ArduinoOutput.txt

Any other ideas?

Thanks again!

mellis

It looks like nothing is getting written correctly.  Are you sure your wiring is correct?  Can you post a picture?  Maybe you need a male parallel header to solder to?

supermauerbros

Well let's talk about the diagram on the arduino site, is that like looking at the parallel port on my computer or the connections on the male header? I suppose they're the same...

If I mirror the connections, I get mostly the same results, the uisp dialog looks like it's flashing things but it's really not, the LED doesn't blink or dim. If I revert to plugging in my wires exactly like the diagram on the site, with the 220Ohm wire going into pin 41 in the upper left, I get the same dialogs and errors, but the LED flashes. Though I realize nothing is getting flashed any more than if the wires are plugged in improperly.

Just to clarify, the pin to the right of pin 1 on the ICSP header isn't supposed to be connected to anything?

I'm getting frustrated to the point of just buying a damn Diecimila and counting my 15 dollars towards two ATMEGA168s as a loss.


Go Up