-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
@blaticslm PSRAM is not necessarily the issue. The error states the WDT wasn't kicked in time on the idle task. Are you calling |
Beta Was this translation helpful? Give feedback.
-
@mrengineer7777 Here are some details on my program: The running logic is shown below (the arrows are representing the time interval between two tasks): here is my task1 code
here is my task2 code
|
Beta Was this translation helpful? Give feedback.
-
Some updates: I now add close HTTP connection after each request, since it may free up the memory, but it is still crashing at the same traceback.
and this is my platform.ini setup
|
Beta Was this translation helpful? Give feedback.
-
@blaticslm I believe you are fighting a WDT issue, not memory corruption. Calling http.end() will free up some memory but will also slow down the HTTP connection, as it can't reuse the connection that's already open. I use HTTPClient as well. The error here is pretty clear. One of your tasks is running for longer than the WDT timeout, which I believe is 5 seconds by default. You can test that by disabling the WDT and seeing that your code doesn't crash. Based on your screenshot, I'm guessing it happens during "Creating group data2" in Task1. In my project I used to get a WDT if the HTTP request took longer than 5 seconds, so I changed our WDT to 15 seconds, and also set a limit on HTTP requests to 9 seconds. |
Beta Was this translation helpful? Give feedback.
Some updates: I now add close HTTP connection after each request, since it may free up the memory, but it is still crashing at the same traceback.
and this is my platform.ini setup