makerdiary / nrf52840-mdk-usb-dongle

An open-source, small and low-cost USB Dongle that supports Bluetooth 5.4, Bluetooth mesh, Thread, Zigbee, 802.15.4, ANT and 2.4 GHz proprietary protocols
https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/
Other
328 stars 83 forks source link

Cannot enter programming mode!! #60

Open madaeon01 opened 3 years ago

madaeon01 commented 3 years ago

I bought one nrf52840 mdk usb dongle. If I simply insert it into USB, the dongle is seen as DFU removable disk, I see the 3 files onboard including current.uf2. Written a blinky test with Arduino IDE and Adafruit nrf52 libraries, converted the .hex to uf2 with uf2conv.py . But getting the dongle to connect into programming mode (the red led blinks), which is supposed to happen if you press reset when inserting the dongle, almost never happens. Otherwise the led is green, you still see the DFU removable disk, but trying to copy/replace files only causes the device to disconnect. On two PCs (one has windows 7, the other windows 10), tried with USB3 and USB2 ports, I was able to upload the new UF2 file ONCE. All the other times, on Windows 10 if red led is still blinking after you release it, the USB device is not recognized anymore. With green light, the device is visible, but can't copy files on it. On Windows 7 notebook, I was able to upload the files once. But after that time, the red light will never stay on, when the device is inserted by pressing the reset button. It always turns green after a while. Looking at https://github.com/makerdiary/nrf52840-mdk-usb-dongle/issues/new it seems other people have this issue, and no solution is available??

DamyHao commented 3 years ago

The documentation needs to be updated and improved a lot. This worked for me (linux):

1- Download the bootloader from https://github.com/makerdiary/nrf52840-mdk-usb-dongle/raw/master/firmware/open_bootloader/nrf52840_mdk_usb_dongle_open_bootloader_v1.2.0.uf2.zip 2- Install nrfutil using pip install nrfutil 3- Put the open_bootloader into the device. You must connect the usb dongle with the reset button pressed and then use nrfutil dfu serial -pkg /home/YOUR_USERNAME/Downloads/nrf52840_mdk_usb_dongle_open_bootloader_v1.2.0.uf2.zip -p /dev/ttyACM0