Forum Discussion
Altera_Forum
Honored Contributor
15 years agoRun and debug nios project
Hello, I am running a c file on niosii to check if the LEDs are working or not using buttons. This is my C file: #include <stdio.h> // for uart# include <unist...
Altera_Forum
Honored Contributor
15 years agoIMHO your program doesn't even start or it doesn't reach the main() function. You probably have a problem with hw configuration/initialization.
System initialization is performed by the alt_main() function which then calls your application main(). Try this: - compile the syslib in debug mode - search in Altera components for alt_main() function in alt_main.c file. - place a breakpoint at the very beginning of alt_main and start debugging; the step into the code and you should see where it gets stuck. Cris