@@ -93,7 +93,7 @@ $ make submodules
9393$ make
9494```
9595
96- This will produce a combined ` firmware.bin ` image in the ` build-GENERIC / `
96+ This will produce a combined ` firmware.bin ` image in the ` build-ESP32_GENERIC / `
9797subdirectory (this firmware image is made up of: bootloader.bin, partitions.bin
9898and micropython.bin).
9999
@@ -123,12 +123,12 @@ To flash the MicroPython firmware to your ESP32 use:
123123$ make deploy
124124```
125125
126- The default ESP32 board build by the above commands is the ` GENERIC ` one, which
127- should work on most ESP32 modules. You can specify a different board by passing
128- ` BOARD=<board> ` to the make commands, for example:
126+ The default ESP32 board build by the above commands is the ` ESP32_GENERIC `
127+ one, which should work on most ESP32 modules. You can specify a different
128+ board by passing ` BOARD=<board> ` to the make commands, for example:
129129
130130``` bash
131- $ make BOARD=GENERIC_SPIRAM
131+ $ make BOARD=ESP32_GENERIC_S3
132132```
133133
134134Note: the above "make" commands are thin wrappers for the underlying ` idf.py `
@@ -137,10 +137,25 @@ for example:
137137
138138``` bash
139139$ idf.py build
140- $ idf.py -D MICROPY_BOARD=GENERIC_SPIRAM build
140+ $ idf.py -D MICROPY_BOARD=ESP32_GENERIC build
141141$ idf.py flash
142142```
143143
144+ Some boards also support "variants", which are allow for small variations of
145+ an otherwise similar board. For example different flash sizes or features. For
146+ example to build the ` OTA ` variant of ` ESP32_GENERIC ` .
147+
148+ ``` bash
149+ $ make BOARD=ESP32_GENERIC BOARD_VARIANT=OTA
150+ ```
151+
152+ or to enable octal-SPIRAM support for the ` ESP32_GENERIC_S3 ` board:
153+
154+ ``` bash
155+ $ make BOARD=ESP32_GENERIC BOARD_VARIANT=SPIRAM_OCT
156+ ```
157+
158+
144159Getting a Python prompt on the device
145160-------------------------------------
146161
@@ -202,10 +217,10 @@ antenna = machine.Pin(16, machine.Pin.OUT, value=0)
202217Defining a custom ESP32 board
203218-----------------------------
204219
205- The default ESP-IDF configuration settings are provided by the ` GENERIC `
206- board definition in the directory ` boards/GENERIC ` . For a custom configuration
220+ The default ESP-IDF configuration settings are provided by the ` ESP32_GENERIC `
221+ board definition in the directory ` boards/ESP32_GENERIC ` . For a custom configuration
207222you can define your own board directory. Start a new board configuration by
208- copying an existing one (like ` GENERIC ` ) and modifying it to suit your board.
223+ copying an existing one (like ` ESP32_GENERIC ` ) and modifying it to suit your board.
209224
210225MicroPython specific configuration values are defined in the board-specific
211226` mpconfigboard.h ` file, which is included by ` mpconfigport.h ` . Additional
0 commit comments