https://bitbucket.org/thesheep/tote-had <pre class="hljs bash">hg <span class="hljs-keyword">clone</span> https:<span class="hljs-comment">//bitbucket.org/thesheep/tote-had</span></pre></li><li>Clone the Micropython repository from <a href=https://hackaday.io/project/9927-tote-had/log/"https://github.com/micropython/micropython/">https://github.com/micropython/micropython/
README.md for the ESP8266 port to setup the build environment. You can also follow one of the guides at <a href=https://hackaday.io/project/9927-tote-had/log/"http://forum.micropython.org/viewforum.php?f=16%22>http://forum.micropython.org/viewforum.php?f=16
  • Before compiling, copy or link the files from the <a href=https://hackaday.io/project/9927-tote-had/log/"https://bitbucket.org/thesheep/tote-had/src/tip/python/?at=default%22>python directory of Tote-HAD to <a href=https://hackaday.io/project/9927-tote-had/log/"https://github.com/micropython/micropython/tree/master/esp8266/scripts">esp8266/scripts
  • Compile and flash normally, as the README says.</li></ul><p>You can also skip the main.py file (it&apos;s the file that gets executed on the board start), and instead create it after flashing -- this way you will be able to modify it without recompiling the firmware:</p><pre class="hljs python">with <span class="hljs-keyword">open</span>(<span class="hljs-string">&quot;main.py&quot;</span>, <span class="hljs-string">&quot;w&quot;</span>) as f: f.<span class="hljs-keyword">write</span>(<span class="hljs-string">&quot;import server; server.main()&quot;</span>)</pre>There are some tools that make it easier to upload files to the ESP8266, like here: <a href=https://hackaday.io/project/9927-tote-had/log/"https://github.com/wendlers/mpfshell">https://github.com/wendlers/mpfshell"> https://bitbucket.org/thesheep/tote-had <pre class="hljs bash">hg <span class="hljs-keyword">clone</span> https:<span class="hljs-comment">//bitbucket.org/thesheep/tote-had</span></pre></li><li>Clone the Micropython repository from <a href=https://hackaday.io/project/9927-tote-had/log/"https://github.com/micropython/micropython/">https://github.com/micropython/micropython/
    README.md for the ESP8266 port to setup the build environment. You can also follow one of the guides at <a href=https://hackaday.io/project/9927-tote-had/log/"http://forum.micropython.org/viewforum.php?f=16%22>http://forum.micropython.org/viewforum.php?f=16
  • Before compiling, copy or link the files from the <a href=https://hackaday.io/project/9927-tote-had/log/"https://bitbucket.org/thesheep/tote-had/src/tip/python/?at=default%22>python directory of Tote-HAD to <a href=https://hackaday.io/project/9927-tote-had/log/"https://github.com/micropython/micropython/tree/master/esp8266/scripts">esp8266/scripts
  • Compile and flash normally, as the README says.</li></ul><p>You can also skip the main.py file (it&apos;s the file that gets executed on the board start), and instead create it after flashing -- this way you will be able to modify it without recompiling the firmware:</p><pre class="hljs python">with <span class="hljs-keyword">open</span>(<span class="hljs-string">&quot;main.py&quot;</span>, <span class="hljs-string">&quot;w&quot;</span>) as f: f.<span class="hljs-keyword">write</span>(<span class="hljs-string">&quot;import server; server.main()&quot;</span>)</pre>There are some tools that make it easier to upload files to the ESP8266, like here: <a href=https://hackaday.io/project/9927-tote-had/log/"https://github.com/wendlers/mpfshell">https://github.com/wendlers/mpfshell">

    Compiling Your Own Firmware

    A project log for Tote HaD

    Special edition of Tote for the Belgrade workshop.

    Radomir Dopieralski 04/13/2016 at 22:160 Comments

    For anyone who wants to build their own version of firmware, here's a really quick howto:

    You can also skip the main.py file (it's the file that gets executed on the board start), and instead create it after flashing -- this way you will be able to modify it without recompiling the firmware:

    with open("main.py", "w") as f:
        f.write("import server; server.main()")
    There are some tools that make it easier to upload files to the ESP8266, like here: https://github.com/wendlers/mpfshell

    Discussions