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
Watchdog triggering on esp_rmaker_param_update_and_report in timer (MEGH-2604) #86
Comments
@chmoore889 , esp_timer is actually recommended only when you require high accuracy. This same timer also gets used for Wi-Fi and some other tasks. To be on safer side, it is better to use the FreeRTOS timer instead. Similar change was done in the temperature sensor example here. Can you try that? |
@shahpiyushv Great thanks! Using the FreeRTOS timer solved the issue. I think it might be beneficial to note somewhere in the documentation that using |
I know the issue is closed but I am experiencing exactly the same issue. However, I am using the TimerHandle_t and not esp_timer. This is my app_sensor_update function which is based on the one found in the app_diver.c in temperature sensor example
`static void app_sensor_update(TimerHandle_t handle)
}` I am attaching a screenshot of the serial output. Please ignore the i2c driver install error. This was fixed, but the problem with esp_timer persists. |
@miroslavpetrov , a crude approach, but can you add some prints before and after these calls and also enabled the idf level debug logs so that we get more info? |
this is the debug level log
the lines get scrambled - check the same log at pastebin - https://pastebin.com/ejZ9A3wi |
Following an update to ESP IDF version 4.3 from some older version (4.1 or 4.2 can't quite remember) and pulling the latest version of ESP Rainmaker, a particular call to
esp_rmaker_param_update_and_report
started triggering the watchdog and showing the following error, which traces back to the following code, which is within the callback for anesp_timer
. All other calls to the function work fine.My whole application was working in the older versions of IDF and Rainmaker that I was using. I saw nothing in the changelogs that indicated breaking changes related to this function. I've tried disabling the watchdog just to see if it was taking too long, but it just blocks forever instead of the watchdog triggering.
Logs:
Code:
The text was updated successfully, but these errors were encountered: