Preemptive multitasking for mega and uno (OS48)

Hello,

I am using your framework to control five tasks where actually Task 1 to 3 doing nothing as just saying they are alive. Task 4 is changing some pictures on OLED modules and task 5 is a monitoring task to send print and printMem information to serial.

Basically it works but after a while the task fall asleep and don't wake up anymore :frowning:

The only bahaviour I could see is that the first task dying is task 4 controling my OLEDs normally in the directly after a OS48_NO_CS_BLOCK.
Then tasks 1 and 3 start dying where task 3 strangly wakes up sporadically until it is completely dead.

The only tasks running perfectly is task 2 who is printing "I am Task 4" on Serial and the monitoring task giving me information about the tasks.

Unfotunately based on the information I see I don't understand why this is happening.

Has anybody an idea how I can prevent this behavour?

Thanks for your advice and help!