Skip to content

Commit

Permalink
add Build MicroPython For ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
wemos committed Sep 3, 2022
1 parent 9c69bf0 commit 59bb6ff
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/tutorials/index_micropython.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MicroPython Tutorials
Get started with MicroPython [C3 series] <c3/get_started_with_micropython_c3>
Get started with MicroPython [S3 series] <s3/get_started_with_micropython_s3>
Get started with MicroPython [W600 series] <w600/get_started_with_micropython_w600>

Build MicroPython for ESP32 <others/build_micropython_esp32>



Expand Down
64 changes: 64 additions & 0 deletions docs/en/tutorials/others/build_micropython_esp32.rst
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>`_

0 comments on commit 59bb6ff

Please sign in to comment.