I would like to add the UART part to my application. But I will get these errors:
..........\components\libraries\uart\app_uart_fifo.c(109): error: #20: identifier "UART0_CONFIG_PSEL_TXD" is undefined
..........\components\libraries\uart\app_uart_fifo.c(109): error: #20: identifier "UART0_CONFIG_PSEL_CTS" is undefined
etc...
They are all defined in nrf_drv_uart.h. And this file is included to the project. A did also a rebuild.
And from nrf_drv_uart.c I will get this error:
error: #35: #error directive: "Wrong configuration."
#if (defined(UARTE_IN_USE) && defined(UART_IN_USE))
// UARTE and UART combined
#define CODE_FOR_UARTE(code) if (m_cb.use_easy_dma) { code }
#define CODE_FOR_UART(code) else { code }
#elif (defined(UARTE_IN_USE) && !defined(UART_IN_USE))
// UARTE only
#define CODE_FOR_UARTE(code) { code }
#define CODE_FOR_UART(code)
#elif (!defined(UARTE_IN_USE) && defined(UART_IN_USE))
// UART only
#define CODE_FOR_UARTE(code)
#define CODE_FOR_UART(code) { code }
#else
#error "Wrong configuration." <--------- WHY?
#endif
Do I have to define something more, to be able to use UART?
And what means wrong configuration? I didnt change anything.