Hello everyone.
Tell me, what kind of error 0x62 gives uart_write_byte? It outputs the data normally, but after each output there is this error.
It gives out this:
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x62 (ERROR) at 0x400d6bf2
file: "./main/main.c" line 357
func: app_main
expression: uart_write_bytes(UART_NUM_0, data_all, sizeof(data_all))
in programm:
Line 357: ESP_ERROR_CHECK_WITHOUT_ABORT(uart_write_bytes(UART_NUM_0, data_all, sizeof(data_all)));
uart installations:
void init_uart0_out(void)
{
const uart_config_t uart0_config1 =
{
.baud_rate = 115200,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.source_clk = UART_SCLK_APB,
};
ESP_ERROR_CHECK_WITHOUT_ABORT(uart_set_pin(UART_NUM_0, GPIO_NUM_1, GPIO_NUM_3, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE));
ESP_ERROR_CHECK_WITHOUT_ABORT(uart_driver_install(UART_NUM_0, 1024, 0, 0, NULL, 0));
ESP_ERROR_CHECK_WITHOUT_ABORT(uart_param_config(UART_NUM_0, &uart0_config1));
}
unsigned char data_all[98]={0x3c,0xc3};
for (int byte_out=2;byte_out<98;byte_out++) data_all[byte_out]=0;
error 0x62 uart
-
- Posts: 1688
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: error 0x62 uart
uart_write_bytes()
Returns:
- (-1) Parameter error
- OTHERS (>=0) The number of bytes pushed to the TX FIFO
Re: error 0x62 uart
Understood. This is not an error, but the number of bytes transferred. Thanks
Who is online
Users browsing this forum: ok-home, rajtendulkar and 68 guests