Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

When using esp_task_wdt_reset(); i get this error E (10307) task_wdt: esp_task_wdt_reset(705): task not found #11202

MichalisChachalios started this conversation in Question - Community Help
Discussion options

I am using rtos with the esp32-s3 , these are two pieces of the code as they used to be, and worked good:

Code of a Task ->

void bluetoothTask(void *pvParameters)
{
 (void)pvParameters;
 for (;;){
 //// stuff happening here and at the end ....
 vTaskDelay(pdMS_TO_TICKS(10)); // Delay for task scheduling
 esp_task_wdt_reset();
 }
}

Part of the setup ->

 xTaskCreatePinnedToCore(serialTask, "SerialTask", 8192, NULL, 2, NULL, 1);
 xTaskCreatePinnedToCore(encoderButtonTask, "EncoderButtonTask", 2048, NULL, 1, NULL, 1);
 xTaskCreatePinnedToCore(bluetoothTask, "BluetoothTask", 4048, NULL, 3, NULL, 0);
 xTaskCreatePinnedToCore(ledBlinkTask, "LED Blink Task", 2048, NULL, 1, NULL, 1);
 int result = esp_task_wdt_init(1, 0);
 printf("wdt init result: %d\n", result);
 delay(1000);

Then I updated the platform in the PlatformIO in the .ini file

[env:esp32-s3-devkitc-1]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/54.03.20-rc2/platform-espressif32.zip
board = esp32-s3-devkitc-1
framework = arduino

and then i had to make some changes in the setup :

 esp_task_wdt_config_t wdt_config = {
 .timeout_ms = 5, // Set timeout duration to 50 ms
 .idle_core_mask = (1 << 0), // Monitor core 0's idle task
 .trigger_panic = false // Trigger panic on timeout
 };
 int result = esp_task_wdt_init(&wdt_config);
 printf("wdt init result: %d\n", result);
 // SerialMonitorPrint = true;
 xTaskCreatePinnedToCore(serialTask, "SerialTask", 8192, &xHandle_SerialTask, 2, NULL, 1);
 xTaskCreate(encoderButtonTask, "EncoderButtonTask", 8192, NULL, 1, NULL);
 xTaskCreate(bluetoothTask, "BluetoothTask", 10000, NULL, 2, &xHandle_BluetoothTask);
 xTaskCreate(ledBlinkTask, "LED Blink Task", 8192, NULL, 1, NULL);
}

Since the update when i don't uncomment the esp_task_wdt_reset(); in the bluetoothtask I get this error:

E (9355) task_wdt: esp_task_wdt_reset(705): task not found
E (9368) task_wdt: esp_task_wdt_reset(705): task not found
E (9380) task_wdt: esp_task_wdt_reset(705): task not found
E (9390) task_wdt: esp_task_wdt_reset(705): task not found
E (9400) task_wdt: esp_task_wdt_reset(705): task not found
...
E (10369) task_wdt: esp_task_wdt_reset(705): task not found

So there are two problems that the esp_task_wdt_reset() doesn't work any more, and that I get this error.

BTW i used the esp_task_wdt_init and esp_task_wdt_reset because i had some random freezes in the program, if you have any other ways to solve these issues ?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /