RMT Interrupt Delayed when WiFi STA Connect Failing
Posted: Sat Nov 17, 2018 1:02 am
We use ESP32 in a real-time application, where we need RMT RX continuously running even while connecting to WiFi.
We are seeing good accuracy of RMT RX, except when we attempt to connect to a WiFi access point which does not exist (wrong ssid). In this case, we get incorrect data from the RMT, approximately when the event STA_DISCONNECTED occurs.
We suspect that the WiFi interrupts are delaying the RMT driver. However, this delay occurs even when the RMT driver is installed from CPU_1 (and we confirm that the RMT interrupt is installed on CPU_1 via esp_intr_get_cpu).
I've read the docs on interrupt allocation, and on the WiFi-driver, but I could use a pointer on how to avoid negative impact on real-time code from the WiFi driver.
Thanks!
We are seeing good accuracy of RMT RX, except when we attempt to connect to a WiFi access point which does not exist (wrong ssid). In this case, we get incorrect data from the RMT, approximately when the event STA_DISCONNECTED occurs.
We suspect that the WiFi interrupts are delaying the RMT driver. However, this delay occurs even when the RMT driver is installed from CPU_1 (and we confirm that the RMT interrupt is installed on CPU_1 via esp_intr_get_cpu).
I've read the docs on interrupt allocation, and on the WiFi-driver, but I could use a pointer on how to avoid negative impact on real-time code from the WiFi driver.
Thanks!