arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.23k stars 224 forks source link

seems not to run with Teensy 4.0 #77

Closed webline closed 4 years ago

webline commented 5 years ago

no tasks get executed on a Teensy 4.0 with a Cortex-M7 processor. The same code works fine on my Teensy 3.2 or 3.6

arkhipenko commented 5 years ago

No idea. I don't have Teensy 4. As you stated, it ran ok on T 3.5 for me. I need to read up about T4...

Could it be that it puts the chip to sleep permanently? Did you try without TASK_IDLE_SLEEP?

webline commented 5 years ago

the fast Teensy 4 would be a great platform for a complex task driven system and I love your lib! Your tip is great: if I remove

define _TASK_SLEEP_ON_IDLE_RUN

the tasks get executed again - great!

GitMoDu commented 5 years ago

Seems like someone needs to implement SLEEP_ON_IDLE for the new Teensy.

arkhipenko commented 5 years ago

"Someone" needs to procure a new Teensy first... Unless seonebelse wants to give it a try...

arkhipenko commented 4 years ago

Any updates on how to properly put Teensy 4 to sleep?

arkhipenko commented 4 years ago

Closing this since I have no Teensy 4.0. Anyone wants to contribute - please feel free.