Bird
0
0

Which FreeRTOS configuration macro enables Method 2 stack overflow detection?

easy📝 Syntax Q3 of 15
FreeRTOS - Memory Management
Which FreeRTOS configuration macro enables Method 2 stack overflow detection?
A#define configCHECK_FOR_STACK_OVERFLOW 1
B#define configUSE_STACK_OVERFLOW_DETECTION 2
C#define configENABLE_STACK_OVERFLOW 2
D#define configCHECK_FOR_STACK_OVERFLOW 2
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct macro for Method 2

    FreeRTOS uses configCHECK_FOR_STACK_OVERFLOW set to 2 to enable Method 2 detection.
  2. Step 2: Verify options

    #define configCHECK_FOR_STACK_OVERFLOW 2 matches the correct macro and value; others are incorrect or invalid macros.
  3. Final Answer:

    #define configCHECK_FOR_STACK_OVERFLOW 2 -> Option D
  4. Quick Check:

    Method 2 enabled by configCHECK_FOR_STACK_OVERFLOW = 2 [OK]
Quick Trick: Method 2 uses configCHECK_FOR_STACK_OVERFLOW set to 2 [OK]
Common Mistakes:
  • Using 1 instead of 2 for Method 2
  • Using wrong macro names
  • Confusing enabling macros with disabling ones

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FreeRTOS Quizzes