Hi,
I am using sdk 14.2.0.
there is no logs in pwm_library example.
even though i add it,it's not working.
bellow lines are added in Makefile:
$(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_backend_rtt.c \
$(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_backend_serial.c \
$(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_backend_uart.c \
$(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_default_backends.c \
$(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_str_formatter.c \
$(SDK_ROOT)/components/libraries/experimental_log/src/nrf_log_frontend.c \
and using log_init() in main;
static void log_init(void)
{
ret_code_t err_code = NRF_LOG_INIT(NULL);
APP_ERROR_CHECK(err_code);
NRF_LOG_DEFAULT_BACKENDS_INIT();
}
in the main file:
log_init();
NRF_LOG_INFO("Inside main");
NRF_LOG_FLUSH();
please let me know if other configurations are required.
Thanks,
Amarjeet