--- Quote Start ---
Thanks for your concern. First, I download my software through UART (set stdin,stdout,stderr to UART) because I have rs232 cable. I read altera document, it said that if we use rs232 cable,we have to set the stdin,stdout and stderr to UART. Is it right?
--- Quote End ---
AFAIK Eclipse can't load the software through a UART. And you would need a special bootloader on the Nios system to accept the software application through a UART. You are more probably transferring the program through by JTAG through a USB blaster. Setting stdin, stdout and stderr to the UART needs to be done if you want to use a RS232 interface for text input and output. With those settings the printf() from your code will display text on the RS232 interface, and scanf() will read also form the RS232.
--- Quote Start ---
Second, I have two sections in Flash (EPCS and CFI). I write .sof file first using EPCS. Then, I write .zip file using CFI. What do you mean by will fail with a verify error?
--- Quote End ---
By sections I meant the memory zones used in the link script, such as .text, .rodata etc... Those need to be placed in RAM because when you dowload the application with Eclipse, those are the addresses that it will use to write the software to. If you place .text in flash for example, Eclipse will try to upload the software directly to the flash, which it isn't designed to do. The data will not be written, and when Eclipse verifies the written data it will report a verify error. This won't happen if you put all the sections into RAM in the BSP editor.
--- Quote Start ---
I get to run the system using Run As Nios II Hardware. The LCD display "Price Checker" instead of " Shopping Chart Price Checker". It seem like the system not completely run. I download the software through UART. I attach the c code, hope you can give advise. Thanks in advance
--- Quote End ---
I'm sorry it is difficult to see where the problem could come from just by looking at the code. You should try and debug the application. (either by using the debugger, or by adding a few printf's to the code to show you what it is doing).