Bird
0
0

You want to use heap_5 to manage two separate memory regions: one 10KB and another 20KB. How should you configure heap_5 to handle this?

hard📝 Application Q8 of 15
FreeRTOS - Memory Management
You want to use heap_5 to manage two separate memory regions: one 10KB and another 20KB. How should you configure heap_5 to handle this?
AUse heap_4 instead because heap_5 supports only one region
BUse heap_5 without any configuration; it auto-detects regions
CCombine both regions into one large block and define a single HeapRegion_t
DDefine two HeapRegion_t entries with start addresses and sizes for each region
Step-by-Step Solution
Solution:
  1. Step 1: Understand heap_5 configuration

    heap_5 requires defining an array of HeapRegion_t structures specifying start address and size for each memory region.
  2. Step 2: Apply to two regions

    Define two HeapRegion_t entries, one for 10KB region and one for 20KB region, to manage both separately.
  3. Final Answer:

    Define two HeapRegion_t entries with start addresses and sizes for each region -> Option D
  4. Quick Check:

    heap_5 needs explicit region array [OK]
Quick Trick: heap_5 needs explicit HeapRegion_t array for regions [OK]
Common Mistakes:
  • Assuming heap_5 auto-detects memory regions
  • Combining regions into one block incorrectly
  • Choosing heap_4 which supports only one region

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes