Closed viggi1000 closed 2 years ago
Are you using Arduino IDE or PlatformIO? Please send your source - I can't help you without it. You can DM me to arkhipenko@hotmail.com
I can confirm the same. It occurs with the basic examples in the examples folder so no special source code is required.
I am using PlatformIO.
I just changed example #27 to run with nRF52840-DK and it compiled without errors. That is why I need to see your Platform IO project to be able to tell where the issue is. Scheduler_example27_PlatformIO.zip
Same source as your .zip, different target board but nothing different in platformio.ini that would make a difference.
However, digging into the matter it seems that the 'Scheduler' variable of TaskScheduler conflicts with the Scheduler variable of SchedulerRTOS from FreeRTOS given that this lies beneath the surface of this platform.
Maybe that helps?
The difference is that I don't get the error and I have used TS with FreeRTOS previously without conflicts... I would appreciate if you send the versions of your PlatformIO components and a zipped project that fails. arkhipenko@hotmail.com
No, sorry, this is the best I can do. My project is extremely sensitive and I have moved off this scheduler due to time constraints.
OK. Sorry about that. I cannot fix what I cannot reproduce. Good luck with your project!
Right...here's the real culprit for what it's worth:
https://www.arduino.cc/en/Reference/Scheduler
This is enabled/compiled so not sure how to turn it off. However, it seems a localized problem.
It's not RTOS. It's a separate scheduler that should not be used with TS. Of course there is a conflict.
Hi,
I have been receiving type error while running any of the examples with the nRF5240 controller running the arduino core. While this library states that it has been tested with nRF52832 controller, I am not sure if this error is due to the different model number?
Here is the compile error from arduino: