ESP-FlexyStepper icon indicating copy to clipboard operation
ESP-FlexyStepper copied to clipboard

[E][esp32-hal-misc.c:94] disableCore0WDT(): Failed to remove Core 0 IDLE task from WDT

Open Voha888 opened this issue 3 years ago • 13 comments

I have the message in console: [E][esp32-hal-misc.c:94] disableCore0WDT(): Failed to remove Core 0 IDLE task from WDT when adding more the one stepper service, but all works fine

I think, we need check disabling watchdog in void ESP_FlexyStepper::startAsService(void)

Voha888 avatar Jan 09 '21 00:01 Voha888

Indeed I never checked this use case of starting multiple services. Feel free to submit a pull request if you have a working solution

pkerspe avatar Jan 09 '21 12:01 pkerspe

This is not a critical check. I thought about adding the following functionality, although I'm not sure if it is in demand: the ability to specify the core on which it will be executed when creating a Task, for example:

stepper.startAsService ();
the task will be created on default core

stepper.startAsService (0); the task will be created on core 0

stepper.startAsService (1); the task will be created on core 1

Voha888 avatar Jan 09 '21 22:01 Voha888

This is a good idea, I will check on that tomorrow, should be easy to implement

pkerspe avatar Jan 09 '21 23:01 pkerspe

If you wish, I can create a pull request with these changes.

Voha888 avatar Jan 10 '21 00:01 Voha888

Yes, Please go ahead, I will review ASAP once I receive the PR

Thanks

pkerspe avatar Jan 10 '21 09:01 pkerspe

#10

Due to my poor knowledge of the English language, I did not add comments to the code. I made two commits. The first one adds the ability to specify the kernel for the background process The second, when creating multiple instances of the process (several stepper motors), removes the message from Serial: [E] [esp32-hal-misc.c: 94] disableCore0WDT (): Failed to remove Core 0 IDLE task from WDT It was not done very nicely, but I did not find a method to check if WDT is disabled or not.

Upd: The third, I replaced xTaskCreatePinnedToCore with xTaskCreateUniversal

Upd: I did a little wrong, instead of a global variable, I should have used a static variable

Voha888 avatar Jan 13 '21 23:01 Voha888

thanks for the updates @Voha888, I will review tonight and merge if all is good

pkerspe avatar Jan 14 '21 10:01 pkerspe

In the examples, I did not find the use of several stepper motors at the same time. When you add the changes, I can create an example using multiple stepper motors on multiple processor cores.

Voha888 avatar Jan 15 '21 21:01 Voha888

Sure can do. I put some comments on your pull request for minor changes to be performed before merging. Maybe you can have a look at it

pkerspe avatar Jan 15 '21 23:01 pkerspe

Thank You! I see you changed the name of my pull request, but I don't see any other fixes. Please tell me where to go to see them?

Voha888 avatar Jan 15 '21 23:01 Voha888

I added some comment on some lines of code that you changed in the pull request

pkerspe avatar Jan 15 '21 23:01 pkerspe

Sorry, but I don`t see any your comments on this link https://github.com/pkerspe/ESP-FlexyStepper/pull/10/files Where have you posted these comments? Give me a link please.

Voha888 avatar Jan 16 '21 05:01 Voha888

Sorry, my bad, I forgot to submit the review.you should see it now

pkerspe avatar Jan 16 '21 10:01 pkerspe