uart_param_config() returns an error
Posted: Wed Mar 18, 2020 5:11 pm
Hi
I'm calling uart_param_config() like this:
uart_config_t uartConfig;
uartConfig.baud_rate = baudrate;
uartConfig.data_bits = UART_DATA_8_BITS;
uartConfig.parity = UART_PARITY_DISABLE;
uartConfig.stop_bits = UART_STOP_BITS_1;
uartConfig.flow_ctrl = UART_HW_FLOWCTRL_DISABLE;
uartConfig.rx_flow_ctrl_thresh = 1000/*bufferSize*/ *9/10;
uartConfig.use_ref_tick = false;
err = uart_param_config (UART_NUM_1, &uartConfig);
and I get this error:
E (3559) uart: uart_set_hw_flow_ctrl(276): rx flow thresh error
If I use a smaller buffer size like 100 it works ok.
Any ideas about this?
thanks
I'm calling uart_param_config() like this:
uart_config_t uartConfig;
uartConfig.baud_rate = baudrate;
uartConfig.data_bits = UART_DATA_8_BITS;
uartConfig.parity = UART_PARITY_DISABLE;
uartConfig.stop_bits = UART_STOP_BITS_1;
uartConfig.flow_ctrl = UART_HW_FLOWCTRL_DISABLE;
uartConfig.rx_flow_ctrl_thresh = 1000/*bufferSize*/ *9/10;
uartConfig.use_ref_tick = false;
err = uart_param_config (UART_NUM_1, &uartConfig);
and I get this error:
E (3559) uart: uart_set_hw_flow_ctrl(276): rx flow thresh error
If I use a smaller buffer size like 100 it works ok.
Any ideas about this?
thanks