Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jocover committed Jan 19, 2024
1 parent 11f9608 commit 7ab0e2f
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,26 @@ Turns your cheap ESP32 U2F token.

Any ESP board that have USB-OTG supported.

### Build and Flash

To build this example, set the target first:

```
# Build for ESP32-S2 for example
idf.py set-target esp32s2
```

Launch the build:
### Flash Example

> **WARNING**
> using erase_flash will lose all stored keys
```
idf.py build
# Erase first 1MB size
esptool erase_region 0x0 0x10000
```

Finally, flash it:
Flash binaries:

```
idf.py flash
#esp32s3 chip ,--chip select esp32s3
esptool -b 460800 --before default_reset --after hard_reset --chip esp32s2 write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 esp32_u2f.bin 0x8000 partition_table/partition-table.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 7ab0e2f

Please sign in to comment.