Hello, I want to test using RTT for logging since I am using UART for send/receive packets. I made following changes in sdk_config.h:
#ifndef NRF_LOG_ENABLED
#define NRF_LOG_ENABLED 1 // previously 0
#endif
after I call make default, i have following errors while compiling:
Linking target: _build/nrf51422_xxac.out
_build/nrf51422_xxac_app_error_weak.c.o: In function `app_error_fault_handler':
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/libraries/
util/app_error_weak.c:26: undefined reference to `nrf_log_frontend_std_0'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/libraries/
util/app_error_weak.c:27: undefined reference to `nrf_log_blocking_backend_set'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/libraries/
util/app_error_weak.c:27: undefined reference to `nrf_log_frontend_dequeue'
_build/nrf51422_xxac_softdevice_handler.c.o: In function `softdevice_enable':
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/softdevice
/common/softdevice_handler/softdevice_handler.c:530: undefined reference to `nrf_log_frontend_std_1'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/softdevice
/common/softdevice_handler/softdevice_handler.c:543: undefined reference to `nrf_log_frontend_std_1'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/softdevice
/common/softdevice_handler/softdevice_handler.c:536: undefined reference to `nrf_log_frontend_std_1'
/home/ac4/programs/NRF_SDK_12.1/examples/ble_peripheral/ble_app_uart/pca10028/s130/armgcc/../../../../../../components/softdevice
/common/softdevice_handler/softdevice_handler.c:538: undefined reference to `nrf_log_frontend_std_1'
collect2: error: ld returned 1 exit status
make: *** [_build/nrf51422_xxac.out] Error 1
Please suggest where I am going wrong?