nRF52840 Dongle swd flashing

I have been working on trying to flash my nrf52840 dongle through the standard swd pins that flash normal embedded devices. I have connected the swdio, swdclk, vdd out, and gnd. From here, these are connected to a usb that is plugged into my computer. I am able to turn on the device, and put it in bootloader mode (red light turning on and off slowly), but programmer (nrf connect for desktop) is not seeing the device in its drop down list. Can you help me figure a reason why I am not able to get the board recognized? I have provided a picture below

  • Hi,

    From here, these are connected to a usb that is plugged into my computer.

    What do you mean by this? What is the USB that you have connected it to? The SWD pins need to be connected to a debugger/programmer (for instance a J-Link device) that can program the nRF52840. The Dongle will not be visible in any list in programmer application, only J-Link debuggers will be visible in the list.

    I am able to turn on the device, and put it in bootloader mode (red light turning on and off slowly)

    If you intend to program the dongle using SWD, there is no need to put it in bootloader mode. Bootloader mode is used for programming the dongle through the USB interface (serial DFU). If you plug the dongle into the USB of the PC, press the button to enter bootloader mode, then the dongle should show up in the programmer application.

    Note that if you erase the dongle using the SWD interface, the bootloader will be erased and you can no longer program it through the USB interface.

    Best regards,
    Jørgen

  • Thanks for the insight about the flashing process! I am happy that you mentioned the insight about the bootloader as I did not know that from before!

    For my USB, I was trying to reuse a st-link as the usb from a previous project.

    From your comment about how the usb needs to be a j-link device, I decided to meet with my team. We came up with the idea to use this jlink device to try and connect to the device. If you dont mind, can you double check and make sure this would be a suitable device that would connect to the nrf52840 dongle and development kit board? 8.08.91 Segger Microcontroller | Mouser

  • Hi,

    Yes, the J-Link EDU Mini should support nRF52 series devices. but note that the license of that device only allows you to use it for non-profit educational purposes.

    Our Development Kits comes with an on-board debug chip (J-Link OB), which can be used to program the on-board nRF52x chip and also external custom boards through the debug output headers.

    Best regards,
    Jørgen

  • Perfect, thanks for the feedback! Yes, we are currently just using the device in order to understand how to flash J-Link boards. Thank you again for all the help!

Related