Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

To send 1 byte data from the nRF52840 Dongle to the mobile application(nRF Connect) and vice versa

Hello Sir/Ma'am,

I have used the ble_app_uart (for pca10056) example code to execute the same.

I referred this link to execute my code https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_nus_eval.html 

Mentioned below are the necessary changes I have made for my board (i.e. pca10059/ nRF52840 Dongle).

Preprocessor Board Definitions

    

Linker Address

   

Code Modification

Since I was getting the below error.

I have modified the pca10059.h file i.e.

And the code has compiled successfully now.

Can you please tell me if the modifications that I’ve made are correct.

Also after I flash the code to the dongle using DFU (nRF Connect for Desktop) the Com port is unavailable and the mobile app does not detect the Bluetooth module(or is not advertising). 

Please provide me a solution for the same.

Thank you.

Parents
  • Hello,

    You need to keep the original linker settings since you are using the Softdevice. The new start address at 0x1000 will not work because it will make the application code overlap with the Softdevice.

    Also after I flash the code to the dongle using DFU (nRF Connect for Desktop) the Com port is unavailable and the mobile app does not detect the Bluetooth module(or is not advertising). 

     The ble_app_uart example does not initialize the USBD peripheral. Instead I'd recommend you start with the USBD BLE UART Example

Reply
  • Hello,

    You need to keep the original linker settings since you are using the Softdevice. The new start address at 0x1000 will not work because it will make the application code overlap with the Softdevice.

    Also after I flash the code to the dongle using DFU (nRF Connect for Desktop) the Com port is unavailable and the mobile app does not detect the Bluetooth module(or is not advertising). 

     The ble_app_uart example does not initialize the USBD peripheral. Instead I'd recommend you start with the USBD BLE UART Example

Children
Related