-
Notifications
You must be signed in to change notification settings - Fork 715
not returning to arduino loop #927
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
@chegewara I know you have a tight schedule. |
Its hard to say without code or logs. |
In case it helps your situation, see the discussion about xSemaphoreTake found here:
|
Thanks Thomas, this is exactly the issue. For reference, the verbose: |
Dear Mr. @chegewara , Be considered an Interrupt Service Routine (ISR)? I ask this because I am in doubt which type of FreeRTOS functions I should use inside it, i.e. if I should use fncFromISR (e.g. https://freertos.org/xSemaphoreTakeFromISR.html) functions or the standard ones. Many thanks! |
No, this is regular function, no need to use xxxfromISR in it. |
Hello
When I am scanning-->connecting with my BLE device, and a Ticker function, or MQTT message comes into play at the same time, sometimes my ESP32 never goes back to the arduino loop.
It remains only executing the attached Ticker functions, but never back to my loop, until my watchdog (a function attached to another Ticker) is triggered, rebooting the ESP32.
Could it be a problem of a missing "return" at the end of the attached Ticker function, even if the function return is void? Or maybe a thread/semaphore/priority task issue?
What are your suggestions?
What can I study in order to solve this issue?
Many thanks!
The text was updated successfully, but these errors were encountered: