Want FreeRtos for the Samd51? Use this other repository https://github.com/BriscoeTech/Arduino-FreeRTOS-SAMD51
Sparkfun Samd21 Mini Sparkfun Samd21 Dev Adafruit Feather M0 Atmel Xplained Samd21
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