Getting Started With STM32 and Nucleo Part 3: FreeRTOS - How To Run Multiple Threads w/ CMSIS-RTOS

DigiKey
DigiKey
150.4 هزار بار بازدید - 5 سال پیش - On this STM32 video, we’re
On this STM32 video, we’re going to introduce FreeRTOS and show how to run multiple threads using the CMSIS-RTOS interface.

A real-time operating system (RTOS) is extremely useful for running concurrent tasks within the same program and offering a level of code portability. An RTOS differs from a general purpose operating system (e.g. Windows, macOS, Linux) by offering a guarantee to meet strict timing deadlines. As a result, you can find RTOSes used in many advanced microcontroller and embedded systems applications, such as cars, interplanetary rovers, rockets, and pacemakers.

In the video, we’ll demonstrate using FreeRTOS from the STM32CubeIDE. We’ll use the graphical interface to configure FreeRTOS and create 2 tasks (also known as “threads”). From there, we’ll write some simple code in those two different tasks to blink an LED. The catch is that they will try to blink the same LED! This should create some interesting effects on our STM32 Nucleo board.

The STM32 series is based on the ARM Cortex architectures. Specifically, we’ll be looking at the STM32 Arm Cortex-M microcontrollers. To make life easier, we’ll be using STMicroelectronics’ official Nucleo development boards (the Nucleo-L476RG in particular).

WRITTEN TUTORIAL

If you would like to see the steps performed in this video in written form along with the code, please see the tutorial here: https://www.digikey.com/en/maker/vide...

ADDITIONAL RESOURCES

Related Projects https://www.digikey.com/maker/search-...

Download STM32CubeIDE: https://www.st.com/en/development-too...

STM32 HAL documentation (click on family from graphic and then Resources tab) : https://www.st.com/en/embedded-softwa...

FreeRTOS documentation: https://www.freertos.org/

CMSIS-RTOS documentation: http://www.keil.com/pack/doc/CMSIS/RT...

Maker.io: https://www.digikey.com/en/maker
Digi-Key’s Blog - TheCircuit: https://www.digikey.com/en/blog
Connect with Digi-Key on Facebook: Facebook: digikey.electronics
And follow us on Twitter: Twitter: digikey
5 سال پیش در تاریخ 1398/06/29 منتشر شده است.
150,486 بـار بازدید شده
... بیشتر