bill wrote:Could someone please outline the process of downloading, building then deploying the firmware for a beginner?
There are probably a lot of people like me that have used the Arduino IDE to program the Huzzah/ESP8266 but would like to begin to learn how to install the MicroPython firmware in preparation for future releases.
@Bill, yes was same for me. What is important to realize is that there are crucial steps involved before trying to compile the MicroPython code. AdaFruit has a
tutorial on how to set up MicroPython on their Huzzah boards:
Since I'm working from Linux machines didn't find that very helpful.
For setting up the ESP SDK I've used
this tutorial (steps 1-3).
This could take a while to compile (over 2 hours on my RPi3, around half an hour I think on my Ubuntu 15.04 Nuc).
Then I did a 'git clone' from Github MicroPython repo:
Code: Select all
git clone git@github.com:micropython/micropython.git
cd micropython/
git submodule update --init
At first I did not read the instructions carefully, and forgot that last line, similar to another poster on this subforum.
On my Ubuntu box I had a collision between Python2 and Python3 (that was specific to my own setup), which I solved by simply changing the 'shebang' from the /opt/esp-open-sdk/esptool/esptool.py script to point explicitly to Python2.
After that everything ran smooth:
Code: Select all
cd esp8266/
make
make PORT=/dev/ttyUSB0 deploy
Obviously you should check for the port where your machine finds the ESP8266 module. And unless you're using the Huzzah Feather board, you need to put the to put the board in bootload mode. But both these things will be similar to when working with the Arduino IDE.
Connecting to the REPL can be done with 'screen' on Linux machines:
You'll get a completely blank terminal. Don't forget to press enter one more time to get the prompt ('>>>').