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

Use 2 UARTE with SDK15

Hello,

I'm trying to configure 2 serial ports for a custom board with nRF52840 chip, but when I try to instance the second UART "NRF_SERIAL_UART_DEF(serial_uart1, 1);" the compiler raise an error.

../../../../../../modules/nrfx/drivers/include/nrfx_uart.h:79:35: error: 'NRF_UART1' undeclared here (not in a function); did you mean 'NRF_UARTE1'?

I had this code working with SDK14.2, but with SDK15 this doesn't work.

I've compiled the example peripheral/serial changing the id instance from 0 to 1 with the same result.

I've activated UART1 and UARTE1 in sdk_config.h

Can you help me with this problem.

Thanks.

Related