-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Two Stop Bit RX Problem #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
can you submit a PR for this? I can also do it manually |
I haven't forked/done a pull request. But, I'll try it later today |
@claudeheintz I believe that this fix is in place in the current code. Can you confirm? Is the issue fixed for you? |
Hi Jason,
I am using a modified version of the esp32-hal-uart.c file in order to use a custom ISR. However, except for that, the file is identical to esp32-hal-uart.c in Arduino core, including the two stop bit fix.
Thanks,
…-Claude Heintz
On Tue, 15 Aug 2017 15:23:14 +0000 (UTC), "Jason K." wrote:
@claudeheintz I believe that this fix is in place in the current code. Can you confirm? Is the issue fixed for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi,
In testing the latest ESP32 Arduino Core, I notice that the uartEnd function was changed. But, this causes a problem if the uart is re-used because the queue is deleted but not set to NULL. I'd propose the following fix:
void uartEnd(uart_t* uart) {
if(uart == NULL) {
return;
}
UART_MUTEX_LOCK();
if(uart->queue != NULL) {
uint8_t c;
while(xQueueReceive(uart->queue, &c, 0));
vQueueDelete(uart->queue);
//begin mod ****************************************************
uart->queue = NULL;
//end mod ****************************************************
}
uart->dev->conf0.val = 0;
UART_MUTEX_UNLOCK();
uartDetachRx(uart);
uartDetachTx(uart);
}
Thanks,
…-Claude Heintz
On Tue, 15 Aug 2017 15:23:14 +0000 (UTC), "Jason K." wrote:
@claudeheintz I believe that this fix is in place in the current code. Can you confirm? Is the issue fixed for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
good catch @claudeheintz |
Raienryu97
pushed a commit
to Raienryu97/arduino-esp32
that referenced
this issue
Aug 18, 2017
blue-2357
pushed a commit
to blue-2357/arduino-esp32
that referenced
this issue
Jul 17, 2024
dash0820
added a commit
to dash0820/arduino-esp32-stripped
that referenced
this issue
Mar 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Serial settings with two stop bits do not work properly with UART RX.
Is it possible to modify uartBegin in esp32-hal-uart.c to include the new workaround for two stop bits in the latest IDF, something like this.
The text was updated successfully, but these errors were encountered: