Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit b8220c0

Browse files
author
Daniel Campora
committed
esp32: Add build instructions.
1 parent 99ab8f1 commit b8220c0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

esp32/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,27 @@ path must be specified via the ESP_IDF_PATH variable. See the Makefile for detai
66

77
The modified Espressif IDF that we use to build this port can be found in:
88
https://github.com/pycom/pycom-esp-idf
9+
10+
Build instructions
11+
------------------
12+
13+
First build the mpy-cross compiler:
14+
15+
$ cd ../mpy-cross
16+
$ make all
17+
18+
After that, build the ESP32 port for one of Pycom boards (first the bootloader, then the app):
19+
20+
$ cd ../esp32
21+
$ make BOARD=LOPY -j5 TARGET=boot
22+
$ make BOARD=LOPY -j5 TARGET=app clean
23+
24+
Flash the board (connect P2 to GND and reset before starting):
25+
26+
$ make BOARD=LOPY flash
27+
28+
Using frozen modules
29+
--------------------
30+
31+
Place all the python scripts that you'd like to be frozen into the flash memory of the board inside
32+
the 'frozen' folder in the esp32 directory. Then build as indicated before.

0 commit comments

Comments
 (0)