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

NRF_LOG and UART not working simultaneously

Hi,

I am using experimental_ble_app_blinky example. In that NRF_LOG over UART was implemented. I Added some UART code for my use. But after flashing code was not working at all. Printf and NRF_LOG_INFO was not working simultaneously. Then i commented printf then it was working fine. But i was not able to receive any data in controller. Following setting i did..

UART_DEFAULT_CONFIG_HWFC: Disabled
NRF_LOG_DEFERRED: Disabled
NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL: Disabled

controller was crashing continously. Here is my main.c and sdk_config.h files... github.com/.../

Parents
  • It is getting stuck at ble_stack_init() function., If i comment init_uart function then code doesn't get reset but if i use uart initialization then it get reset continuously. Even if i use printf then also application is not working properly. i think there might be nrf_log task is running. Which might using UART service. What could be other possibilities?

Reply
  • It is getting stuck at ble_stack_init() function., If i comment init_uart function then code doesn't get reset but if i use uart initialization then it get reset continuously. Even if i use printf then also application is not working properly. i think there might be nrf_log task is running. Which might using UART service. What could be other possibilities?

Children
No Data
Related