There was some suggestions on the playground page about getting it to work with a 168 chip but these were unsuccessful. I have now changed the software so that it will work with a 168. I have also included the latest (0016) release of the boot loader along with a Processing Sketch for converting the distributed Boot Loaders for the code.
The code is here:- http://thebox.myzen.co.uk/BootCloner168.zip
I built it as a shield.
No reason why you could not connect it through the ICSP connection but as you are only burning the boot loader then I planned to program the chips up before I put them in the circuit board. Once in they can be programmed in the normal way.
I was thinking about if I want to use a surface mount processor that I don't really have a way to hold while I program it. Your way, one wouldn't have to buy an expensive test socket or a separate ICSP programmer.
Oh, and thanks again. Seeing that ZIF socket gave me an idea about how to breadboard several of the surface mount to DIP/SIP adapters I have very quickly. I could put a 40-48 position ZIF on a protoboard with each position going to a wire-wrap header and stack up as many components as will fit in the socket, then wire-wrap to my Arduino header pins. Since the ZIF socket doesn't care how wide the parts are I can mix and match through hole and SMDs on adapters.
I was thinking about if I want to use a surface mount processor that I don't really have a way to hold while I program it.
I trick I was told was to use a footprint (board, SMT adapter, etc) and just hold the SMT part down and program it. It worked for me; it was, shall we say, less trouble than I expected. This was the ATmega SMT part (TQFP-32?).
-j
PS when I saw this subject line just now, I read "arduino boot cleaner".
I trick I was told was to use a footprint (board, SMT adapter, etc) and just hold the SMT part down and program it.
That sounds like a pretty good method. I'm pretty adept at soldering SMT parts though, so since I have to solder the processor down eventually I figure I might as well do that first and then program it. With Mike's program, I don't need to borrow an ICSP programmer.
Cleaner, funny. Just one more application for the Arduino. Open source boot cleaner.
I have used by two years the arduino standalone w/ATmega8, now i could obtain an ATmega168-20PU .I use the original boot-cloner to program my atmega168 but it did not work(it had already used before the boot-cloner for atmega8 successful).After I find this topic, and i have downloaded the file BootCloner168.zip , I tried with the Hex file extractor for use with the Arduino Boot Cloner, using the next file's of arduino 0016, in procesing 1.0.3:
·ATmegaBOOT_168_diecimila.hex
·ATmegaBOOT_168_ng.hex
·ATmegaBOOT_168.hex
I paste the data from the console window of processing into the Arduino Sketch but the run led(yellow) remained ON
....
Sorry only just spotted this. I have not tried this system with a w/ATmega8 so I don't know if it fits in.
Have you tried programming the 168 with just the code I posted, rather than doing a fresh extraction?
hi mike .. i am getting the same error as alexMX is getting ..
I uploaded your sketch to ATMega168.
inserted it in the ATMEGA8 bootclonner circuit ( which i already have in working condition) ( the circuit dia same as shown in your post )..
Inserted blank atmega168 in ZIF socket and hit the button..
the yellow ( working ) LED glows continuously ...
( i tried removing the blank atmega168 and hitting the button, with same error )
please help !!
I haven't used it in a while, but I'm pretty sure I got it working before I got my USBTiny, so it should still work. I may have changed the pin numbers, and although it can supposedly be used with avrdude, I was never able to get that working, so I can't guarantee I didn't break that part of it (though you should use Mega ISP for that, anyway).
Also, it was compiling for the atmega168 when I last worked on it, but the latest compiler makes it too big. If you need it to run from a 168, try an older version of the Arduino software (I'm thinking I was using 0013 at the time), but it compiles for the 328p just fine.