error 0x62 uart

mikl604
Posts: 21
Joined: Thu Aug 24, 2023 3:15 pm

error 0x62 uart

Postby mikl604 » Fri Mar 08, 2024 8:34 pm

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;

MicroController
Posts: 1551
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: error 0x62 uart

Postby MicroController » Fri Mar 08, 2024 9:41 pm

uart_write_bytes()
Returns:
- (-1) Parameter error
- OTHERS (>=0) The number of bytes pushed to the TX FIFO

mikl604
Posts: 21
Joined: Thu Aug 24, 2023 3:15 pm

Re: error 0x62 uart

Postby mikl604 » Sat Mar 09, 2024 6:38 am

Understood. This is not an error, but the number of bytes transferred. Thanks

Who is online

Users browsing this forum: Bing [Bot] and 242 guests