Search found 2 matches

by xgvargas
Wed Jul 13, 2022 7:03 pm
Forum: General Discussion
Topic: Lost on UART RX timeout
Replies: 0
Views: 906

Lost on UART RX timeout

First let me explain what I am trying to do: I have UART0 running on default pins and have its driver installed with buffers for both RX and TX. No event queue. This works. Now what I need: some warning on RX timeout! (Do not care about FIFO full and friends). It seams that default driver does not h...
by xgvargas
Wed Jul 13, 2022 5:38 pm
Forum: ESP-IDF
Topic: ESP32 UART rx idle timeout not working in driver
Replies: 4
Views: 4339

Re: ESP32 UART rx idle timeout not working in driver

It's an old question, but here is my solution in case someone else is having this kind of issue. We do not need to relay on IDF to solve that. Simple create a FreeRTOS semaphore with xSemaphoreCreateBinary, and take it inside your task using xSemaphoreTake. Then, from inside the TOUT interrupt give ...