Open heyangxinmei opened 2 weeks ago
Hello @heyangxinmei ,
In order to help you, I have a few questions:
Yes, the callback is called from a task with ESP_TASK_TIMER_PRIO
, so there could be tasks with a higher priority (e.g. BT)
会停止运行一段时间
How long is 一段时间? Is the callback delayed a few ms, or is it multiple seconds? Are you using power-management/sleep in your application?
It is also possible to dispatch the callback directly from the ISR: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/esp_timer.html#using-the-interrupt-dispatch-method
Answers checklist.
General issue report
软件定时器的回调函数,有时候会停止运行一段时间。之后有正常回调。请问什么原因会引起这个问题呢?谢谢