Boss lady
Boss lady
DIIDevHeads IoT Integration Server
Created by Boss lady on 6/5/2024 in #middleware-and-os
How to identify and resolve the issue causing the task to miss its deadline?
@Enthernet Code Thanks I tried it out void vTaskMonitor(void *pvParameters) { TickType_t xLastDeadline = 0; for (;;) { vTaskDelay(pdMS_TO_TICKS(1000)); TickType_t xCurrentTime = xTaskGetTickCount(); if (xCurrentTime > xLastDeadline) { printf("Task missed its deadline\n"); } xLastDeadline = xCurrentTime + pdMS_TO_TICKS(1000); } }
5 replies