You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
To use it, you will need to update your ``PATH`` environment variable in ``~/.bash_profile`` file. To make ``xtensa-esp32-elf`` available for all terminal sessions, add the following line to your ``~/.bash_profile`` file::
73
73
@@ -105,6 +105,20 @@ By default the firmware is built for the WIPY2:
105
105
$ make TARGET=app
106
106
$ make flash
107
107
108
+
You can change the board type by using the BOARD variable:
109
+
110
+
$ cd esp32
111
+
$ make BOARD=GPY clean
112
+
$ make BOARD=GPY TARGET=boot
113
+
$ make BOARD=GPY TARGET=app
114
+
$ make flash
115
+
116
+
We currently support the following BOARD types:
117
+
118
+
WIPY LOPY SIPY GPY FIPY LOPY4
119
+
120
+
For LoRa, you may need to specify the `LORA_BAND` as explained below.
121
+
108
122
To specify a serial port other than /dev/ttyUSB0, use ESPPORT variable:
109
123
110
124
$ # On MacOS
@@ -114,7 +128,11 @@ To specify a serial port other than /dev/ttyUSB0, use ESPPORT variable:
114
128
$ # On linux
115
129
$ # make ESPPORT=/dev/ttyUSB1 flash
116
130
117
-
To build and flash your LoPy for the default region (868 MHz):
131
+
To flash at full speed, use ESPSPEED variable:
132
+
133
+
$ make ESPSPEED=921600 flash
134
+
135
+
To build and flash a LoPy for the default region (868 MHz):
118
136
119
137
$ # LORA_BAND defaults to USE_BAND_868
120
138
$ cd esp32
@@ -124,20 +142,16 @@ To build and flash your LoPy for the default region (868 MHz):
124
142
$ make BOARD=LOPY flash
125
143
126
144
127
-
or for 915MHz regions:
145
+
For 915MHz regions add the `LORA_BAND=USE_BAND_915` variable:
128
146
129
147
$ cd esp32
130
-
$ make BOARD=LOPY LORA_BAND=USE_BAND_915 clean
148
+
$ make BOARD=LOPY LORA_BAND=USE_BAND_915 clean
131
149
$ make BOARD=LOPY LORA_BAND=USE_BAND_915 TARGET=boot
132
150
$ make BOARD=LOPY LORA_BAND=USE_BAND_915 TARGET=app
133
151
$ make BOARD=LOPY LORA_BAND=USE_BAND_915 flash
134
152
135
-
or the SiPy:
136
-
137
-
$ cd esp32
138
-
$ make BOARD=SIPY TARGET=boot
139
-
$ make BOARD=SIPY TARGET=app
140
-
$ make BOARD=SIPY flash
153
+
The above also applies to the FiPy and LoPy4
141
154
142
-
Make sure that your board is placed into programming mode, otherwise flahing will fail.
143
-
To do this, connect ``P2`` to ``GND`` and then reset the board.
155
+
Make sure that your board is placed into programming mode, otherwise flashing will fail.<br>
156
+
PyTrack and PySense boards will automatically switch into programming mode (currently supported on MacOS and Linux only!)<br>
157
+
Expansion Board 2.0 users, please connect ``P2`` to ``GND`` and then reset the board.
0 commit comments