cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

I am using the PSoC 5 cy8ckit-059. I am trying to compare string but it shows always a garbage value to hterm when i am comparing a char then it seems fine. I want to compare something like ifdefined uart2 in attached file.

0 Likes
Reply
1 Solution
Honored Contributor II

Attached is a modified demo of sending a string message to PSoC5. Last compiled with Creator 4.2.

The Rx message sent to PSoC must be terminated with LF, CR or both.

/odissey1

The KIT-059 annotation library can be downloaded here:

Annotation library for CY8CKIT-059 Prototyping Kit

UART_Rx_01a.png.png

UART_Rx_schm_01a.png.png

UART_Rx_RealTerm_01a.png

View solution in original post

4 Replies
Honored Contributor II

Please upload whole project:

1. Build->Clean. 2. File->Create Archive Bundle->Minimal. 3. In created zip file gelete folder 'Generated files' to save space.

/odissey1

0 Likes
Reply
Anonymous
Not applicable

Thanks. Here is complete project . I want to compare something like this: if ((strcmp(uart_string, "help") == 0) || (strcmp(uart_string, "Help") == 0))  {  defined in UART2

0 Likes
Reply
Honored Contributor II

Attached is a modified demo of sending a string message to PSoC5. Last compiled with Creator 4.2.

The Rx message sent to PSoC must be terminated with LF, CR or both.

/odissey1

The KIT-059 annotation library can be downloaded here:

Annotation library for CY8CKIT-059 Prototyping Kit

UART_Rx_01a.png.png

UART_Rx_schm_01a.png.png

UART_Rx_RealTerm_01a.png

View solution in original post

Anonymous
Not applicable

Thanks

0 Likes
Reply