My Tasks/threads stop working
Posted: Thu Sep 27, 2018 1:34 pm
Hi,
I am using latest ESP-IDF SDK versin 3.2 from git.
I have app main loop. one esp timer . I created few others tasks/threads. but I do ESP32 log from my two threads which logs every 10 seconds. I also do debug log from app main loop and esp timer.
My two threads stop working after running and processing CAN data and sending TCP messages.
One thread is sending TCP messages using mongoose. another thread check every 1ms perform processing CAN receive messages received in buffer from CAN RX interrup handler.
I have CAN interrupt handler. which picks any can messages. cannot do ESP debug/info logs into interrupt handler. not sure may be can use printf.
After sending can messages for sometime( 1 hour) suddenly ESP32 device stop receiving can messages and stop sending TCP messages from another thread. basically I can see my two threads stop printing debug logs but app main loop and esp timer still doing logs.
Any idea. I enable freeRTOS debug . My debug level is info. no error shown.
I am using dual core mode.
I will try single CPU mode as well.
Should I try ESP-IDF 3.1 stable release. how can i get stable release using git hub command. what is latest stable release.
I am using latest ESP-IDF SDK versin 3.2 from git.
I have app main loop. one esp timer . I created few others tasks/threads. but I do ESP32 log from my two threads which logs every 10 seconds. I also do debug log from app main loop and esp timer.
My two threads stop working after running and processing CAN data and sending TCP messages.
One thread is sending TCP messages using mongoose. another thread check every 1ms perform processing CAN receive messages received in buffer from CAN RX interrup handler.
I have CAN interrupt handler. which picks any can messages. cannot do ESP debug/info logs into interrupt handler. not sure may be can use printf.
After sending can messages for sometime( 1 hour) suddenly ESP32 device stop receiving can messages and stop sending TCP messages from another thread. basically I can see my two threads stop printing debug logs but app main loop and esp timer still doing logs.
Any idea. I enable freeRTOS debug . My debug level is info. no error shown.
I am using dual core mode.
I will try single CPU mode as well.
Should I try ESP-IDF 3.1 stable release. how can i get stable release using git hub command. what is latest stable release.