Create a FIDO2/U2F token using ESP32
  • C 99.7%
  • CMake 0.2%
Find a file
2024-06-28 15:52:12 +08:00
.github/workflows Create build.yml 2024-01-19 11:43:02 +08:00
main use new script to gen device cert 2024-06-28 15:52:12 +08:00
CMakeLists.txt first commit 2024-01-13 09:50:37 +08:00
LICENSE Initial commit 2024-01-13 09:41:23 +08:00
README.md add flash mode and flash freq command 2024-01-19 20:05:58 +08:00
sdkconfig.defaults change main task stack size to 7168 2024-02-08 19:41:20 +08:00
u2f_partitions.csv add canokey-core based version 2024-01-15 23:27:15 +08:00

Supported Targets ESP32-S2 ESP32-S3

ESP32 U2F Security Key.

Turns your cheap ESP32 U2F token.

Hardware Required

Any ESP board that have USB-OTG supported.

Flash Example

WARNING using erase_flash will lose all stored keys

# Erase first 1MB size
esptool erase_region 0x0 0x100000

Flash binaries:

esp32s2 bootloader address is 0x1000

esptool --chip esp32s2  write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 esp32_u2f.bin

esp32s3 bootloader address is 0x0

esptool --chip esp32s3  write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x0 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 esp32_u2f.bin

Tools

espressif esptool

License

GNU General Public License v3.0