wifi task interfering with loop() task on app core?
Posted: Mon Sep 16, 2019 2:06 pm
Hey all,
I have my loop() function reading from UART2 and updating an SSD1306 OLED through I2C. This works fine and takes approximately ~35ms. However, when enabeling the loop() task seems to get pre-empted becuase when WiFi is connecting the loop() sometimes takes around 700ms instead of 35ms!
I was under the assumption that the application core (where loop() is running) is not used by any other tasks at all. I also plan to run another task on the application core for audio playback, but if the wifi task or other tasks can interfere this might become problematic.
How can I ensure I have the entire application cpu core to myself?
I have my loop() function reading from UART2 and updating an SSD1306 OLED through I2C. This works fine and takes approximately ~35ms. However, when enabeling the loop() task seems to get pre-empted becuase when WiFi is connecting the loop() sometimes takes around 700ms instead of 35ms!
I was under the assumption that the application core (where loop() is running) is not used by any other tasks at all. I also plan to run another task on the application core for audio playback, but if the wifi task or other tasks can interfere this might become problematic.
How can I ensure I have the entire application cpu core to myself?