Skip to content

Commit 7ab0e2f

Browse files
committed
update README.md
1 parent 11f9608 commit 7ab0e2f

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,26 @@ Turns your cheap ESP32 U2F token.
99

1010
Any ESP board that have USB-OTG supported.
1111

12-
### Build and Flash
13-
14-
To build this example, set the target first:
15-
16-
```
17-
# Build for ESP32-S2 for example
18-
idf.py set-target esp32s2
19-
```
20-
21-
Launch the build:
12+
### Flash Example
2213

14+
> **WARNING**
15+
> using erase_flash will lose all stored keys
2316
```
24-
idf.py build
17+
# Erase first 1MB size
18+
esptool erase_region 0x0 0x10000
2519
```
2620

27-
Finally, flash it:
21+
Flash binaries:
2822

2923
```
30-
idf.py flash
24+
#esp32s3 chip ,--chip select esp32s3
25+
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
3126
```
3227

28+
### Tools
29+
[espressif esptool](https://github.com/espressif/esptool/releases)
3330

3431

3532
### License
3633

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

0 commit comments

Comments
 (0)