Forum Discussion

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

Hello World project without return message

Hello,

I built a SOPC with NIOS II/f, on-chip RAM, pll, and sysid.

NIOS II/f operates at 100MHz.

And when I trying to run hello world as NIOS II Hardware,

the following messages show in the console window:

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

Pausing target processor: OK

Reading System ID at address 0x00081020: verified

Initializing CPU cache (if present)

OK

Downloading 00040000 ( 0%)

Downloaded 42KB in 0.7s (60.0KB/s)

Verifying 00040000 ( 0%)

Verified OK

Leaving target processor paused

the "Hello from Nios II!" is not appeared.

Is it normal?

What should I do to fix this problem?

Thanks for every trying to help me!

PS. No error or warning occurs in building & runing the hello world project

10 Replies

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

    How to define the jtag uart as a standard output?

    I've include a jtag uart in my system.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dear Daixiwen:

    I also check the jtag_uart_input_stream.dat and output_stream.dat

    There are only 00000000 in input_stream.dat and nothing in output_stream.dat

    Thanks for reply!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    #define ALT_SYSTEM_NAME "unnamed"# define ALT_CPU_NAME "cpu"# define ALT_CPU_ARCHITECTURE "altera_nios2"# define ALT_DEVICE_FAMILY "STRATIXIII"# define ALT_STDIN "/dev/jtag_uart_0"# define ALT_STDIN_TYPE "altera_avalon_jtag_uart"# define ALT_STDIN_BASE 0x00081018# define ALT_STDIN_DEV jtag_uart_0# define ALT_STDIN_PRESENT# define ALT_STDOUT "/dev/jtag_uart_0"# define ALT_STDOUT_TYPE "altera_avalon_jtag_uart"# define ALT_STDOUT_BASE 0x00081018# define ALT_STDOUT_DEV jtag_uart_0# define ALT_STDOUT_PRESENT# define ALT_STDERR "/dev/jtag_uart_0"# define ALT_STDERR_TYPE "altera_avalon_jtag_uart"# define ALT_STDERR_BASE 0x00081018# define ALT_STDERR_DEV jtag_uart_0# define ALT_STDERR_PRESENT# define ALT_CPU_FREQ 100000000# define ALT_IRQ_BASE NULL# define ALT_LEGACY_INTERRUPT_API_PRESENT

    --- Quote End ---

    I've reference other project. And modify the system.h based on the corresponding parameter.

    And pass compilation, runing well.But still no "Hello XXXX" in console window.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Just rename the jtag_uart_0 to jtag_uart and rebuild the system.

    Set N2 terminal communication device.

    After these steps, the hello world fully works.

    Sorry for wasting your time in this stupid bug.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It isn't time wasted, civing the solution could help others that have the same problem.

    I find it strange though, from the system.h extract that you gave, it seems that the tools identified correctly the name of your uart... Anyway I'm glad it is working now!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    It isn't time wasted, civing the solution could help others that have the same problem.

    I find it strange though, from the system.h extract that you gave, it seems that the tools identified correctly the name of your uart... Anyway I'm glad it is working now!

    --- Quote End ---

    hi everyone I met this problem,can any one give me some advice?