nRF52840 Dongle BLE issue

Hi,

I'm trying to program the nRF52840 Dongle (PCA10059, 2.1.1, 2023.26). I modified the Bluetooth: Central UART sample to use USB instead of UART and built it for the dongle (nrf52840dongle/nrf52840) using nRF Connect SDK 3.1.1 and Toolchain 3.1.1.

I program the dongle using nRF Connect for Desktop Programmer app, putting it into bootloader mode by pressing the reset button and then writing the generated build\merged.hex file.

After programming, other parts of the application work as expected, but BLE does not, the application appears to hang at bt_enable().

Do I need to program a BLE SoftDevice separately, or am I missing some board-specific configuration to enable Bluetooth on the dongle? Is programming via the USB bootloader + Programmer sufficient for BLE applications, or should a different flashing method be used? Any guidance or pointers would be greatly appreciated.

Thanks!

Best,
Adnan

Parents Reply Children
  • Hi Hung,

    Thank you very much for the solution, it worked flawlessly.

    Just to add some additional context for others, if the application is intended to run on multiple boards, a sysbuild.cmake file can be used (as mentioned in the linked post) to apply the pm_static.yml only for the nRF52840 dongle. For example:

    if(SB_CONFIG_BOARD_NRF52840DONGLE)
      set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_LIST_DIR}/boards/nrf52840dongle_nrf52840_pm_static.yml CACHE INTERNAL "")
    endif()
    

    Thanks again for the help.

    Best,
    Adnan

Related