Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

Hello World project without return message

Altera_Forum
Honored Contributor II
1,565 Views

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
0 Kudos
10 Replies
Altera_Forum
Honored Contributor II
742 Views

Do you have a jtag uart and is it defined as standard output?

0 Kudos
Altera_Forum
Honored Contributor II
742 Views

How to define the jtag uart as a standard output? 

I've include a jtag uart in my system.
0 Kudos
Altera_Forum
Honored Contributor II
742 Views

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!
0 Kudos
Altera_Forum
Honored Contributor II
742 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
742 Views

If you have any idea, please tell me! 

Thanks again everyone!
0 Kudos
Altera_Forum
Honored Contributor II
742 Views

The problem is fixed now!

0 Kudos
Altera_Forum
Honored Contributor II
742 Views

How did you fix it?

0 Kudos
Altera_Forum
Honored Contributor II
742 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
742 Views

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!
0 Kudos
Altera_Forum
Honored Contributor II
742 Views

 

--- 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?
0 Kudos
Reply