Forum Discussion

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

Problem with Hello World NIOS program

I have recently purchased a DE-0 board. I followed some of the tutorials to add a NIOS processor, DRAM, and JTAG interface using Qsys to my project.

I have used Eclipse to build load the hello world template onto the chip. However I cannot find where the hello world message is displayed in Eclipse.

The console just has this:

Using cable "USB-Blaster ", device 1, instance 0x00
Processor is already paused
Initializing CPU cache (if present)
OK
Downloading 00800000 ( 0%)
Downloading 00806F60 (76%)
Downloaded 28KB in 1.2s (23.3KB/s)
Verifying 00800000 ( 0%)
Verifying 00806F60 (76%)
Verified OK                         
Starting processor at address 0x008001B4

How do I get the stdout output?

2 Replies

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

    Please post your question only once.

    By JTAG Interface do you mean JTAG Uart?

    First check that the UART is used for stdin and stdout in your BSP settings. Then when running your application as Nios II Hardware, go into the Target Connection Tab and check that the jtag uart is selected in the "Byte Stream Devices" list and that 'Disable Nios II console view' isn't checked. The console should then open automatically once the software has been downloaded and verified.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks, I got it working.

    I was following the documentation and right click project -> run as but I needed to click down arrow next to green arrow button and select the hardware configuration option.