From 7ab0e2f8456ec4453183cfe056cf5f057bc18dc9 Mon Sep 17 00:00:00 2001 From: jiangwei Date: Fri, 19 Jan 2024 13:29:40 +0800 Subject: [PATCH] update README.md --- README.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d10a578..dd80a53 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file