Nordic nRF52840-Dongle

Preparation

The nRF52840-DONGLE board needs to be programmed with with a BLE HCI USB H4 firmware image, allowing the dongle to be used for BLE Testing with the PLT-300A.

The nRF52840-DONGLE board supports the following programming options:

  • SWD

  • Using the factory-default nRF5 SDK bootloader

  • Using MCUboot in serial recovery mode

bootloader programming

These instructions describe programming using the nRF52 SDK bootloader, which the nRF52840-Dongle ships with from the factory.

For other methods, please refer to nRF52840 Dongle

These instructions cover two ways to program the device:

  1. Using Nordic nRF Connect for Desktop to program the hci_usb_h4-nrf52840dongle-3.5.0-dfu.zip file.

  2. Using nrfutil to program the hci_usb_h4-nrf52840dongle-3.5.0.hex file.

In both cases, you will first need to put the nRF52840-Dongle Board into the factory bootloader.

Put the nRF52840-Dongle Board into the Bootloader

  1. Reset the board into the Nordic bootloader by pressing the RESET button.

    The push button is on the far side of the board from the USB connector. Note that the button does not face up. You will have to push it from the outside in, towards the USB connector:

    ../../../_images/nRF52840_dongle_press_reset.svg

    Location of RESET button and direction of push

    The red LED should start a fade pattern, signalling the bootloader is running:

    ../../../_images/nRF52840_bootloader.gif

    Location of RESET button and direction of push

Note

The nRF52840-Dongle Board ships with only the bootloader installed. If your nRF52840-Dongle is unused, it will already be in the bootloader.

Using Nordic nRF Connect for Desktop

  1. Make sure Nordic nRF Connect for Desktop is installed.

  2. If you haven’t already, follow the directions above to put the nRF52840-Dongle into the factory-default bootloader.

  3. Open Nordic nRF Connect for Desktop, and open the “Programmer” tool from the main window. You may need to install it first.

    ../../../_images/01_main_window.png

    nRF Connect for Desktop main window, Programmer tool.

  4. Click the “Select Device” button, and then select the nRF52840-Dongle, which will show up as “Open DFU Bootloader”.

    ../../../_images/02_select_device.png

    Click the Select Device Button

    ../../../_images/03_open_dfu_bootloader.png

    Click the “Open DFU Bootloader” device.

  5. Now, either click the “Add File” button to browse for the hci_usb_h4-nrf52840dongle-3.5.0.hex file, or drag it to the Drag & Drop area.

    Add File
  6. With the hci_usb_h4-nrf52840dongle-3.5.0.hex file selected, you can now click the “Write” button to program the dongle.

    ../../../_images/05_write.png

    Click the “Write” button.

  7. The LED on the dongle will blink more rapidly as it is programmed. When programming is complete, the device will disconnect from nRF Connect for Desktop. The LED will no longer blink after being programmed.

  8. There may be an error message in nRF Connect for Desktop after the device disconnects, it can be ignored.

  9. You can verify that the BLE firmware is running by looking for the USB device. Make sure that a device with PID/VID 0x000c/0x2fe3 is enumerating. On macOS, you can use the System Information tool:

    ../../../_images/06_system_information.png

    USB-DEV, with PID/VID 0x000c/0x2fe3.

Using nrfutil

  1. Make sure nrfutil is installed before proceeding.

  2. If you haven’t already, follow the directions above to put the nRF52840-Dongle into the factory-default bootloader.

  3. Flash the DFU package onto the board.

    nrfutil dfu usb-serial -pkg hci_usb_h4-nrf52840dongle-3.5.0-dfu.zip -p /dev/ttyACM0
    
    $ nrfutil dfu usb-serial -pkg hci_usb_h4-nrf52840dongle-3.5.0-dfu.zip -p /dev/ttyACM0
    [####################################]  100%
    Device programmed.
    $
    

    When this command exits, observe the red LED used by the bootloader stops blinking.

  4. Re-insert the nRF52840 Dongle, and check if the dongle enumerates as a HCI H4 over USB device.

    $ lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 003: ID 04f2:b685 Chicony Electronics Co., Ltd Chicony USB2.0 Camera
    Bus 001 Device 004: ID 8087:0aaa Intel Corp.
    Bus 001 Device 029: ID 2fe3:000c ZEPHYR USB-DEV
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    $
    

References