Skip to content

Commit 23102c7

Browse files
authored
Update README.md with ESP32 flash instructions
1 parent d729396 commit 23102c7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Connect SPI pins (CE, SCK, MOSI, MISO) to appropriate SPI pins on the ESP8266. W
5555

5656
### Install firmware
5757

58+
#### ESP8266
59+
5860
If you have [PlatformIO](http://platformio.org/) set up, you can compile from source and upload with:
5961

6062
```
@@ -71,6 +73,21 @@ esptool.py write_flash 0x0 <firmware_file.bin>
7173

7274
Make sure you read instructions
7375

76+
#### ESP32
77+
78+
For ESP32, you need to flash both the partition table and the firmware image. The easiest way to do this is with [PlatformIO](http://platformio.org/):
79+
80+
```
81+
platformio run -e esp32 --target upload
82+
```
83+
84+
After you've flashed it once, you can update using the web ui or with `esptool.py`:
85+
86+
```
87+
# >>> FOR ESP32 ONLY <<<
88+
esptool.py write_flash 0x1000 <firmware_file.bin>
89+
```
90+
7491
### Configure WiFi
7592

7693
This project uses [WiFiManager](https://github.com/tzapu/WiFiManager) to avoid the need to hardcode AP credentials in the firmware.

0 commit comments

Comments
 (0)