This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Not able to load HEX to nrf52840 dongle (makerdiary) via nRF Connect Programmer

Hello,

I'm trying to program the Makerdiary nRF52840-MDK USB Dongle with the Bluetooth sample project central_uart but when I load the built HEX file to Programmer file memory layout, it appears as an orange block with region name MBR or Application and the Write button remains ghosted out.

Configuration:

  • Makerdiary nRF52840-MDK USB Dongle
  • nRF Connect SDK v1.3.0-rc1
  • nRF Connect Desktop v3.4.0
  • nRF Connect Programmer v3.4.0
  • nrf/samples/bluetooth/central_uart
  • Built with zephyr/boards/arm/nrf52840dongle_nrf52840 board option
  • Tried merged.hex, zephyr.hex, merged_nrf52840dongle_nrf52840.hex

nRF Connect Programmer screenshot:

Parents Reply
  • Hi Simon,

    I updated the SDK to master and then built central_uart again.  When loaded to Programmer I am presented with an option to Write.  When I do, it writes and then the dongle disconnects.  I think this overwrites the bootloader because I can no loner get the dongle to enumerate.  It also appears the sample isn't running as there is no TTY device created and I see no BLE advertisements...

Children
  • crasspm said:
    When I do, it writes and then the dongle disconnects. 

    After you've programmed the dongle, it should disconnect, since it's not in DFU-mode. After I program the peripheral_uart sample I see the following:

     

    crasspm said:
    I can no loner get the dongle to enumerate.

    Try pressing the RESET button, as shown in the image again. Then the device should pop up under "Select device" in the Programmer app

    crasspm said:
    It also appears the sample isn't running as there is no TTY device created and I see no BLE advertisements...

    The reason you can't see any BLE advertisements is because the device isn't advertising. The peripheral_uart sample is advertising indeed. Could you try to put the dongle in DFU mode and program that sample, then see if you can see it advertising (with the name "Nordic_UART_Service").

    This tutorial might be worth taking a look at (even though it's written for the nRF5 SDK and not NCS).

    Best regards,

    Simon

  • Hi Simon,

    Unfortunately it seems like I can't get either of my dongles back into DFU mode...  Not sure what I did, my next step is to re-flash them with the JTAG interface and start over.

  • Okay. Hopefully, you are able to make it work. Please tell me if that approach doesn't work either.

Related