Altera_Forum
Honored Contributor
8 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># include <io.h># include <system.h># include <string.h>
int main()
{
unsigned long *THE_ADDRESS;
THE_ADDRESS = (unsigned long *)ADDRESS_SPAN_EXTENDER_0_WINDOWED_SLAVE_BASE;
printf("Debugging");
printf("Reading from Address: %p", THE_ADDRESS);
IOWR_32DIRECT(THE_ADDRESS,0, 0);
int i = 0;
printf("value: %x", IORD_32DIRECT(THE_ADDRESS, i));
while(i<20)
{
printf("value: %x", IORD_32DIRECT(THE_ADDRESS, i));
i++;
}
return 0;
}
The above code only prints: Debugging Has anyone else gotten this issue before? Thank you so much, Vinny