This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to combine the ble_app_uart with libuartes example ?

Hi,
I have a project that is comunication between nRF and Smartphone via BLE and using libuartes to comunicate with 2 another devices via 2Uarts.
Now I need to combine 2 examples into 1 project. How many stepI have to do ?
I have compared 2 sdk_config.h of 2  examples. there are some differences in 2 sdk_config.h. I think just merge them into one file

What about another files? What I need to combine them and work in 1 project step by step? 
Hope your reply soon. Thank you 
Best regard,

  • What happens when you try it like that? Does it compile? Do you get an error during runtime? What do you observe?

  • I can flashing code to nRF

    Debug Terminal didn'n show anything ( play button(excution) in debug mode can't play)

    Can't advertising 

    Can't communicate via libuarte

    But when I disable libuarte2. The code worked correctly.

  • Are you running this on an nRF52833 DK? If so, can you please .zip the application folder and upload it here?

    Best regards,

    Edvin

  • I am using custom board with chip nRF52833. 
    The pca is pca10100.
    I think problem is related to RTC and TIMER.
    Here is my project

    this is the relevant configuration:

    #define NRF_LIBUARTE_ASYNC_WITH_APP_TIMER 1
    #define NRF_LIBUARTE_DRV_UARTE0 1
    #define NRF_LIBUARTE_DRV_UARTE1 1

    #define NRFX_RTC_ENABLED 1
    #define NRFX_RTC0_ENABLED 1
    #define NRFX_RTC1_ENABLED 0
    #define NRFX_RTC2_ENABLED 1

    #define NRFX_TIMER_ENABLED 1
    #define NRFX_TIMER0_ENABLED 1
    #define NRFX_TIMER1_ENABLED 1
    #define NRFX_TIMER2_ENABLED 1
    #define NRFX_TIMER3_ENABLED 1
    #define NRFX_TIMER4_ENABLED 0

    NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 1, 1, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);
    NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 1, 2, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);
    here is my debug terminal


    ble_libuarte_tam.rar

  • Try setting a breakpoint at uart_init() in your main() function. Is it reached?

Related