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/
Apache License 2.0
300 stars 79 forks source link

Dongle never enters DFU mode. LED always green #62

Open L13w opened 2 years ago

L13w commented 2 years ago

After plugging in the dongle without holding down the user switch, I see a solid green light in the bottom right side of the dongle. The device shows as COM5, but times out when trying to connect with nRF connect. When inserting the device with the button down, there is anohter led on the mid-left side of the board that blinks red momentarily and then a solid green color (two green LEDs). It never turns red, never enters DFU mode.

ks00x commented 2 years ago

I was also confused by this and I think the documentation is to blame. It looks like the nRF connect app does not work with this device, at least not with the original bootloader. However you can progam it via simply copying over the uf2 firmware file to the device! When you press the button while inserting the device, a disk drive will appear in windows explorer. There is a conversion script for hex->uf2 firmware conversion but I found the BT LE sniffer firmware I needed on this Adafruit site.

vigilancer commented 2 years ago

Or you could flash Open Bootloader and then DFU will work as documented.

https://github.com/makerdiary/nrf52840-mdk-usb-dongle/tree/master/firmware/open_bootloader

Take a look at last answer: https://devzone.nordicsemi.com/f/nordic-q-a/71617/problems-burning-firmware-into-nrf52840-mdk-usb-dongle

ReX1983 commented 1 year ago

Or you could flash Open Bootloader and then DFU will work as documented.

https://github.com/makerdiary/nrf52840-mdk-usb-dongle/tree/master/firmware/open_bootloader

Take a look at last answer: https://devzone.nordicsemi.com/f/nordic-q-a/71617/problems-burning-firmware-into-nrf52840-mdk-usb-dongle

I flashed the Open Bootloader but now the device is not recognized by nRF Connect / nRF Programmer. I have also tried jlink and nrfutil, but neither works.

The dongle shows as nRF52 SDFU USB under Ports, in Windows.

Irrespective if I press or not the reset button when I insert the dongle, the red led pulses (it is not blinking but pulsing). Is this expected? I am not sure if it stuck in DFU mode or if I can't enter it.

I can't even go back to the UF2 bootloader, since nrfutil doesn't work.