I've been busting my head with this for a while now. I have read pretty much all the post regarding bootloading with an Arduino UNO using the "Arduino as ISP" but found myself failing miserably.
I have also lowered the speed on the sketch to 2400
That won't help anything because the Arduino IDE will still try and talk to the Arduino as ISP board at 19200 baud, so that will prevent it from working all by itself, regardless of what else might be wrong with your setup.
I have also lowered the speed on the sketch to 2400
That won't help anything because the Arduino IDE will still try and talk to the Arduino as ISP board at 19200 baud, so that will prevent it from working all by itself, regardless of what else might be wrong with your setup.
According to the site, the UNO can't be used as an ISP yet because of the new optiboot bootloader that the UNO is using.
NOTE: Currently, you cannot use an Arduino Uno as an ISP programmer because the optiboot bootloader does not support this sketch. A revision for this is in progress.
johndimo:
According to the site, the UNO can't be used as an ISP yet because of the new optiboot bootloader that the UNO is using.
NOTE: Currently, you cannot use an Arduino Uno as an ISP programmer because the optiboot bootloader does not support this sketch. A revision for this is in progress.
I know it says that on the Arduno website, but at the same time I have read that some people managed to do it with the UNO. That's where all the confusion is coming. I have read two different kinds of posts:
the ones that said it is not possible
the ones that managed somehow to make it work as an ISP.
The reason for my post is for those who have tried with the UNO and succeeded. Also to provide some trouble shooting tips on what I'm doing wrong and/or point me into the right direction on how to do this. Seems that the instruction on the posts of the ones that have succeeded are not working for me, or they failed to explain a step or two.
WestFW, thanks for pointing me into the right direction. At the moment I don't have a 16MHz crystal, but should get my hands on them pretty soon (ordered a few last week) to try out your method. As soon as I have them I'll setup everything per http://arduino.cc/en/Tutorial/ArduinoToBreadboard instructions and let you know how it goes.
Alright WestFW, I got the 16MHz Xtal and followed exactly the instruction and as soon as I opened the serial monitor I hit reset and I got the following output:
OptiFix Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Starting Program Mode [OK]
Reading signature:950F
Searching for image...
Found "optiboot_atmega328.hex" for atmega328
Start address at 7E00
Total bytes read: 508
Setting fuses for programming
Lock: 3F FFE000 Low: FF FFA000 High: DE FFA800 Ext: 5 FFA400
Programming bootloader: 512 bytes at 0x3F00
Commit Page: 3F00:3F00
Commit Page: 3F40:3F40
Commit Page: 3F80:3F80
Commit Page: 3FC0:3FC0
Restoring normal fuses
Lock: F FFE000
Type 'G' or hit RESET for next chip
After that I selected on the IDE the Burn Bootloader w/Arduino as ISP and got: ```
~~Error While Burning Boorloader
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding~~ ``` What Am I doing wrong now?[/color]
Yep; that's all there is to it; it's essentially a zero-interaction sketch (with a rather narrow purpose.)
if you make up a little programming cable to attach targets via the ISP connector, you can re-program a lot of boards really quickly, too. Plug in target, hit reset, watch the blinky lights, remove target, repeat.