Skip to main content
darla14
Associate III
March 16, 2016
Question

Creating thread in STM32 code

  • March 16, 2016
  • 1 reply
  • 1911 views
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
This topic has been closed for replies.

1 reply

AvaTar
Senior III
March 16, 2016
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.