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

Comparing FreeRTOS heap implementations

Because FreeRTOS targets such a wide range of MCUs and applications, it ships with five different dynamic allocation schemes, all of which are implemented with a heap. The different heap implementations allow different levels of heap functionality. They are included in the portable/MemMang directory as heap_1.c, heap_2.c, heap_3.c, heap_4.c, and heap_5.c.

A note on memory pools: Many other RTOSes include memory pools as an implementation for dynamic memory allocation. A memory pool achieves dynamic allocation by only allocating and freeing fixed-size blocks. By fixing the block size, the problem of fragmentation is avoided in memory-constrained environments. The downside to memory pools is that the ...
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