cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

Contributor

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

0 Likes
Reply
1 Solution
Moderator
Moderator

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

Regards,
Bragadeesh

View solution in original post

0 Likes
Reply
2 Replies
Moderator
Moderator

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

Regards,
Bragadeesh

View solution in original post

0 Likes
Reply
Contributor

Hi Bragadeesh,

It works fine,thanks.

Best Regards,

Leo

0 Likes
Reply
Top labels