Which timer to use for AVR preemptive multitasking

Solved it! I set the priority of PendSV to the same priority as SysTick and it works now. I think there was stack overflow because of nested exceptions, or something like that...

I ended up using Timer0 COMPA. Please take a look at the library if interested glutio/Taskfun (github.com). Thanks for all the feedback!

Both ways at once would collide and at best be slow, at worst crash only after a long time wasted to be deemd as The Worst Time, a corollary to Murphy's Law. You did sacrifice a chip earlier!