UART and Logger

I want to use the UART to receive data, but that doesn't look possible if I use the Logging Module.   I don't see where the logger module will interrupt my code to tell me I've received a character.

So must I disable the Logger to gain full interrupt control of the UART?

Parents
  • Hi James,

    Could you try adding the following as well:

    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    CONFIG_LOG_MODE_IMMEDIATE=y
    CONFIG_LOG_PRINTK=y
     Ensure you're using the correct tool to view RTT output. The standard UART terminal won't show RTT logs. You need to use a tool like SEGGER's RTT Viewer or J-Link RTT Viewer or the RTT Console in nRF Connect for VS Code to see the RTT output.
    Regards,
    Swathy
Reply
  • Hi James,

    Could you try adding the following as well:

    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    CONFIG_LOG_MODE_IMMEDIATE=y
    CONFIG_LOG_PRINTK=y
     Ensure you're using the correct tool to view RTT output. The standard UART terminal won't show RTT logs. You need to use a tool like SEGGER's RTT Viewer or J-Link RTT Viewer or the RTT Console in nRF Connect for VS Code to see the RTT output.
    Regards,
    Swathy
Children
No Data
Related