Adding UART in ble_app_template

Hi,

1-I have successfully developed an app ...\nRF5SDK17009d13099\nRF5_SDK_17.0.0_9d13099\examples\ble_peripheral\ble_app_template.

2-I have set a UART example to send data from Arduino and successfully send data from Arduino and receiving on nRF52840. I have used this example code:  ..\SDK\nRF5SDK17009d13099\nRF5_SDK_17.0.0_9d13099\examples\peripheral\libuarte 

3- Now I want to add the UART part in my ble_app_template. But getting the following error. kindly suggest a solution? or how should I add in ble_app_template?


Thanks!

Parents Reply
  • Hi, 

    Add the following to sdk_config.h:

    // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
    //==========================================================
    #ifndef APP_TIMER_ENABLED
    #define APP_TIMER_ENABLED 1
    #endif
    
    // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
    //==========================================================
    #ifndef NRFX_TIMER_ENABLED
    #define NRFX_TIMER_ENABLED 1
    #endif
    // <q> NRFX_TIMER0_ENABLED  - Enable TIMER0 instance
     
    
    #ifndef NRFX_TIMER0_ENABLED
    #define NRFX_TIMER0_ENABLED 1
    #endif

    I guess you could refer to the setting of Libuarte Example if you are using it. 

    -Amanda

Children
Related