Hi, I have an Adafruit Feather nRF52840 which I'm programming using SDK 3.1.1. I want the following UART config but it is being rejected with error -134 which I believe means "Unsupported value" (defined in Zephyr's errno.h header):
#define ENOTSUP 134 /**< Unsupported value */
Here's my config:
const struct uart_config uart_cfg = {
.baudrate = 31250,
.parity = UART_CFG_PARITY_NONE,
.stop_bits = UART_CFG_STOP_BITS_1,
.data_bits = UART_CFG_DATA_BITS_8,
.flow_ctrl = UART_CFG_FLOW_CTRL_NONE
};
// then later....
err = uart_configure(uart, &uart_cfg);
if (err) {
printk("UART config failed with error %d\n",err);
return err;
}
// and in the console I see:
//
// 00> UART config failed with error -134
What is it about my requested configuration that is unsupported? It seems pretty standard to me. FYI this is the configuration for MIDI 1.0.
Thanks as always for your support
p.s. before switching to using Zephyr I was programming the board with Circuit Python and had no problem sending data over the UART in this way.
