Skip to content

Commit

Permalink
Update Flash Example
Browse files Browse the repository at this point in the history
esp32s2/s3 have different bootloader addresses
  • Loading branch information
jocover committed Jan 19, 2024
1 parent 9fff5ea commit f2b5016
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,32 @@ Any ESP board that have USB-OTG supported.

> **WARNING**
> using erase_flash will lose all stored keys
```
# Erase first 1MB size
esptool erase_region 0x0 0x100000
```

Flash binaries:

esp32s2
bootloader address is 0x1000

```
esptool write_flash 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 esp32_u2f.bin
esptool write_flash 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 esp32_u2f.bin
```

### Tools
[espressif esptool](https://github.com/espressif/esptool/releases)
esp32s3
bootloader address is 0x0

```
esptool write_flash 0x0 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 esp32_u2f.bin
```

### Tools

[espressif esptool](https://github.com/espressif/esptool/releases)

### License

[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.html)
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.html)

0 comments on commit f2b5016

Please sign in to comment.