<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Burning the bootloader directly via avrdude</title>
        <description> So I&#039;ve finally gotten my computer to talk to the programmer I&#039;m using, but only via avrdude directly - the arduino software still can&#039;t find it. 

I&#039;ve used the examples at the bottom of this page as an example of the order in which to write each byte and have posted below what I will send to avrdude via the command line. Can anyone cast their eye over it, and see if I have made any mistakes please?

Also, am I correct in writing the bootloader to the chip&#039;s flash, or should I be writing to the boot section?


avrdude -c avrispmkii -p m644p -P usb:48 -e -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xDC:m -U lfuse:w:0xFF:m -U flash:w:ATmegaBOOT_644P.hex -U lock:w:0x0F:m

Thanks!</description>
        <link>https://reprap.org/forum/read.php?158,97219,97219#msg-97219</link>
        <lastBuildDate>Thu, 10 Sep 2026 21:44:16 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,100973#msg-100973</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,100973#msg-100973</link>
            <description><![CDATA[ Yup this was windows xp, although the process should be similar on other windows systems. <br />
<br />
The sequence of operations should work for all o/'s though.]]></description>
            <dc:creator>Lsutehall</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Tue, 11 Oct 2011 13:13:17 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,100936#msg-100936</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,100936#msg-100936</link>
            <description><![CDATA[ mmadore Wrote:<br />
-------------------------------------------------------<br />
&gt; What OS is this done from?<br />
&gt; <br />
<br />
Looks like windows XP from the screenshots on his blog.]]></description>
            <dc:creator>DeuxVis</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Tue, 11 Oct 2011 09:10:29 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,100926#msg-100926</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,100926#msg-100926</link>
            <description><![CDATA[ What OS is this done from?<br />
<br />
Lsutehall Wrote:<br />
-------------------------------------------------------<br />
&gt; I finally managed to burn the bootloader. I used a<br />
&gt; different set of instructions to that above,<br />
&gt; mainly because it wouldn't all fit into the<br />
&gt; command line. Here is what I used:<br />
&gt; <br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -B 8 -u -e<br />
&gt; -U lock:w:0x3F:m -v<br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -v (used<br />
&gt; to check if chip signature is now correct)<br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -u -U<br />
&gt; efuse:w:0xFD:m -v <br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -u -U<br />
&gt; hfuse:w:0xDC:m -v <br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -u -U<br />
&gt; lfuse:w:0xFF:m -v <br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -U<br />
&gt; flash:w:ATmegaBOOT_644P.hex -v <br />
&gt; <br />
&gt; avrdude -c avrispmkii -p m644p -P usb48 -U<br />
&gt; lock:w:0x0F:m -v <br />
&gt; <br />
&gt; <br />
&gt; Full details of what I did can be found in a<br />
&gt; dreadfully long post here: foraysinto3d]]></description>
            <dc:creator>mmadore</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Tue, 11 Oct 2011 08:37:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,98724#msg-98724</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,98724#msg-98724</link>
            <description><![CDATA[ I programmed my chip in the order I gave above, thus setting the fuses in the middle of the sequence. I did however encounter the "incorrect device signature" error, hence the "-B 8" switch on the first line. I also suppressed avrdude's default behaviour of checking the fuses 3 times before doing anything.<br />
<br />
I have been testing the axis motors today, and they all work ok. the order I set the fuses in appears not to have mattered.]]></description>
            <dc:creator>Lsutehall</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Fri, 23 Sep 2011 14:51:02 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,98720#msg-98720</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,98720#msg-98720</link>
            <description><![CDATA[ I'm going through my archives of old Arduino/Sanguino discussions and found an interesting item of import, can anyone out there verify?<br />
<br />
(from a hackaday comment)<br />
Coda says: <br />
August 17, 2011 at 12:00 pm <br />
It’s not a bug, and it’s nothing to do with arduino, or even Atmel, the ‘issue’ is common to most embedded platforms. The fuses are always the last thing you program, especially if you’re changing oscillator options from defaults (I learned this myself the hard way, and had to wait for an oscillator to arrive in the post) and any ATMega/Tiny chip will lock you out if you don’t follow the right programming order. <br />
<br />
It’s handy to have a couple of spare oscillators lying around (8,12,16mhz etc and they are not expensive) even if the project that you’re building doesn’t need one, (i.e you’re relying on the inaccurate internal clock – and that’s fine for a lot of applications).<br />
<br />
So my question is:<br />
<br />
I've talked to some people who said "The only way I got it to work was setting the fuses FIRST"<br />
Where this comment is basically saying "The only way I got it to work was setting the fuses LAST"<br />
<br />
<br />
So who is right?  This changes the order for the dapa guide.]]></description>
            <dc:creator>marnargulus</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Fri, 23 Sep 2011 14:00:47 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,98679#msg-98679</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,98679#msg-98679</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />Also, am I correct in writing the bootloader to the chip's flash, or should I be writing to the boot section?</div></blockquote>
<br />
Both :) The boot section is part of the chip's flash. Where this bootloader section is (usually the last 2 kB) is encoded in the bootloader's hex file.]]></description>
            <dc:creator>Traumflug</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Fri, 23 Sep 2011 05:38:39 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,98641#msg-98641</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,98641#msg-98641</link>
            <description><![CDATA[ Using avr MKII as your ISP? Congrats.]]></description>
            <dc:creator>fteo88</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Thu, 22 Sep 2011 20:34:06 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,98632#msg-98632</guid>
            <title>Re: Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,98632#msg-98632</link>
            <description><![CDATA[ I finally managed to burn the bootloader. I used a different set of instructions to that above, mainly because it wouldn't all fit into the command line. Here is what I used:<br />
<br />
<pre class="bbcode">
avrdude -c avrispmkii -p m644p -P usb48 -B 8 -u -e -U lock:w:0x3F:m -v

avrdude -c avrispmkii -p m644p -P usb48 -v (used to check if chip signature is now correct)

avrdude -c avrispmkii -p m644p -P usb48 -u -U efuse:w:0xFD:m -v 

avrdude -c avrispmkii -p m644p -P usb48 -u -U hfuse:w:0xDC:m -v 

avrdude -c avrispmkii -p m644p -P usb48 -u -U lfuse:w:0xFF:m -v 

avrdude -c avrispmkii -p m644p -P usb48 -U flash:w:ATmegaBOOT_644P.hex -v 

avrdude -c avrispmkii -p m644p -P usb48 -U lock:w:0x0F:m -v</pre>
<br />
Full details of what I did can be found in a dreadfully long post here: <a href="http://foraysinto3d.blogspot.com/2011/09/chapter-17-in-which-i-finally-burn.html" target="_blank"  rel="nofollow">foraysinto3d</a>]]></description>
            <dc:creator>Lsutehall</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Thu, 22 Sep 2011 18:14:27 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?158,97219,97219#msg-97219</guid>
            <title>Burning the bootloader directly via avrdude</title>
            <link>https://reprap.org/forum/read.php?158,97219,97219#msg-97219</link>
            <description><![CDATA[ So I've finally gotten my computer to talk to the programmer I'm using, but only via avrdude directly - the arduino software still can't find it. <br />
<br />
I've used the examples at the bottom of <a href="http://arduino.cc/en/Hacking/Bootloader" target="_blank"  rel="nofollow">this page</a> as an example of the order in which to write each byte and have posted below what I will send to avrdude via the command line. Can anyone cast their eye over it, and see if I have made any mistakes please?<br />
<br />
Also, am I correct in writing the bootloader to the chip's <i>flash</i>, or should I be writing to the <i>boot</i> section?<br />
<br />
<pre class="bbcode">
avrdude -c avrispmkii -p m644p -P usb:48 -e -U lock:w:0x3F:m -U efuse:w:0xFD:m -U hfuse:w:0xDC:m -U lfuse:w:0xFF:m -U flash:w:ATmegaBOOT_644P.hex -U lock:w:0x0F:m</pre>
<br />
Thanks!]]></description>
            <dc:creator>Lsutehall</dc:creator>
            <category>Sanguino(lolu)</category>
            <pubDate>Fri, 09 Sep 2011 08:49:49 -0400</pubDate>
        </item>
    </channel>
</rss>
