Hi all,
I have made a Duemilanove and now want to burn the bootloader in the 168 to get started. My PC doesn't have a parallel port. So I tried this method - http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html
But I am getting the errormessage as below:
avrdude: BitBang OK avrdude: pin assign miso 3 sck 5 mosi 6 reset 7 avrdude: drain OK
I could get it to work. It was some connection problem only.
Initially there was some track short between one of the ICSP pins and ground.
After removing this I could read the device signature properly and read the fuse bits too. But after writing fuse bits as per the boards.txt file, it again stopped responding with correct signature. All it was showing was 0xffffff. I was able to overcome this too.
The cause was that: When you write the fuse bits as per boards.txt file, the AVR is programmed to work with external crystal. (Default setting of the AVR is to work with internal clock source). And one of the crystal pins on my board was shorted to a nearby track so it was not oscillating at all. So the 0xffffff read by avrdude was not a signature, it was NOTHING.
When cleaned the crystal trace, it got to work correctly.
All these track shorts were thanks to the PCB manufacturer. Anyway now its all done.