<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
               xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
               xmlns:admin="http://webns.net/mvcb/"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
               xmlns:content="http://purl.org/rss/1.0/modules/content/">
            <channel>
                <title>
					                		OctoPrint flashing script for MMU2, MK2, MK3 - User mods - OctoPrint, enclosures, nozzles, ...                                    </title>
                <link>https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/</link>
                <description>Prusa3D Forum Discussion Board</description>
                <language>en-US</language>
                <lastBuildDate>Fri, 12 Jun 2026 15:12:56 +0000</lastBuildDate>
                <generator>wpForo</generator>
                <ttl>60</ttl>
                					                    <item>
                        <title>RE:</title>
                        <link>https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/#post-665743</link>
                        <pubDate>Wed, 26 Jul 2023 14:43:37 +0000</pubDate>
                        <description><![CDATA[Hi Steve,
While I agree &quot;for those that don&#039;t know how to create a script file on your installation they should stay away.&quot;
Could you provide a basic instruction or example for the newbies...]]></description>
                        <content:encoded><![CDATA[<p>Hi Steve,</p>
<p>While I agree "for those that don't know how to create a script file on your installation they should stay away."</p>
<p>Could you provide a basic instruction or example for the newbies our here that are interested in this project on how to get this up and running?</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/">User mods - OctoPrint, enclosures, nozzles, ...</category>                        <dc:creator>M</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/#post-665743</guid>
                    </item>
                                        <item>
                        <title>Re: OctoPrint flashing script for MMU2, MK2, MK3</title>
                        <link>https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/#post-137047</link>
                        <pubDate>Sun, 07 Apr 2019 20:46:40 +0000</pubDate>
                        <description><![CDATA[Hello steve.g,

thanks for your script. I took some stuff from it for my own script (to which one just gives the download url)

I have one problem left, and hope you may have som insigt:

Th...]]></description>
                        <content:encoded><![CDATA[Hello steve.g,<br/>
<br/>
thanks for your script. I took some stuff from it for my own script (to which one just gives the download url)<br/>
<br/>
I have one problem left, and hope you may have som insigt:<br/>
<br/>
The Slic3r Flash Tool does two flashes for the einsy in the mk3 and i can't seem to get it working.<br/>
<br/>
This is my bash script snippet code:<br/>

<CODE><i>
</i>csplit "-f$TMPDIR/mainfw" -n1 "$MAINFILE" "/^:00000001FF*/+1"
 echo "Flashing main firmware part 1V"
/usr/bin/avrdude -C/etc/avrdude.conf -patmega2560 -cwiring -P/dev/ttyACM0 -b115200 -D -Uflash:w:$TMPDIR/mainfw0:i
echo "Flashing main firmware part 2"
/usr/bin/avrdude -C/etc/avrdude.conf -patmega2560 -carduino -P/dev/ttyACM0 -b115200 -D -Uflash:w:$TMPDIR/mainfw1:i
</CODE>

This is based on this:<br/>
<a href="https://github.com/prusa3d/Slic3r/blob/master/src/avrdude/fileio.c"><LINK_TEXT text="https://github.com/prusa3d/Slic3r/blob/ ... e/fileio.c">https://github.com/prusa3d/Slic3r/blob/master/src/avrdude/fileio.c</LINK_TEXT></a> Line 124 and following<br/>
and this:<br/>
<a href="https://github.com/prusa3d/Slic3r/blob/master/src/slic3r/GUI/FirmwareDialog.cpp"><LINK_TEXT text="https://github.com/prusa3d/Slic3r/blob/ ... Dialog.cpp">https://github.com/prusa3d/Slic3r/blob/master/src/slic3r/GUI/FirmwareDialog.cpp</LINK_TEXT></a> Line 486 and following.<br/>
<br/>
<br/>
Unfortunately the flash of part two does not work. Avrdude is no able to talk to the "arduino" bootloader]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/">User mods - OctoPrint, enclosures, nozzles, ...</category>                        <dc:creator>ivo</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/#post-137047</guid>
                    </item>
                                        <item>
                        <title>OctoPrint flashing script for MMU2, MK2, MK3</title>
                        <link>https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/#post-130178</link>
                        <pubDate>Fri, 22 Feb 2019 15:24:13 +0000</pubDate>
                        <description><![CDATA[Even though there is a Firmware Flashing plugin for OctoPrint, I find it a bit annoying that it doesn&#039;t allow easy profile switching and on top of that doesn&#039;t have support for flashing the ...]]></description>
                        <content:encoded><![CDATA[Even though there is a Firmware Flashing plugin for OctoPrint, I find it a bit annoying that it doesn't allow easy profile switching and on top of that doesn't have support for flashing the MMU2 (could be easily added, but still).<br/>
<br/>
I decided to write a script that takes care of this for you.<br/>
In case of the MK3 or MK2, it will disconnect the printer from OctoPrint using the API, flash the printer and then reconnect OctoPrint.<br/>
<br/>
The MMU2 can only be flashed for about 5 seconds after restart (in bootloader stage), so for that I built in a reset detection so you can start the script, go to your printer, reset the MMU2 and it will start flashing after that.<br/>
<br/>
No need to figure out devices and whatnot, the script will take care of that for you.<br/>
<br/>
The syntax is simple: <CODE>./flash.sh mk2|mk3|mmu firmware.hex</CODE>

The script expects to find avrdude and jq installed as it needs them both, there are no other dependencies except that it expects to be ran on raspbian.<br/>
<br/>
The script <a href="https://gist.github.com/Blizzke/9e13c4a7cbb91ec1976a0c50162fa323">can be found here</a>. <br/>
<br/>
Installing is a matter of creating the script file on your installation and making it executable. If you don't know how to do that, I advise you to stay away.]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/">User mods - OctoPrint, enclosures, nozzles, ...</category>                        <dc:creator>Steve</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/original-prusa-i3-mmu2s-mmu2-user-mods-octoprint-enclosures-nozzles/octoprint-flashing-script-for-mmu2-mk2-mk3/#post-130178</guid>
                    </item>
                                                </channel>
        </rss>
        