SDIO card, Wait interrupt from RX Task & Process TX Packet from LWIP Task
Posted: Wed Sep 27, 2023 8:01 am
Hi,
I'm trying to integrate a WIFI sdio module to ESP32S3 using SDIO interface.
I'm using the TCPIP stack from ESP-IDF (with netif custom driver)
The Wifi module is working, but sometimes I got the following errors coming from my TX Task :
I try to set the sdmmc global timeout value into the sdmmc_host_t (command_timeout_ms), without any improvement.
I suspect that the problem comes from the fact that I'm waiting for an interrupt inside my RX task (with sdmmc_io_wait_int), and process TX packets in an other task. I have protected calls to sdmm_io_* with a mutex but I cannot protect sdmmc_io_wait_int...
Migrating LWIP Task to the other core reduce a lot the number of those errors, but there are still some.
Do you have an idea of the problem?
I'm trying to integrate a WIFI sdio module to ESP32S3 using SDIO interface.
I'm using the TCPIP stack from ESP-IDF (with netif custom driver)
The Wifi module is working, but sometimes I got the following errors coming from my TX Task :
Code: Select all
E (15146) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (15146) sdmmc_io: sdmmc_io_rw_extended: sdmmc_send_cmd returned 0x107
I suspect that the problem comes from the fact that I'm waiting for an interrupt inside my RX task (with sdmmc_io_wait_int), and process TX packets in an other task. I have protected calls to sdmm_io_* with a mutex but I cannot protect sdmmc_io_wait_int...
Migrating LWIP Task to the other core reduce a lot the number of those errors, but there are still some.
Do you have an idea of the problem?