-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following the Series with Arduino Uno and FreeRTOS #1
Comments
Awesome! Thank you for this helpful info. I have not played with the Uno port of FreeRTOS, so I'm glad to hear it works. From what I've found, the I'm not sure how the Uno port of FreeRTOS works, so I'm not surprised to hear that |
That was a great tip Shawn, thank you. Calling Strangely calling As I was discovering around, I also found about |
Just a follow-up for future reference. Calling Reminder. This is only true for the Arduino Uno port of FreeRTOS. |
Hello everyone,
Although this repository is built upon ESP32 in particular, I have been following along the YouTube videos with my Arduino Uno and the Arduino port of FreeRTOS library. It's quite informative and entertaining.
As I was experimenting with task scheduling I stumbled upon an issue which I think is related to how the Arduino library is implemented. I thought I should share this in case somebody else faces the same issue.
Even when adopted for Arduino Uno, the solution code for the LED challenge (source) fails to work whenever there's any calls to
vTaskDelay
orvTaskDelete
in the setup function. I believe this is due to implementation differences between libraries, though I'm not so sure.I checked the source code for the Arduino library and it looks like the library is starting the scheduler right after calling the setup function (Source Code). Maybe the setup function is defined as an ordinary function (not as a task) and therefore functions like
vTaskDelay
doesn't work because of that.Anyway, removing the calls for
vTaskDelay
orvTaskDelete
in the setup function resolved my problem.The text was updated successfully, but these errors were encountered: