esp-sr icon indicating copy to clipboard operation
esp-sr copied to clipboard

ESP-SR easily triggers watchdog (AIS-1712)

Open MistyLake opened this issue 1 year ago • 6 comments

Checklist

  • [X] Checked the issue tracker for similar issues to ensure this is not a duplicate.
  • [X] Provided a clear description of your suggestion.
  • [X] Included any relevant context or examples.

Issue or Suggestion Description

E (12640891) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time: E (12640891) task_wdt: - IDLE0 (CPU 0) E (12640891) task_wdt: Tasks currently running: E (12640891) task_wdt: CPU 0: SR Feed Task E (12640891) task_wdt: CPU 1: loopTask E (12640891) task_wdt: Aborting. E (12640891) task_wdt: Print CPU 0 (current core) backtrace

MistyLake avatar Sep 10 '24 12:09 MistyLake

ESP-SR requires real-time operation of multiple algorithms, which may trigger the watchdog. It is advised not to combine tasks such as data reading/writing and transmission with the feed or fetch tasks of ESP-SR.

We will also continue to optimize the resource consumption of ESP-SR.

feizi avatar Sep 11 '24 08:09 feizi

Okay, I understand. Thank you.

MistyLake avatar Sep 11 '24 08:09 MistyLake

If you need to save or transmit data, I recommend using a ring buffer as an intermediate cache to separate the data transfer tasks from the ESP-SR tasks. This way, you can set a larger ring buffer to reduce task blocking and potential data loss.

feizi avatar Sep 11 '24 08:09 feizi

How do I need to achieve this ”ring buffer as an intermediate cache“

MistyLake avatar Sep 11 '24 08:09 MistyLake

Please refer to esp_ringbuf

feizi avatar Sep 12 '24 06:09 feizi

Although this may be a good solution, it may be a little difficult for me. According to the existing program, I do not know where and how to modify it, even though you have provided me with a reference example path Thank you so much for your answer!

MistyLake avatar Sep 12 '24 07:09 MistyLake