cancel
Showing results for 
Search instead for 
Did you mean: 

Code Examples

New Contributor II

I am trying to get the DebugPrintf function working in CE220331 example project, and do not get anything via Tera Term.

I have enabled #define UART_DEBUG_ENABLE    (true) in uart_debug.h .

Any hints would help.

Thanks

Brian

0 Likes
Reply
6 Replies
Honored Contributor

Brian,

With #define UART_DEBUG_ENABLE    (true)

Does your project compile without error?

Len

Len
Engineering is an Art. The Art of Compromise."
0 Likes
Reply
New Contributor II

As I noted "I have enabled #define UART_DEBUG_ENABLE    (true) in uart_debug.h .".

I also enabled the UART debug feature, right-click the UART_DEBUG Component in the TopDesign schematic and select “Enable”.

<Does your project compile without error?>

No errors, it all works except, the UART DebugPrintf outputs nothing.

0 Likes
Reply
Honored Contributor

Brian,

Check to make sure the following GPIO connections are made for UART_DEBUG:

If the pins are wrong, the Tx output will not go to the KitProg on the 062 Kit.

Len

Len
Engineering is an Art. The Art of Compromise."
0 Likes
Reply
Honored Contributor

Brian,

I have a question:  Where did you find the FreeRTOS source and header files for the PSoC6?

It is not included in the CE220331 example as indicated in the project instructions.

Len

Len
Engineering is an Art. The Art of Compromise."
0 Likes
Reply
Honored Contributor

Brian,

I found out how to reference the FreeRTOS.  

I compiled the project with #define UART_DEBUG_ENABLE    (true) .

I do get terminal output.  

Any feedback?

Len

Len
Engineering is an Art. The Art of Compromise."
0 Likes
Reply
Moderator
Moderator

Brian,

You can also try the points mentioned in the attached text document. Also, please ensure you have set the proper baud rate in the terminal app that you are using.

Thanks

Ganesh

0 Likes
Reply
Top labels