conorpp / u2f-zero

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

Difficulties with HID USB #30

Closed saeugetier closed 6 years ago

saeugetier commented 7 years ago

I build two U2F by myself. PCBs were ordered from DirtyPCB in beginning of October. I think that the very latest gerbers are used, because I ordered the PCBs via link in the wiki.

I soldered all parts on the PCB. The soldering joints are checked with a microscope. I found no short circuits.

After flashing SETUP.hex to board the USB connection is very unstable.

Sometimes the device is found, but most of the times the kernel is not able to initialize the USB device. dmesg | tail has following messages:

[72252.317662] usb 3-2: new low-speed USB device number 87 using xhci_hcd [72252.318180] usb 3-2: Device not responding to setup address. [72252.522419] usb 3-2: Device not responding to setup address. [72252.726103] usb 3-2: device not accepting address 87, error -71 [72252.726177] usb usb3-port2: unable to enumerate USB device

I tried to compile the setup-firmware by myself. I got the same problem for both boards.

The debugger identifies the microcontroller as "EFM8UB11F16G"

conorpp commented 7 years ago

Seems odd, some ideas:

If no success, can you post a picture?

saeugetier commented 7 years ago

I have tested the sticks on two different computers. For tests I plugged the stick in every single slot.

I have tested the resistance of the signal D+ and D-. The resistance between connector pad and "wire" on the micro controller housing is zero ohm.

Do I have to program any fuses? For example for the clock sources?

conorpp commented 7 years ago

I just read you only flashed SETUP.hex -- did you finish the rest of the programming steps?

saeugetier commented 7 years ago

img_7353

saeugetier commented 7 years ago

The SETUP.hex has to be flashed first. After flashing the stick should enumerate as HID adapter.

conorpp commented 7 years ago

Hm, does the LED glow green when powered?

saeugetier commented 7 years ago

The LED glows green. While pressing the button it is blue.

conorpp commented 7 years ago

I have some DirtyPCBs U2F tokens on the way for the different project, so after I assemble them I can check if I can replicate the issue. Will get back.

conorpp commented 6 years ago

Sorry I never got around to this and I haven't heard about any similar issues. There's been a layout update since this issue which likely helps with USB signal integrity