Question

I got a Nios 2 project that is supposed to be able to run as hardware on my FPGA but how?

I've built it and I can run it in the simulator:

enter image description here

I've chose the uart0 in the BSP editor

enter image description here

But then when I run it as Nios hardware nothing happens

enter image description here

Can you tell me how it should be done?

It works to load the FPGA with a system in Quartus II programmer:

enter image description here

Update

The instructor has answered.

It's possible to run the OS on the DE2 board but the program will execute quickly. The > output comes on the serial port uart0, i.e. the 9-polar D-sub contact. Since the program is running so quickly it can be wise to disconnect the USB-to-serial > adapter from the DE2 (but not from the PC) when the number 2333 has been consumed. > Otherwise the buffer in putty will be full so that the output from the beginning of the run is lost.

Was it helpful?

Solution

I've read your other thread, about Hello World on Nios II and nowhere do you mention that you configure the FPGA for running the NIOS II, so maybe that's the problem?

I quote from Nios II handbook (see page 2-5 and 2-6): "Configuring the FPGA. Before you can run your software, you must ensure that the correct hardware design is running on the FPGA. To configure the FPGA, you use the Quartus® II Programmer. In the Windows operating system, you start the Quartus II Programmer from the Nios II SBT for Eclipse, through the Nios II menu. In the Linux operating system, you start Quartus II Programmer from the Quartus II software. The project directory for your hardware design contains an SRAM Object File (.sof) along with the .sopcinfo file. The .sof file contains the hardware design to be programmed in the FPGA."

Also se the Qartus II FPGA programmer handbook for info on how to program your FPGA.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top