Skip to Content
Hands-On RTOS with Microcontrollers
book

Hands-On RTOS with Microcontrollers

by Brian Amos
May 2020
Intermediate to advanced
496 pages
13h 54m
English
Packt Publishing
Content preview from Hands-On RTOS with Microcontrollers

Static and dynamic allocation of FreeRTOS primitives

Details on the mechanics of creating tasks were covered in Chapter 7, The FreeRTOS Scheduler. Here, we will only focus on the differences in where the memory is coming from and what its lifetime is. This will help illuminate the implications of choosing different allocation schemes.

Memory for tasks can either be allocated dynamically or statically. Dynamic allocation allows the memory used by the task to be returned by calling vTaskDelete() if the task no longer needs to run (see Chapter 7, The FreeRTOS Scheduler, for details). Dynamic allocation can occur at any point in the program, whereas static allocation occurs before the program starts. The static variants of FreeRTOS API calls ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers - Second Edition

Hands-On RTOS with Microcontrollers - Second Edition

Jim Yuill, Penn Linder

Publisher Resources

ISBN: 9781838826734Supplemental Content