FreeRTOS - Debugging and MonitoringWhich FreeRTOS API call correctly creates a task?AxTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL);BvTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL);CxTaskCreate(TaskFunction, 1000, "Task1", NULL, 2, NULL);DxTaskCreate(TaskFunction, "Task1", NULL, 1000, 2, NULL);Check Answer
Step-by-Step SolutionSolution:Step 1: Recall FreeRTOS task creation syntaxThe correct syntax is xTaskCreate(TaskFunction, "Name", stackSize, parameters, priority, taskHandle).Step 2: Match options with correct parameter orderxTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL); matches the correct order and types.Final Answer:xTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL); -> Option AQuick Check:Correct API call = xTaskCreate(TaskFunction, "Task1", 1000, NULL, 2, NULL); [OK]Quick Trick: xTaskCreate returns status; remember parameter order [OK]Common Mistakes:Mixing up parameter orderUsing void return type function instead of xTaskCreatePassing NULL for stack size
Master "Debugging and Monitoring" in FreeRTOS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More FreeRTOS Quizzes Debugging and Monitoring - vTaskList() for task status dump - Quiz 14medium Debugging and Monitoring - Why runtime monitoring catches RTOS bugs - Quiz 4medium Debugging and Monitoring - vTaskList() for task status dump - Quiz 11easy Design Patterns for RTOS - Event-driven architecture - Quiz 12easy Interrupt Management - ISR-safe API functions (FromISR suffix) - Quiz 4medium Interrupt Management - ISR-safe API functions (FromISR suffix) - Quiz 12easy Memory Management - Memory usage monitoring - Quiz 8hard Memory Management - Why memory management prevents runtime crashes - Quiz 12easy Memory Management - Memory usage monitoring - Quiz 12easy Task Notifications - ISR-to-task notification pattern - Quiz 14medium