-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Console demo does not read serial data when pin numbers are changed. (IDFGH-505) #2843
Comments
Can you provide you UART pin configuration? |
This is the unaltered example from the IDF in examples/system/console. |
@tommessick |
Adding this line:
before the call to initialize_console() fixed the problem. |
Thanks for the feedback, will keep this open until this is fixed in IDF. |
Fix for this issue is in our internal repo, it will be merged as soon as possible. Thanks. |
The RXD pin is assigned as input (fix for custom uart option). Closes: #2843 Closes: IDFGH-505
The RXD pin is assigned as input (fix for custom uart option). Closes: #2843 Closes: IDFGH-505
The RXD pin is assigned as input (fix for custom uart option). Closes: #2843 Closes: IDFGH-505
The RXD pin is assigned as input (fix for custom uart option). Closes: espressif#2843 Closes: IDFGH-505
Environment
I am running the console example from the IDF. If I build it with no changes it uses UART0 over the default pins and works fine.
The ESP32-WROOM-32 is on a board with an RS232 port through a MAX3232. Pin 32 is TX and pin 33 is RX. I have code that sends and receives data over these pins so I am sure they are wired up correctly.
If I use make menuconfig to configure the console to use pins 32 and 33 the console demo prints to the serial port but cannot receive any data.
I don't have a JTAG debugger. In uart.c uart_rx_intr_handler_default() there is code to check for these bits:
UART_RXFIFO_TOUT_INT_ST_M
UART_RXFIFO_FULL_INT_ST_M
UART_AT_CMD_CHAR_DET_INT_ST_M
I have modified uart.c to cause an exception when a character is received. I get the exception when i use the original UART setup but not when I switch to the other pins.
I have used make menuconfig to select UART0 or UART1 with the same results.
sdkconfig.txt
uart.c.txt
The text was updated successfully, but these errors were encountered: