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

UART cann't receive data when using nRF5_SDK_12.1.0_0d23e2a in ble_app_multilink_central example

Hi,

I'm using the ble_app_multilink_central example in the newist SDK nRF5_SDK_12.1.0_0d23e2a, nRF52832. Now it can printf the log information. I want to use the uart to receive and send data from other MCU. So I add the app_uart_fifo.c document and add the uart_init() function according to the ble_app_uart example, but the uart cann't receive or send data.

Besides, before I add the uart_init function, the ble_app_multilink_central example can printf log information but I don't see any setting about the UART. I don't know why.

Thanks for your help

Parents
  • FormerMember
    0 FormerMember

    For the log information you will have to use RTT. There is only one UART module on the nRF52832, if you are sending/receiving data from another MCU over UART, the log module cannot use UART.

    To enable logging over RTT, go to sdk_config --> configuration wizard tab --> nRF_LOG section: Enable logging over RTT by checking the box "NRF_LOG_BAKEND_SERIAL_USES_RTT". Disable logging over UART by un-checking "NRF_LOG_BACKEND_SERIAL_USES_UART".

Reply
  • FormerMember
    0 FormerMember

    For the log information you will have to use RTT. There is only one UART module on the nRF52832, if you are sending/receiving data from another MCU over UART, the log module cannot use UART.

    To enable logging over RTT, go to sdk_config --> configuration wizard tab --> nRF_LOG section: Enable logging over RTT by checking the box "NRF_LOG_BAKEND_SERIAL_USES_RTT". Disable logging over UART by un-checking "NRF_LOG_BACKEND_SERIAL_USES_UART".

Children
Related