Forum Discussion
Altera_Forum
Honored Contributor
9 years agoNios II Console only displays the first printf statement
As the title says, I am trying to print some values, and the Nios II Console only prints the first printf statement. Here's my code so far: #include <stdio.h># include <alt_types.h># inc...
Altera_Forum
Honored Contributor
9 years agoTry adding a newline to the end of each printf format string?
Whats probably happening is that your second printf, the string is being placed into the buffer, but then your "IOWR_32DIRECT(THE_ADDRESS,0,0)" is hanging the software, so the second printf text never gets sent up to the console. Adding a newline to each line, you should get each line shown before the software continues execution with the next statement.