Forum Discussion
Altera_Forum
Honored Contributor
13 years ago[URGENT] How to receive a string from UART ?
Hi! I am only able to receive the last char from the UART and was wondering how can I receive a string from UART HyperTerminal -> UART -> Terminal 0 (Nios II Console) I am using Nios II C ...
Altera_Forum
Honored Contributor
13 years agoAre you beginner in C program ?
Comparing strings in C is not so easy as comparing integers. Keep in mind that a string in C is terminated by a NULL character '\0' You can compare a suite of characters. Before comparing, just try to simply print the received strings. The output may be buffered. So "printf" seems to not work. You can "force" the print by adding a function that looks like "flush()". could you please tell us what you exactly want to do ?