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

nRF SDK5 11.0.0: blinky example with NRF_LOG problem compiling

I'm using the nRF SDK5 v11.0.0. I'm trying to test out UART Logging in the simple blinky example bundled in the SDK. I added NRF_LOG_INIT() and then a NRF_LOG("Testing\n"); in main(). Naturally i added #include "nrf_log.h". It subsequently needed changes to specify nrf_log.c in the make file. But it didnt stop at that , i had to update the make file to include paths to libraries/uart,/drivers_nrf/uart and so on. Finally when i thought i had done all the include paths, i landed up with following compilation error. Can somebody help me. All i'm trying to do is do UART logging in the blinky example.

Compiling file: system_nrf52.c Compiling file: main.c Compiling file: nrf_delay.c Compiling file: nrf_log.c Compiling file: app_uart.c In file included from F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c:14:0: F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c: In function 'app_uart_init': F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/drivers_nrf/uart/nrf_drv_uart.h:75:31: error: 'UART0_CONFIG _PSEL_TXD' undeclared (first use in this function) .pseltxd = UART0_CONFIG_PSEL_TXD,

^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c:57:36: note: in expansion of macr o 'NRF_DRV_UART_DEFAULT_CONFIG' nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG; ^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/drivers_nrf/uart/nrf_drv_uart.h:75:31: note: each undeclare d identifier is reported only once for each function it appears in .pseltxd = UART0_CONFIG_PSEL_TXD,

^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c:57:36: note: in expansion of macr o 'NRF_DRV_UART_DEFAULT_CONFIG' nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG; ^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/drivers_nrf/uart/nrf_drv_uart.h:76:31: error: 'UART0_CONFIG _PSEL_RXD' undeclared (first use in this function) .pselrxd = UART0_CONFIG_PSEL_RXD,

^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c:57:36: note: in expansion of macr o 'NRF_DRV_UART_DEFAULT_CONFIG' nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG; ^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/drivers_nrf/uart/nrf_drv_uart.h:77:31: error: 'UART0_CONFIG _PSEL_CTS' undeclared (first use in this function) .pselcts = UART0_CONFIG_PSEL_CTS,

^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c:57:36: note: in expansion of macr o 'NRF_DRV_UART_DEFAULT_CONFIG' nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG; ^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/drivers_nrf/uart/nrf_drv_uart.h:78:31: error: 'UART0_CONFIG _PSEL_RTS' undeclared (first use in this function) .pselrts = UART0_CONFIG_PSEL_RTS,

^ F:/mash/Dropbox/IoT/Workshop/nRFWorkShop/nRF5_SDK_11.0.0_89a8197/components/libraries/uart/app_uart.c:57:36: note: in expansion of macr o 'NRF_DRV_UART_DEFAULT_CONFIG' nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;

Related