-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Build MicroPython For ESP32 | ||
=================================== | ||
|
||
|
||
Install ESP-IDF | ||
----------------------------------- | ||
|
||
.. highlight:: bash | ||
|
||
:: | ||
|
||
git clone https://github.com/espressif/esp-idf.git | ||
cd esp-idf | ||
git checkout v4.4 | ||
git submodule update --init --recursive | ||
|
||
:: | ||
cd esp-idf | ||
./install.sh | ||
source export.sh | ||
# You will need to source export.sh for every new session. | ||
|
||
Fetch the Code to Build | ||
------------------------- | ||
|
||
.. highlight:: bash | ||
|
||
:: | ||
|
||
git clone https://github.com/micropython/micropython.git | ||
cd micropython | ||
|
||
|
||
Build mpy-cross | ||
----------------------------------- | ||
|
||
.. highlight:: bash | ||
|
||
:: | ||
make -C mpy-cross | ||
|
||
|
||
Build your board | ||
----------------------------------- | ||
|
||
.. highlight:: bash | ||
|
||
:: | ||
cd ports/esp32 | ||
make submodules | ||
make BOARD=LOLIN_S2_MINI #Find board name in ./boards | ||
|
||
|
||
|
||
Links | ||
----------------------------------- | ||
|
||
* `MicroPython port to the ESP32 <https://github.com/micropython/micropython/tree/master/ports/esp32>`_ | ||
|