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.