Hello,
I am working on a project using the nrf5340 MCU, and I am using the ncs version v1.6.1. I need to use 7 data bits, 2 stop bits, and even parity for the serial port. However, when I checked the function:
static int uarte_nrfx_configure(const struct device *dev, const struct uart_config *cfg) in uart_nrfx_uarte.c, I found that
if (cfg->data_bits ! = UART_CFG_DATA_BITS_8) {
return -ENOTSUP;
}
The serial port can only be configured to have 8 data bits. Is there any other way to set it to the format I need?