Forum Discussion

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

Hello World not working in NIOS II

I have a Altera EP2C8Q208C8 FPGA and 256MB SDRAM ,50MHz Oscillator, EPC4S Hardware , in order to test the hardware Hello world in NIOS II is being tested. In Quartus 10.1, cpu , SDRAM , JTAG UART , epcs controller ansd some PIO are used. Auto assign base address and Auto assign IRQ are done, SOPC are built successfully . All IC pin connection are done by Pin Planner , and the Quartus are compiled successfully. In Nios II IDE workspace are chosen in project directory and Hello world are selected , under project name system library , stdout and others are selected jtag_uart , Program memory(text) , read only data memory and others SDRAM are used. Under project name right click mouse and select run as NIOS II hardware and let the program runs. In Console the following words are seen but without the words "Hello from Nios II!".

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)

So is there something wrong with my hardware or software problems ?????

4 Replies

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

    I have a problem like this when I first transitioned to a new board. Do you know how to write do PIO pins? If you do I would write minimal code to do something, say flash an LED.

    I recall it having to do with my stdin/stdout/stderr even though I thought everything was set correctly (as I see you do here). If I can remember what caused the mix up I'll be sure to update.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I solved the problem , the input clock to NIOS II cpu should be 100M , if 50M it will not worked !!

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

    It's always stupid little things like that.

    A few weeks ago I booted a prototype with only a big counter and a LED connected to the MSB that didn't run. Found out I had the clock input connected to the spare crystal - which wasn't mounted - and had to use its neighbour. Took me half an hour to figure out...

    Happy new year!

    Ben