Does Task Watchdog has been supported into CORE 0 for ESP32 IDF 2.1 SDK

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Does Task Watchdog has been supported into CORE 0 for ESP32 IDF 2.1 SDK

Postby Ritesh » Tue Apr 03, 2018 5:01 pm

Hi,

I just want to confirm that TASK Watchdog has been supported for Core 0 for ESP32 IDF 2.1 SDK because when we started application development using ESP32 IDF 2.1 SDK at that time we are not getting Task Watchdog event even if Task which is running into Core 0 is continuously though it is working into Core 1 if task has been created into Core 1 explicitly.

So, Would you please confirm that Task Watchdog is working for both Core or only for Core 1 into ESP32 IDF 2.1 SDK as we are using that SDK for our application development purpose?
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Does Task Watchdog has been supported into CORE 0 for ESP32 IDF 2.1 SDK

Postby Ritesh » Tue Apr 03, 2018 5:55 pm

Hi Espressif Systems Developer or others,

Let me know if anyone has faced issue of not getting Task Watchdog for tasks which are running into core 0 continuously without any context switching delay.
Regards,
Ritesh Prajapati

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Does Task Watchdog has been supported into CORE 0 for ESP32 IDF 2.1 SDK

Postby ESP_Sprite » Wed Apr 04, 2018 1:35 am

It should work just fine. Take care of one thing: if the task taking up 100% CPU time is not pinned to any core, it may 'ping-pong' between two cores and use up 100% CPU on one particular core. Maybe that is the issue you're seeing?

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Does Task Watchdog has been supported into CORE 0 for ESP32 IDF 2.1 SDK

Postby Ritesh » Wed Apr 04, 2018 4:53 pm

ESP_Sprite wrote:It should work just fine. Take care of one thing: if the task taking up 100% CPU time is not pinned to any core, it may 'ping-pong' between two cores and use up 100% CPU on one particular core. Maybe that is the issue you're seeing?
We had checked below things using ESP32 IDF 2.1.

1) Run freeRTOS on core 0 and created one task in while loop without any delay and we are getting Task Watchdog for Core 0.

2) Run freeRTOS on core 1 and created one task in while loop without any delay and we are getting Task Watchdog for Core 1.

3) But when we run freeRTOS on both core and created task on core 0 explicitly using pinned 2 Core at that time we are not getting Task Watchdog for that task. If we execute same task on core 1 at that time we are getting Task Watchdog for Core 1.

Let me know if need anything else from my side regarding same.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Google [Bot] and 145 guests