-
Notifications
You must be signed in to change notification settings - Fork 7.4k
ESP32: DMA is enabled only when using UART0 and no reset of the rx fifo when the modem goes to suspend and resume power mode #86924
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
Hi, could you change the issue description so that it uses the bug report template? It asks for some important information that are very useful for us to understand the issue. Thanks. |
This is not a modem subsystem issue, should be assigned to someone from ESP given it seems to be a UART driver bug |
Thanks @bjarki-andreasen. |
This was a known issue, solved sometime ago. Please, check if it is still there on v4.1 |
@dmkuzmin I could not find any evidence that DMA is enabled only when using UART0. Going through uart_esp32.c, UART0 and UART1 are both treated equally with regards to DMA on esp32s3 and esp32c3 when |
That's my conclusion. I was convinced of this when I changed the number of the UART controller for the modem or for modbus devices in the dts file. Examples of unsuccessful communication with devices are also given in #82370. There is a waiting for a response from the modem after issuing the AT command, timeouts in the drivers do not work. The exception is only for UART0 |
Ok, #82370 is also based on 3.7.1. Does that happen on 4.1? Do you mind testing it on most recent release? Otherwise, we have no plans to go back to 3.7 and fix things. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Describe the bug
Some of the information is described here #82370
zephyr version: Zephyr 3.7.1
modem: Quectel BG95
platform: ESP32-C3 and ESP32-S3
config options: for ISR CONFIG_UART_INTERRUPT_DRIVEN=y or for async CONFIG_UART_INTERRUPT_DRIVEN=n,
CONFIG_UART_ASYNC_API=y, CONFIG_MODEM_BACKEND_UART_ASYNC=y
Unfortunately, the problem with entering and exiting modem sleep mode has not been solved, where the controller takes garbage upon waking up and needs to reset the RX FIFO, as it seems to me, but I cannot guess where to insert it.
Secondly, there is a problem with asynchronous mode operation. DMA is enabled only when using UART0
The text was updated successfully, but these errors were encountered: