Forum Discussion

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

help me again!

#include <stdio.h>

int main()

{

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

return 0;

}

nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 b

aud

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

then output something that i can not understand.

i use on chip ram and rom

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In this case, the standard output goes on the UART... I suppose you are using the standard example from Altera... is that right?

    the terminal is simply waiting for some data that does not arrive...

    Just a few questions:

    - did you connected a serial cable from the UART of the eval. board to your host PC?

    - are you debugging or running your application? if yopu are debugging it, the nios II IDE stops just before the printf... so no output will arrive until you let the code run...

    bye

    PJ