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

How to fix UART behavior in segger?

Still playing with my app. Since RTT (or whatever it was, when printf was printing info to segger debug console) was ruining the debug process, I just switched off RTT and disabled uart module. But now I need some way to print out some debug info. So, I connected an rx pin of my usb-serial interface to pin9 of 51822. However, printf still prints out to segger debug console, not to my usb-uart, and probably still causing crashes when run not in debug mode. Is there a way to check what could be wrong?

Parents
  • It's just the configuration on Segger embedded Studio, it wouldn't affect the code of the application. If you want to disable RTT log you need to edit the sdk_config.h.

    There is a GUI tool to edit sdk_config, please have a look at this tutorial. NRF_LOG_BACKEND_SERIAL_USES_RTT should be disabled and NRF_LOG_BACKEND_SERIAL_USES_UART should be enabled if you want to send the log via UART.

    To turn off LOGing you change NRF_LOG_ENABLED to 0.

Reply
  • It's just the configuration on Segger embedded Studio, it wouldn't affect the code of the application. If you want to disable RTT log you need to edit the sdk_config.h.

    There is a GUI tool to edit sdk_config, please have a look at this tutorial. NRF_LOG_BACKEND_SERIAL_USES_RTT should be disabled and NRF_LOG_BACKEND_SERIAL_USES_UART should be enabled if you want to send the log via UART.

    To turn off LOGing you change NRF_LOG_ENABLED to 0.

Children
No Data
Related