-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cannot send and receive on the same UART #13
Comments
This is on Ubuntu 19.04 running with |
Maybe |
OK. You are right. I will check this later. |
OK! Thanks @Ebiroll let me know if there is any other details I can help with. |
Good idea. it will probably save you lots of time not having to flash constantly. You should also look at the possibility to run the qemu gdb debugger as it gives you a quick way of finding logic errors and stepping into the esp-idf code. |
It appears the serial interface cannot send and receive on the same UART.
The behavior can be see in
esp-idf/examples/peripherals/uart/uart_events
Loading this example on a real ESP32 with a USB bridge connected to
UART_0
anything typed on the terminal will be echo withuart_write_bytes
and aESP_LOGI
call will be made on the defaultCONSOLE_UART
, alsoUART_0
Loading this same example in
qemu_esp32
will do nothing. But ifuart_events/main/uart_events_example_main.c
is edited to change...to
It will work using two instances of
nc
connected to8880
and8881
. In this case, anything typed into8881
will be printed to8880
The text was updated successfully, but these errors were encountered: