- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi sir,
I'm using psoc creator 4.2 run demo: CE218136_EINK_CapSense_RTOS ,everything is ok if uart component is disable.
When i enable uart component and #define UART_DEBUG_ENABLE (true),code will loop in vTaskStartScheduler() ,
how can i makesure this issue,please help to check,thanks.
Best Regards,
Leo
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi LeoLiu_3670906,
There is a small issue in the code example. InitDebugPrintf() function is not called from the application that initializes the task Task_Debug and queue debugMessageQ. Add the following line of code in main() and the code worked fine.
main()
{
...
..
DebugPrintfInit();
InitDebugPrintf(); /*Add this line*/
/* Start the RTOS scheduler. This function should never return */
vTaskStartScheduler();
...
}
Let us know if this works for you.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi LeoLiu_3670906,
There is a small issue in the code example. InitDebugPrintf() function is not called from the application that initializes the task Task_Debug and queue debugMessageQ. Add the following line of code in main() and the code worked fine.
main()
{
...
..
DebugPrintfInit();
InitDebugPrintf(); /*Add this line*/
/* Start the RTOS scheduler. This function should never return */
vTaskStartScheduler();
...
}
Let us know if this works for you.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bragadeesh,
It works fine,thanks.
Best Regards,
Leo