How do you reset the PIN key #221

Open
opened 2025-12-14 01:54:10 +08:00 by dov · 3 comments
dov commented 2025-12-14 01:54:10 +08:00 (Migrated from github.com)

After playing around with pico-fido on a Waveshare RP2040 Zero, I reached the following state:

  1. After visiting https://webauthn.bin.coffee/ with Google Chrome on Linux connecting the RP2040 Zero to the computer, I get the error:

Something went wrong

The security key is locked because the wrong PIN was entereded too many times. You'll need to reset the security key.

  1. Even after reflashing the UF2 file to the device, the error remains.

There should be a method for zeroing out this error through either reflashing, the command line or some other method.

After playing around with pico-fido on a Waveshare RP2040 Zero, I reached the following state: 1. After visiting https://webauthn.bin.coffee/ with Google Chrome on Linux connecting the RP2040 Zero to the computer, I get the error: Something went wrong The security key is locked because the wrong PIN was entereded too many times. You'll need to reset the security key. 2. Even after reflashing the UF2 file to the device, the error remains. There should be a method for zeroing out this error through either reflashing, the command line or some other method.
dov commented 2025-12-14 02:41:24 +08:00 (Migrated from github.com)

Answering my own question, it can be done through the python fido2 module through the following python script:

https://gist.github.com/dov/80f005bdf3633e742ca00127288b0a0a

I suggest adding a note about this in the README.

Answering my own question, it can be done through the python fido2 module through the following python script: https://gist.github.com/dov/80f005bdf3633e742ca00127288b0a0a I suggest adding a note about this in the README.
wlatendresse commented 2025-12-19 03:51:13 +08:00 (Migrated from github.com)

You can achieve the same with pico-nuke from https://github.com/polhenarejos/pico-nuke

or with sudo picotool erase.

You can achieve the same with pico-nuke from https://github.com/polhenarejos/pico-nuke or with `sudo picotool erase`.
tcurdt commented 2026-01-18 11:16:42 +08:00 (Migrated from github.com)

You can achieve the same with pico-nuke from https://github.com/polhenarejos/pico-nuke

or with sudo picotool erase.

Are you sure about using picotool for this?

sudo picotool erase
ERROR: Cannot determine the flash size, so cannot erase the entirety of flash, try --range.
picotool erase
Erasing:              [=                             ]  6%
ERROR: The RP2350 device returned an error: permission failure
> You can achieve the same with pico-nuke from https://github.com/polhenarejos/pico-nuke > > or with `sudo picotool erase`. Are you sure about using `picotool` for this? ``` sudo picotool erase ERROR: Cannot determine the flash size, so cannot erase the entirety of flash, try --range. ``` ``` picotool erase Erasing: [= ] 6% ERROR: The RP2350 device returned an error: permission failure ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dearsky/pico-fido#221