nrf52840-mdk-usb-dongle icon indicating copy to clipboard operation
nrf52840-mdk-usb-dongle copied to clipboard

Cannot enter programming mode!!

Open madaeon01 opened this issue 2 years ago • 1 comments

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??

madaeon01 avatar Jul 07 '21 07:07 madaeon01

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

DamyHao avatar Jul 18 '21 08:07 DamyHao