Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB HID Flashing / bootloader #54

Closed
jbheren opened this issue Mar 26, 2017 · 5 comments
Closed

USB HID Flashing / bootloader #54

jbheren opened this issue Mar 26, 2017 · 5 comments

Comments

@jbheren
Copy link

jbheren commented Mar 26, 2017

Hi All,

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

  • flashed the SETUP.boot after I converted the SETUP.hex from repository,
  • Generated certificate and ran the Configuration. I had some errors but the flow said " device configured" so I tried the next step,
  • Set the device to bootloader mode (took some time to understand we had to set it using client.py bootloader after keeping finger on the switch (red LED),
  • Flashed the built u2f-firmare after commenting out the needed defines (as defined in wiki) :
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
Copy link
Owner

conorpp commented Mar 26, 2017

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
Copy link
Author

jbheren commented Mar 26, 2017

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

@conorpp
Copy link
Owner

conorpp commented Mar 26, 2017

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

@jbheren jbheren closed this as completed Mar 27, 2017
@Oliv4945
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants