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.
9
9
10
10
Any ESP board that have USB-OTG supported.
11
11
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
22
13
14
+ > ** WARNING**
15
+ > using erase_flash will lose all stored keys
23
16
```
24
- idf.py build
17
+ # Erase first 1MB size
18
+ esptool erase_region 0x0 0x10000
25
19
```
26
20
27
- Finally, flash it :
21
+ Flash binaries :
28
22
29
23
```
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
31
26
```
32
27
28
+ ### Tools
29
+ [ espressif esptool] ( https://github.com/espressif/esptool/releases )
33
30
34
31
35
32
### License
36
33
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