Arduino Boot-Cloner

The Arduino Boot-Cloner only worked with the ATmega8 processor. Arduino Playground - Boot-Cloner

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.

Very nice! I like the ZIF socket but will this work through the ICSP connection as well, or does the target have to be removed from its circuit board?

Thank.

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.

Yes that sounds like a good idea. :slight_smile:

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. :slight_smile: This was the ATmega SMT part (TQFP-32?).

-j

PS when I saw this subject line just now, I read "arduino boot cleaner". :stuck_out_tongue:

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. :smiley:

PS when I saw this subject line just now, I read "arduino boot cleaner".

So did I... :smiley:

Mowcius

Progammer2 already had support for the 168, and I've been working on a modified version that adds support for the 328.

Hello World!!!

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
.... :cry:

I did something wrong??

thanks for the help!!

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 ..

  1. 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 )..
  2. 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 !!
:sunglasses:

Excellent project - thats exactly what i had in mind doing the last few days :0)

Dear. whosawhatsis

Progammer2 already had support for the 168, and I've been working on a modified version that adds support for the 328.

I wanna try it! Can I have a sketch?

Thanks.

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.

http://whosawhatsis.com/paraphernalia/programmer.pde

Very nice! Thanks for sharing.