Hi,
Thank you for your reply,
I am just using scanf or getchar for reading from console.I am getting one error says "undefined refference to scanf".I strongly belive it is not the way to deal with microcontrollers.I have seen my ALT_STDIN_DEV is JTAG_UART in system.h
file.so what I think is I have to use some built in function for altera devices (for example for displaying LEDs there is a function IOWR_ALTERA_AVALON_PIO_DATA( PIO_LED_BASE, dis ); ) . Where can I get information about these functions ? Can you please post me if you have some example programs (any example works on nios ).
sarat