Forum Discussion
Altera_Forum
Honored Contributor
17 years agoEasy nios design with buttons
Hello, I am a newbie with Quartus II and Nios II and I have been trying to do an easy nios design in order to light on a led when pressing a button. I am working on the Altera Cyclone III EP3C2...
Altera_Forum
Honored Contributor
17 years agoHello,
Maybe it's the problem of alt_main(), unlike main(), some driver initialization should be added manually. # include "sys/alt_sys_init.h" in alt_main(): alt_sys_init(); alt_io_redirect (ALT_STDOUT, ALT_STDIN, ALT_STDERR); I haven't checked myself it yet. but you could try using main() instead if you have enough RAM Yue