This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to add APP_UART to Beacon examlple project (SDK 15.0)

I've setup, compiled and run the BLE Beacon project an have made some changes. Now I need to enable the UART. Simply adding UART files to the project does not work due to missing defines.  I've searched without success.  What is the procedure for adding and enabling the UART into the Beacon example project?

Thanks

Parents
  • Hi CWallach,

    If you compare the sdk_config.h in the UART example with the Beacon example you can see they have some different defines.

    So if there are some defines missing in the sdk_config.h in your project, you can just copy and paste the missing configs and enable them in your sdk_config.h.

    e.g

    // <q> APP_FIFO_ENABLED  - app_fifo - Software FIFO implementation
     
    
    #ifndef APP_FIFO_ENABLED
    #define APP_FIFO_ENABLED 1
    #endif
    
    // <e> APP_UART_ENABLED - app_uart - UART driver
    //==========================================================
    #ifndef APP_UART_ENABLED
    #define APP_UART_ENABLED 1
    #endif
    // <o> APP_UART_DRIVER_INSTANCE  - UART instance used
     
    // <0=> 0 
    
    #ifndef APP_UART_DRIVER_INSTANCE
    #define APP_UART_DRIVER_INSTANCE 0
    #endif
    
    // </e>

Reply
  • Hi CWallach,

    If you compare the sdk_config.h in the UART example with the Beacon example you can see they have some different defines.

    So if there are some defines missing in the sdk_config.h in your project, you can just copy and paste the missing configs and enable them in your sdk_config.h.

    e.g

    // <q> APP_FIFO_ENABLED  - app_fifo - Software FIFO implementation
     
    
    #ifndef APP_FIFO_ENABLED
    #define APP_FIFO_ENABLED 1
    #endif
    
    // <e> APP_UART_ENABLED - app_uart - UART driver
    //==========================================================
    #ifndef APP_UART_ENABLED
    #define APP_UART_ENABLED 1
    #endif
    // <o> APP_UART_DRIVER_INSTANCE  - UART instance used
     
    // <0=> 0 
    
    #ifndef APP_UART_DRIVER_INSTANCE
    #define APP_UART_DRIVER_INSTANCE 0
    #endif
    
    // </e>

Children
No Data
Related