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

BLE_APP_UART_PCA10010 change doesn´t work

Hi,

I´m trying to change the "BLE_APP_UART_PCA10010" example, main.c file.

I would like to delete following functions, because I don´t need UART in my project:

void uart_event_handle()

static void uart_init(void)

But when I comment out "uart_init();" in main function and flash this to nRF52833, it doesn´t work. The BLE device can´t be found by nRF connect app. I can´t find any relation between this UART functionality and the BLE stack.

Can you give me more information, whats gonna be wrong?

Thanks in advance

Simon

Parents
  • Hi Simon,

    There is no problem removing the physical UART usage from the ble_app_uart example. But then you need to remove everything. If you just remove it partially, this means that you will be calling functions that use the UART without it being initialized, and that will not work (for instance calls to app_uart_put() and app_uart_get()).

    I suggest you take care to remove all relevant code. Also, if you make sure to run the debug example (select Debug from the build configuration dropdown if using Segger Embedded Studio) and enable RTT logging, then you will see what causes problems when you run the example and observe the RTT log and can fix the issues one by one.

    Einar

Reply
  • Hi Simon,

    There is no problem removing the physical UART usage from the ble_app_uart example. But then you need to remove everything. If you just remove it partially, this means that you will be calling functions that use the UART without it being initialized, and that will not work (for instance calls to app_uart_put() and app_uart_get()).

    I suggest you take care to remove all relevant code. Also, if you make sure to run the debug example (select Debug from the build configuration dropdown if using Segger Embedded Studio) and enable RTT logging, then you will see what causes problems when you run the example and observe the RTT log and can fix the issues one by one.

    Einar

Children
No Data
Related