I am currently trying to establish the serial communication between NIOS II and Host PC through JTAG UART. I found some material talked about using nois2-terminal command.
Is there anyone can share some material about how to write C programs and configure the SOPC?
Take a look at this tutorial for getting started with NIOS2:
these should help you with designing NIOS2 systems