Good day, everyone!
So I've been trying to implement a USB HID device in my development board for a few weeks now with the aid of some chat bots but it's gotten to a point where it seems like I must have inadvertently fried something in the real (J3) USB port, the one that goes to the SoC, because I keep getting a reconnection/disconnection loop which points to errors in the VBUS.
When I power the board through the (J2) USB debug port, and only that one, with SW9 at VDD, the LED 5 lights up correctly and everything seems to be working fine except the (J3) USB port. I get 4.98v in the 5v pin and 2.98v in the VDD pins. On the other hand when I set SW9 to USB and plug only the (J3) real USB port, the LED 5 doesn't light up at all, I get 4.98v in the 5v pin but only 1.74v in the VDD pins.
I think this isn't supposed to be like this, right?
Things that I may have done that I think may have fried the board:
- I may have inadvertently changed the SW9 setting without powering off the board first.
- I HAVE plugged both USB ports, J2 and J3, at the same time, simply because I assumed it should be possible to debug while implementing the USB capabilities.
- I haven't stored the board in an electrostatically free bag during the months I have been using it and just stored it raw in my laptop case.
I remember I did try the USB HID keyboard sample and it did work the first time around, but it no longer does, nor does the mouse one either. I have tried to implement both the new USB Next stack and the legacy one with similar results in regards to the disconnecting loop behavior.
Thanks for any pointers. I'd like to make sure it's fried before I order a new one (fixing is a no go for me).
Here's some debugging log sample:
*** Booting MCUboot v2.1.0-dev-9b4ae4cbc9e2 *** *** Using nRF Connect SDK v3.1.1-e2a97fe2578a *** *** Using Zephyr OS v4.1.99-ff8f0c579eeb *** I: Starting bootloader I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 I: Boot source: none I: Image index: 0, Swap type: none I: Bootloader chainload address offset: 0xc000 I: Image version: v0.0.3 �*** Booting nRF Connect SDK v3.1.1-e2a97fe2578a *** *** Using Zephyr OS v4.1.99-ff8f0c579eeb *** Starting Bluetooth Peripheral HIDS Gamepad Direccion HID_0: 0x5c328 IMAGEN 1 [00:00:01.001,556] <inf> mcuboot_util: Image index: 0, Swap type: none [00:00:01.001,647] <inf> mcuboot_util: Image index: 0, Swap type: none [00:00:19.399,841] <inf> usb_hid: Device connected [00:00:19.402,954] <inf> usb_hid: Device disconnected [00:00:19.408,569] <inf> usb_hid: Device connected [00:00:19.411,712] <inf> usb_hid: Device disconnected [00:00:19.417,327] <inf> usb_hid: Device connected [00:00:19.420,471] <inf> usb_hid: Device disconnected [00:00:19.426,086] <inf> usb_hid: Device connected [00:00:19.429,229] <inf> usb_hid: Device disconnected [00:00:19.434,844] <inf> usb_hid: Device connected [00:00:19.437,988] <inf> usb_hid: Device disconnected [00:00:19.443,603] <inf> usb_hid: Device connected [00:00:19.446,716] <inf> usb_hid: Device disconnected [00:00:19.452,331] <inf> usb_hid: Device connected [00:00:19.455,444] <inf> usb_hid: Device disconnected [00:00:19.461,059] <inf> usb_hid: Device connected [00:00:19.464,172] <inf> usb_hid: Device disconnected [00:00:19.469,787] <inf> usb_hid: Device connected [00:00:19.472,900] <inf> usb_hid: Device disconnected [00:00:19.478,515] <inf> usb_hid: Device connected [00:00:19.481,628] <inf> usb_hid: Device disconnected [00:00:19.487,243] <inf> usb_hid: Device connected [00:00:19.490,356] <inf> usb_hid: Device disconnected [00:00:19.495,971] <inf> usb_hid: Device connected [00:00:19.499,084] <inf> usb_hid: Device disconnected [00:00:19.504,699] <inf> usb_hid: Device connected [00:00:19.507,812] <inf> usb_hid: Device disconnected [00:00:19.513,427] <inf> usb_hid: Device connected [00:00:19.516,540] <inf> usb_hid: Device disconnected [00:00:19.522,155] <inf> usb_hid: Device connected [00:00:19.525,268] <inf> usb_hid: Device disconnected [00:00:19.530,883] <inf> usb_hid: Device connected [00:00:19.533,996] <inf> usb_hid: Device disconnected [00:00:19.539,611] <inf> usb_hid: Device connected [00:00:19.542,724] <inf> usb_hid: Device disconnected [00:00:19.548,339] <inf> usb_hid: Device connected [00:00:19.551,452] <inf> usb_hid: Device disconnected [00:00:19.557,067] <inf> usb_hid: Device connected [00:00:19.560,180] <inf> usb_hid: Device disconnected [00:00:19.565,795] <inf> usb_hid: Device connected [00:00:19.568,908] <inf> usb_hid: Device disconnected [00:00:19.574,523] <inf> usb_hid: Device connected [00:00:19.577,636] <inf> usb_hid: Device disconnected [00:00:19.583,251] <inf> usb_hid: Device connected [00:00:19.586,364] <inf> usb_hid: Device disconnected [00:00:19.591,979] <inf> usb_hid: Device connected [00:00:19.595,092] <inf> usb_hid: Device disconnected [00:00:19.600,708] <inf> usb_hid: Device connected [00:00:19.603,820] <inf> usb_hid: Device disconnected [00:00:19.609,436] <inf> usb_hid: Device connected [00:00:19.612,548] <inf> usb_hid: Device disconnected [00:00:19.618,164] <inf> usb_hid: Device connected [00:00:19.621,276] <inf> usb_hid: Device disconnected [00:00:19.626,892] <inf> usb_hid: Device connected [00:00:19.630,004] <inf> usb_hid: Device disconnected [00:00:19.635,620] <inf> usb_hid: Device connected [00:00:19.638,732] <inf> usb_hid: Device disconnected [00:00:19.644,348] <inf> usb_hid: Device connected [00:00:19.647,460] <inf> usb_hid: Device disconnected [00:00:19.653,076] <inf> usb_hid: Device connected [00:00:19.656,188] <inf> usb_hid: Device disconnected [00:00:19.661,804] <inf> usb_hid: Device connected [00:00:19.664,916] <inf> usb_hid: Device disconnected [00:00:19.670,532] <inf> usb_hid: Device connected [00:00:19.673,645] <inf> usb_hid: Device disconnected [00:00:19.679,260] <inf> usb_hid: Device connected [00:00:19.682,373] <inf> usb_hid: Device disconnected [00:00:19.687,988] <inf> usb_hid: Device connected [00:00:19.691,101] <inf> usb_hid: Device disconnected [00:00:19.696,655] <inf> usb_hid: Device connected [00:00:19.699,798] <inf> usb_hid: Device disconnected [00:00:19.705,352] <inf> usb_hid: Device connected [00:00:19.708,496] <inf> usb_hid: Device disconnected [00:00:19.714,080] <inf> usb_hid: Device connected [00:00:19.717,224] <inf> usb_hid: Device disconnected [00:00:19.722,808] <inf> usb_hid: Device connected [00:00:19.725,952] <inf> usb_hid: Device suspended [00:00:31.126,556] <inf> usb_hid: Device reset detected [00:00:31.126,586] <inf> usb_hid: Device resumed [00:00:31.136,169] <inf> usb_hid: Device suspended [00:00:31.427,734] <inf> usb_hid: Device reset detected [00:00:31.427,764] <inf> usb_hid: Device resumed [00:00:31.518,463] <inf> usb_hid: Device reset detected [00:00:31.747,985] <inf> usb_hid: Device configured CYCLE TIME: 8 ms CYCLE TIME: 8 ms CYCLE TIME: 8 ms CYCLE TIME: 8 ms
Okay, so this time around and completely unexpectedly Windows seems to have decided that the device is there and it exists and it's all right. But this wasn't the case in the endless times I have tried before until I decided I will ask here about it, and now it throws this at me, just the moment. I'm honestly lost as to what's going on, really.