Page 1 of 1
Is it possible to add Rx Interrupts on the UART0
Posted: Thu May 19, 2022 12:28 pm
by dallim30
Hello.
In ESP32 Wrover-E,
UART 0 is for the debugging and standard IO by default
Is it possible to add Rx Interrupts on the UART0?
Hope to get your help.
Re: Is it possible to add Rx Interrupts on the UART0
Posted: Thu May 19, 2022 1:21 pm
by ESP_Sprite
Well, technically UART0 is the same as other UARTs, so yes. It gets a bit more complicated if you want to keep debugging output. Can you tell us what your specific use case here is?
Re: Is it possible to add Rx Interrupts on the UART0
Posted: Fri May 20, 2022 3:23 am
by dallim30
Thank you for your reply
I want to use UART0 for communication (reception/transmission) between a PC and an ESP32
and also keep debugging output.
Any help to resolve this issue is greatly appreciated ?
thanks
Re: Is it possible to add Rx Interrupts on the UART0
Posted: Fri May 20, 2022 8:02 am
by ESP_Sprite
The easiest way would be to
install the UART blocking driver (note you don't need to set the pins as they're already correct here) and then either use the API described in there, or use the higher-level posix printf/getchar/... APIs that work on stdin/stdout.
Re: Is it possible to add Rx Interrupts on the UART0
Posted: Fri May 20, 2022 9:05 am
by dallim30
Thanks for your response
I need to receive data using UART0 received interrupt on non-blocking mode
I didn’t understand anything to read ESP32 datasheet.
Can you please help me to write the code for Arduino-ESP32.
Thanks