Forum Discussion
Altera_Forum
Honored Contributor
14 years agobasic question
Hi, Well it looks very stupid question for many people, but I am new to nios. I have used count binary templet to test my board and it is working fine.I can see the leds blinking and I can see the...
Altera_Forum
Honored Contributor
14 years agoHi,
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