Modbus - tcp_master_task - Task watchdog got triggered

sarasini
Posts: 3
Joined: Thu Sep 23, 2021 7:26 am

Modbus - tcp_master_task - Task watchdog got triggered

Postby sarasini » Thu Sep 23, 2021 7:37 am

Hi,

I'm developing a project using the new tcp modbus library provided in esp-idf v4.3

Everything is working well for some hours of continuous reading modbus parameters (with a 150ms delay between each reading).

Then suddently the esp32 crash with this message:

Code: Select all

task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
task_wdt:  - IDLE (CPU 0)
task_wdt: Tasks currently running:
task_wdt: CPU 0: tcp_master_task
task_wdt: CPU 1: IDLE
task_wdt: Aborting.
It seems that the idf task that is handling the modbus procedures does not reset the task watchdog correctly.

How can I solve it?

Thanks

sarasini
Posts: 3
Joined: Thu Sep 23, 2021 7:26 am

Re: Modbus - tcp_master_task - Task watchdog got triggered

Postby sarasini » Mon Sep 27, 2021 7:13 am

Hi,
any ideas?

thanks

ESP_alisitsyn
Posts: 203
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: Modbus - tcp_master_task - Task watchdog got triggered

Postby ESP_alisitsyn » Mon Sep 27, 2021 8:02 am

Hi @sarasini,

Could you provide full log of your application or at least all latest lines before crash?
Also please share the sdkconfig file.

Thanks.

sarasini
Posts: 3
Joined: Thu Sep 23, 2021 7:26 am

Re: Modbus - tcp_master_task - Task watchdog got triggered

Postby sarasini » Mon Sep 27, 2021 8:20 am

Hi @ESP_alisitsyn,

attached log and sdkconfig

Thank you
Attachments
sdkconfig.txt
(42.51 KiB) Downloaded 169 times
pilomat_modbus_crash.txt
(36.89 KiB) Downloaded 178 times

ESP_alisitsyn
Posts: 203
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: Modbus - tcp_master_task - Task watchdog got triggered

Postby ESP_alisitsyn » Tue Sep 28, 2021 12:38 am

HI @sarasini,

Thank you for the files. I need to ask you to provide additions: your project *.elf/map files located in build folder of your project. These files needed to decode the coredump file. Also, you can decode it by youself using the command like below:

Code: Select all

espcoredump.py info_corefile -t b64 -c coredump.b64 your_poj_elf_file.elf -d3 -m
coredump.b64 - the coredump output from your log file.

Thanks.

Who is online

Users browsing this forum: Bing [Bot] and 141 guests