CE220331 enabling UART/DebugPrintf

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
BRFL_4822626
Level 1
Level 1
First like received First reply posted First question asked

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
6 Replies
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

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

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

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

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

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
lock attach
Attachments are accessible only for community members.

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