- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I create a task, it seems to run just fine. But as soon as I call any blocking function (vTaskDelay), the app never seems to re-enter the Ready state. I have configTICK_RATE_HZ is defined in FreeRTOSConfig.h. Is there anything else I can look at?
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The best way is to make a simple blinking led task.... turn off all of the others... then run it.
Then turn task at a time back on.
I always start from a simple freertos template that I have built into Modus Toolbox ... I program it to make sure that everything is working... then I start adding tasks back.
https://iotexpert.com/modustoolbox-2-2-template-project-freertos-ntshell/
ARH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sunny, Can you let us know the value you provided to the vTaskDelay function?
There is a hook to the tick interrupt you can use that to verify if the tick interrupt is occurring (configUSE_TICK_HOOK ). Check FreeRTOS documentation for details.
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am passing 50 as value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can call the function xTaskGetTickCount().
https://www.freertos.org/a00021.html#xTaskGetTickCount
It returns how many ticks it passed since starting the scheduler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The best way is to make a simple blinking led task.... turn off all of the others... then run it.
Then turn task at a time back on.
I always start from a simple freertos template that I have built into Modus Toolbox ... I program it to make sure that everything is working... then I start adding tasks back.
https://iotexpert.com/modustoolbox-2-2-template-project-freertos-ntshell/
ARH