Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

Printf not displaying characters

I have a problem with the printf function,

# include <stdio.h>

int main()

{

printf("Hello from Nios II!\n");

return 0;

}

that is the simple program that i tried to run, however the printf function did not print the sentence to the console, i am using the nios2 IDE.

does anyone know why it doesnt display the printf sentence?

the console remains as this:

nios2-terminal: connected to hardware target using JTAG UART on cable

nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0

nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

14 Replies