I want to add log function in one, but compile this display undefined.
# Config logger
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=y
I want to add log function in one, but compile this display undefined.
# Config logger
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_BACKEND_UART=n
because you have to chose RTT or UART for log.
Thank you for your reply.
I'm adding this, I'm using LOG_INF() for printing, but still compile will report this problem
Hi,
Have you included the log.h file and registered the logging module with
#include <logging/log.h> LOG_MODULE_REGISTER(foo, CONFIG_FOO_LOG_LEVEL);
Please check out this page about how to use logging in Zephyr.
Best regards,
Marte