Welcome! Log In Create A New Profile


Programming Sanguino bootloader

Posted by Grogyan 
Programming Sanguino bootloader
January 25, 2010 01:53AM
I just spent several hours last night to hunt for information on how to program a virgin Atmel 644p with a bootloader that accepts the Arduino IDE.

If like me you program a virgin chip right off from Arduino IDE, it may likely fail.

I use the USBtiny from Adafruit

I also downloaded the latest version of AVRdude that comes with WinAVR, as it has the support for the 644p.

I had to use AVRdude as it was the only program downloader that had some relatively good search results from Google.

What I did is.

From Windows I clicked Start -> Run
typed in cmd then ok, this launches a DOS shell terminal.
You need to navigate to where the bootloader for the 644p is, in my case its
C:\Program Files\RepRap\arduino-0017\hardware\bootloaders\atmega644p
done by typing
cd Program Files\RepRap\arduino-0017\hardware\bootloaders\atmega644p
avrdude -c usbtiny -p m644p -U flash:w:ATmegaBOOT_644P.hex
Though if you want you can tell avrdude to set a set Bitrate, and this will be the default that the chip uses when it talks to the Arduino IDE
avrdude -c usbtiny -p m644p -B 8 -U flash:w:ATmegaBOOT_644P.hex

The -B 8 sets the bitrate as close to 9600
Re: Programming Sanguino bootloader
January 25, 2010 08:24AM
article on makerbot

Programming 300 arduinos
Re: Programming Sanguino bootloader
February 09, 2010 05:55PM
Try the version 18 IDE the code to run a spare arduino as an AVRISP is in the examples section.

Can't remember where I compiled the bootloader from but I will have a look when I get back in the morning.

Necessity hopefully becomes the absentee parent of successfully invented children.
Re: Programming Sanguino bootloader
February 26, 2010 12:33PM
I documented the process in my blog.. as every time I have done boot loaders I have had to re-discover how I did it previously. This time I noted it down.


I use the windows version of AVR studio. My version is version 4 there is a newer version I think.. so my screen grabs may not be exactly the same as the new version.

I use this as I prefer the windows interactive interface for doing this.
With a few clicks you can see exactly whats going on.

The crucial parts are :-

Getting the device to identify by reading it then setting the correct device type.

Read the fusses then setting the fusses

Flashing the bootloader

read the lock bits then setting the Lock bits.

Hope it helps

Edited 1 time(s). Last edit at 02/26/2010 12:35PM by BodgeIt.

Bodge It [reprap.org]

BIQ Sanguinololu SD LCD board BIQ Stepcon BIQ Opto Endstop
BIQ Heater Block PCB BIQ Extruder Peek clamp replacement BIQ Huxley Seedling
BIQ Sanguinololu mounting BIQ standalone Sanguinololu or Ramps mounting Print It Stick It Cut it

My rep strap: [repstrapbertha.blogspot.com]

Buy the bits from B&Q pipestrap [diyrepstrap.blogspot.com]
How to Build a Darwin without any Rep Rap Parts [repstrapdarwin.blogspot.com]
Web Site [www.takeaway3dtech.com]
Sorry, only registered users may post in this forum.

Click here to login