File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -9,29 +9,26 @@ Turns your cheap ESP32 U2F token.
99
1010Any 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 )
You can’t perform that action at this time.
0 commit comments