cancel
Showing results for 
Search instead for 
Did you mean: 

Creating thread in STM32 code

darla14
Senior
Posted on March 16, 2016 at 14:51

can we use a thread without using a FreeRTOS or any RTOS in STM32 code.Any references to it.

thanks in advance !

rgds

Rp

#!stm32 #stm32 #schedulder #can
1 REPLY 1
AvaTar
Lead
Posted on March 16, 2016 at 15:43

> can we use a thread without using a FreeRTOS or any RTOS in STM32 code.Any references to it.

 

No.

''Thread'' or ''Task'' are merely metaphors for quasi-concurrent execution in the context of an OS. Threads/task are objects handled by the OS, thus require an OS.

But yes, you can achieve such a virtually concurrent execution by other means. The management of those ''threads'' (creation/termination, scheduling,  resource allocation/arbitration, communication) is then totally up to you.

Most commonly, it starts with a periodic timer interrupt.