OpenSK icon indicating copy to clipboard operation
OpenSK copied to clipboard

Cannot deploy key using `--vendor-hid`

Open zumbiepig opened this issue 11 months ago • 3 comments

Expected behavior: The security key gets deployed with Vendor HID enabled.

Actual behavior:

info: Generating Tock TAB file for application/example ctap2
WARNING:root:Unknown TLV block in TBF header.
WARNING:root:You might want to update tockloader.
info: Generating all-merged HEX file: target/nrf52840_dongle_dfu_merged.hex
info: Creating DFU package
info: Please insert the dongle and switch it to DFU mode by keeping the button pressed while inserting...
info: Press [ENTER] when ready.
info: Flashing device using DFU...
  [####################################]  100%          
Device programmed.
info: Configuring device.
info: Using the Vendor HID interface
info: Programming OpenSK device AAGUID 5f9ab2de-dabd-41af-992c-10a62891f09f (CtapHidDevice('4295196839')).                 
error: Failed to configure OpenSK (unsupported command).                                                                   
100%|████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 26.30it/s]
fatal: Could not read device configuration.

Steps to reproduce:

./deploy.py --opensk --board=nrf52840_dongle_dfu --programmer=nordicdfu --vendor-hid

zumbiepig avatar Mar 05 '25 05:03 zumbiepig

Thanks for reporting this, I can reproduce. Will look into it.

kaczmarczyck avatar Mar 12 '25 10:03 kaczmarczyck

@kaczmarczyck Any update on this?

zumbiepig avatar Mar 19 '25 15:03 zumbiepig

Just got back into this, and I can't reproduce it anymore. I tried different hardware and multiple commits. Does the problem persist for you, and which commit is the problem on? Also can you deploy --erase_storage before for a clean run?

./deploy.py --board=nrf52840_dongle_dfu --erase_storage --programmer=nordicdfu

kaczmarczyck avatar Jun 24 '25 12:06 kaczmarczyck