gl-sergei / u2f-token

u2f token firmware for stm32f103 and efm32hg boards
GNU General Public License v3.0
339 stars 56 forks source link

blue pill switch? #41

Open Qwertylex opened 4 years ago

Qwertylex commented 4 years ago

I flashed the prebuilt to my blue pill and it seems reset button works as the auth button and it cycles usb disconnect/connect in kernel messages, and it works on demo.yubico.com as you'd expect it should normally work...

is the reset button really intended to be the auth button or is this unexpected?

otherwise, where should a button go?

Qwertylex commented 4 years ago

I guess I don't understand how uvoid.c works, sorry I'm a bit of a noob. I would like to hear how it all works though.

Also I have added support for using a switch on PA10 on the blue pill rather than using the reset button.

retroban commented 3 years ago

PA10 --- >>> GND or PA10 --- >>> + 3.3V? How to connect correctly and what function does the button perform?

HinataKato commented 3 years ago

I flashed the prebuilt to my blue pill and it seems reset button works as the auth button and it cycles usb disconnect/connect in kernel messages, and it works on demo.yubico.com as you'd expect it should normally work...

is the reset button really intended to be the auth button or is this unexpected?

otherwise, where should a button go?

I think it is the expected behavior, let the bluepill as a non-button key, reset button is equivalent to re-insert the security key