My first question is the following: does FreeRTOS port depends on the
SoC (e.g. SAMB11) or only the processor (arm cortex M0) ? My
understanding leads me to the second one.
Then you are correct :o) FreeRTOS does not rely on anything outside of
the Cortex-M core unless you are going to write a port specific low
power tickless mode, in which case you need a clock source which is
external to the core.
Next, what are the steps to adapt an example to my board ?
The following links might help:
In your case adapting the SAMD20 demo might be your best option.
Currently, I’m able to compile FreeRTOS sources in my project. I’ve
first created only one task, and after starting the scheduler, the
task was processing correctly (even though I observed that it doesn’t
work if timer use is enabled in FreeRTOSConfig.h). I am now trying to
create two tasks and check that they both process. The problem is
that only one task is executed. I suspect an issue with the systick
timer but I don’t know how to fix it.
Have you installed the interrupt handlers? See the “special note for
ARM Cortex-M users” in bullet point #1 on this page of the FAQ: