Search found 4 matches

by ci4rail
Thu Sep 01, 2022 9:11 am
Forum: ESP-IDF
Topic: What can cause TWAI TWAI_ALERT_TX_FAILED
Replies: 1
Views: 1091

Re: What can cause TWAI TWAI_ALERT_TX_FAILED

Hello, can somebody help please?
by ci4rail
Wed Aug 24, 2022 1:48 pm
Forum: ESP-IDF
Topic: What can cause TWAI TWAI_ALERT_TX_FAILED
Replies: 1
Views: 1091

What can cause TWAI TWAI_ALERT_TX_FAILED

Using ESP32S2 and esp-idf v4.4.1. Under heavily loaded CAN bus, sometimes it happens that the TWAI driver reports TWAI_ALERT_TX_FAILED and in this case, the transmit message is lost. What can cause this error? I noticed from ESP32-S2 TRM (V1.0) that this alert is fired when TWAI_STATUS_REG.TWAI_TX_C...
by ci4rail
Tue Oct 12, 2021 11:07 am
Forum: ESP-IDF
Topic: How to re-configure UART
Replies: 1
Views: 4230

How to re-configure UART

Hi, I currently using the UART0 on my ESP32S2 for data exchange (while UART1 is used for the console output) and I would like to change its configuration at runtime. First I tried this: uart_config_t uart_config = { .baud_rate = 115200, .data_bits = UART_DATA_8_BITS, .parity = UART_PARITY_DISABLE, ....
by ci4rail
Thu Sep 02, 2021 2:53 pm
Forum: ESP-IDF
Topic: How is the rx buffer of a custom i/o driver using esp_netif_receive() is freed?
Replies: 3
Views: 2956

How is the rx buffer of a custom i/o driver using esp_netif_receive() is freed?

Hi, I'm writing a cdc ecm (Ethernet over USB) driver for the esp32s2 which is using the same esp-netif configuration as the native ethernet driver (ESP_NETIF_DEFAULT_ETH). In the manual (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_netif_driver.html) is writt...