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

UART not working in nRF52832 as an observer role only.

I am using a nRF52832 which act as an observer role only and what is observe it send observed data to another device over UART.

When i turn off scanning and just run UART it works properly but when scanning is on it doesn't send any data on UART. When I add a break point on UART function then it again works.

The program doesn't stuck at any point and it continuously scan the advertising data. I am not getting whats going wrong with UART.

I have added the UART function 'app_uart_put' in that function 'find_adv_uuid()'

Parents
  • FormerMember
    0 FormerMember

    The reason that it doesn't work is because UART is used for data transfer (app_uart_put() ) and by the LOG module. They cannot work concurrently. If you want to use UART for data transfer, you can set up the LOG module to use RTT instead of UART. Just changing the setup for the log module in sdk_config.h will make your example work.

Reply
  • FormerMember
    0 FormerMember

    The reason that it doesn't work is because UART is used for data transfer (app_uart_put() ) and by the LOG module. They cannot work concurrently. If you want to use UART for data transfer, you can set up the LOG module to use RTT instead of UART. Just changing the setup for the log module in sdk_config.h will make your example work.

Children
No Data
Related