Hi, I have a holyiot NRF52840 dongle (schematic below). I am able to program it via the swd interface and have BLE examples running (as long as power is attached to VDD), but as soon as I try a USB example, the dongle is only detected as a USB device under the following circumstances after programming:
- Dongle is plugged into USB port
- Programmer is plugged into USB port with at least the SWCLK pin connected to the nrf52840 dongle. (I have tested with GND, and SWDIO also connected and it has the same effect)
- Try to start debugger (obviously it won't connect as only the clock line is attached)
- Dongle will now be detected by the OS.
- Debugger can be removed and dongle will work until being removed.
It seems that a signal on the clock line is all that is needed to bring the dongle to life.
I can also get the dongle to detect if I attach 3.3V to VDD and GND first, and then plug the dongle in. After this, the external power can be removed and everything works fine.
I've done some probing of the pins. At step 1, when the dongle is plugged in, the VDD voltage is 0.47 V. After completing all of the steps, the VDD voltage is is 1.8 V and everything works as expected. With the GND, SWDIO and SWCLK pins of the debugger connected to the dongle in this state, I can probe the registers and see that it is in high voltage mode.
I should note that when I bought the dongle, it was preloaded with the USB CDC ACM example and it worked perfectly as it should. If this is a hardware fault caused by me (seems that way), I've uploaded the schematic below in the hopes that there might be a way to patch it.
I know that this dongle is technically not supported, but any help on getting it to work via USB power without the process above would be greatly appreciated.