conorpp / u2f-zero

U2F USB token optimized for physical security, affordability, and style
Other
2.41k stars 202 forks source link

USB HID Flashing / bootloader #54

Closed jbheren closed 7 years ago

jbheren commented 7 years ago

Hi All,

I made an U2F Zero token from one OSHPARK made PCB & spent some time trying to flash it :

C:\Users\jb\Documents\AN945SW\Tools\Windows>efm8load.exe u2f-firmware.boot
Download over port: HID:10C4:EAC9

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AAAAAAC@@

Download complete with [ 7 ] errors

I Think the token moved a bit as I had left my hand on the switch...

Now It seems like I am unable to set the device back to bootloader mode. Do you think I bricked it ?

Thanks again for all the big work.

conorpp commented 7 years ago

If you tried running

./u2f_zero_client/client.py bootloader

and it doesn't work, it may be bricked. You can try programming the bootloader again with the efm8load.exe tool. If it lost power during the flashing then it probably got corrupted and is why it won't go back into bootloader mode.

jbheren commented 7 years ago

Ok thanks, then I will try to build another one. Do you think it could be recovered using a dedicated programmer ?

conorpp commented 7 years ago

Yes you will have no issue with bricking it/recovering when using a programmer

Oliv4945 commented 6 years ago

Hi @jbheren, did succeed to program another chip ? I have the exactly the same error, might be related to #57

Also, for your information, as written in #57, you can put the device in bootloader again by shorting C2D pin to ground when powering the key.

j8048188 commented 6 years ago

I've been having the same programming issues as @jbheren. I can reset the u2f by shorting C2D and Ground when i plug the key into my computer. I'm happy to provide any files requested to help debug this.