When I opened the demo project, log_inf could not print in serial port or in RTT, but I changed log_inf to printk and it can print, why, I want to print with log_inf now how to achieve
When I opened the demo project, log_inf could not print in serial port or in RTT, but I changed log_inf to printk and it can print, why, I want to print with log_inf now how to achieve
Hi,
For logging in RTT you need to set the following in prj.conf.
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
It could also be wise to set the default log level based on what you need.
CONFIG_LOG_DEFAULT_LEVEL
If you're new to nRF Connect SDK, please go through this course: academy.nordicsemi.com/.../
Kind regards,
Andreas