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++
12746 Discussions

A minimal "from scratch" on your own hardware example?

Altera_Forum
Honored Contributor II
1,005 Views

Short version of the question:  

Where can I find a tutorial on starting from custom hardware to getting the most basic "hello world" NIOS running? 

 

Long version of the question: 

 

I'm probably one good Google search away from what I want but I can't seem to find it. 

 

I have a Cyclone II based board we built in house. The board is up and running and doing useful non-processor things. When we were laying out the board hardware, we knew we probably wanted some kind of soft processor. At the time, we were using the FPGA tools built into Altium so we copied the SDRAM, flash, and SRAM hardware from the Altium "Nanoboard 2000" (had to remove the link since this is my first post). I've gotten our hardware to run the simple webserver examples from Altium so I know the hardware is good. 

 

In the time since we laid out the hardware and now, we've migrated to native Quartus tools for our behavioral VHDL for the better test and debug capabilities. Now I want to instantiate a NIOS based soft processor in our hardware to make sure that the hardware is compatible with the NIOS environment. 

 

So what I am trying to do is start with a minimal NIOS system with just on-chip RAM and a JTAG UART and get a "hello world" going. If I can do that, then I can add my hardware components one at a time and test. But I keep running into simple problems. All the examples I can find assume you have working and known good hardware and BSP. I want an example of creating a BSP from scratch to test hardware. Any suggestions? 

 

David 

 

Edit: Murphy's law, you always find what you are looking for right after you post a detailed question on the forum. I think this is what I am loooking for altera.com/literature/tt/tt_nios2_hardware_tutorial.pdf
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
331 Views

In the NIOS workspace, select File-New. You are given the option of creating a new Application, BSP, or Application AND BSP. In the option of creating the BSP, it will ask for the location of the sopc file describing the current version of your NIOS processor. Then it creates the BSP for you. 

 

If you change the processor, there is a right-click option on the application that allows you to regenerate the BSP to match your updated processor.
0 Kudos
Reply