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

PSoC™ 5, 3 & 1 Forum Discussions

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
1 Solution

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
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

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
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

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

Anonymous
Not applicable

Thanks

0 Likes