Want FreeRtos for the Samd21? Use this other repository https://github.com/BriscoeTech/Arduino-FreeRTOS-SAMD21
Adafruit Metro M4 Express
This linker setting change will allow all microcontroller malloc/free/realloc/calloc operations to be managed by FreeRtos. This could eliminate memory corruption issues on c++ intensive projects, or projects that might be fragmenting the heap.
Implementation Guide can be found in: "wrapping memory functions\platform.local.txt"
Special thanks to these people for your help and guidance, reference material, and hard work on contributions.
Richard Barry, for creating FreeRtos and sharing it with the world
www.FreeRtos.org
trlafleur
drewfish
baekgaard
sergiotomasello
godario
TomasRoj
feilipu
greiman