Hardware design considerations nios ii multiprocessor systems are split into two main categories, those that share resources, and those in which. For example, to run the program on a target board, rightclick the. Download quartus ii web edition and nios ii processors from altera. How to contact altera for the most uptodate information about altera products, go to the. After completing this document, you will have the knowledge to perform the following. Nios ii ide integrated development environment leading edge software development tool target connections. Nios ii integrated development environment, nios ii. You do not need a license if you will only be developing software using the nios ii ide.
For this purposes altera developed some specific version of eclipse, named nios ii software build tools for eclipse. Iptc2h nios to generate nontimelimited programming files and flash programming files. Start the trace32 software to load the debugger firmware. Nios ii system development flow f the software development tutorial and complete ide reference are included in the nios ii ide help system.
You might receive warnings similar to the following in the quartus ii software when compiling a vhdl nios ii system containing the jtag debug module. May 2008 nios ii software developers handbook alteraprovided development tools each of the nios ii ide commandline tools launches the nios ii ide in the background, without displaying the gui. All software development tasks can be accomplished within the nios ii ide, including editing, building, and debugging programs. For a complete reference on th e nios ii ide, start the ide and open the nios ii ide help system. How to use the debug tools in the nios ii development tools for eclipse.
In addition, you also need the altera univerisity program ip cores, which provide the additional support for components on the de2 and altera debug client, which provides the debugging environment for the niosii processors. Note that the code is verified in memory before it is executed. This design flow is best for users who require more control over the build process, need customized scripting, and dont want the ide to manage the makefiles. Nios ii ide projects are groups of files treated as a unit, containing source code, makefiles, object files, libraries, and other related files. I thought this would be a good opportunity to learn how to use the debugger. Connect the components to the nios ii processor, and the jtag debug module. This handbook does not document how to use the nios ii integrated development environment ide. How to start a project in the nios ii development tools for eclipse, downloading a custom quartus ii system on to the. In nios ii, create a c project nios ii application and bsp from template using the sopc file generated by the sopc builder.
Introduction to the altera nios ii soft processor this tutorial presents an introduction to alteras nios. Replace the code in the template with a c program in this case an led flasher program. You can accomplish all software development tasks within the nios ii ide. Nios ii software developers handbook alteraprovided. Nios ii software developers handbook cornell university. Embedded gnu development tools compiler, debugger, ide. In the next dialog box, fill in the requested information as shown in figure. In the nios ii ide, when i try to debug nios ii hw, it appears that i connect to the debugger, as i get the following messages. Gnu tool chain the nios ii compiler tool chain is based on the standard gnu c compiler gcc. Provides extremely fast downloads and responsiveness.
You can find more information on the nios ii ide debugger in the nios ii ide online help. Performing software debug on multiprocessor systems is made easier with the nios ii ide, allowing users to launch and stop software debug sessions on different processors with a single operation. Example design the example design you build in this tutorial demonstrates a small nios ii system for. Debug mode is used by software debugging tools to implement features such as breakpoints and watch. For more information, refer to the nios ii ide online help system. Using the debug tools in the nios ii build tools for. Using nios ii ide, developers can edit, compile, download, debug, and program onboard flash from a single, integrated development tool. Using the nios ii integrated development environment ide, you create and debug three software projects, one for each processor in the system. A full desciption of the nios ii processor is provided in the nios ii processor reference handbook, which. Supports placing breakpoints in, and stepping through, interrupt service routines. My first nios ii software design nios ii sbt for eclipse build flow when you create a new project, the nios ii sbt for eclipse creates the following new.
Targetmon, an advanced debug monitor, allows the debugger to communicate with the target board via ethernet. Problems debugging simple program in nios ii ide intel. The handbook is a complete reference for developing software for the nios ii processor. You cannot use these utilities while the ide is running, beca use only one instance of the nios ii ide. Preliminary information 101 innovation drive san jose, ca 954. The nios ii ide provides a consistent development platform that works for all nios ii processor systems. There is a little yellow triangle with an exclamation point and the code on that line is underlined in yellow. The ide debugger allows you to start and stop the processor, step through code, set breakpoints, and analyze variables as the program executes. I right click on the project and select debug as nios ii hardware. Nios ii classic software developers handbook subscribe send feedback nii5v2 2015. The debugger connects to a wide range of targets, including the fpga hardware via jtag cable, the nios ii instruction.
To create a new project, select file dnew dproject. The debugger resets the nios ii processor, and it executes the downloaded code. The nios ii integrated development environment ide is a graphical software development tool for the nios ii family of embedded processors. Nios ii incorporates many enhancements over the original nios architecture, making it more suitable for a wider range of embedded computing applications, from digital signal processing dsp to systemcontrol.
My design includes a nios ii processor with the jtag debug module set to level 1. When you complete this tutorial, you will understand the nios ii system development flow, and you will be able to create your own custom nios ii system. Altera introduces nios ii integrated development environment. After completing this document, yo u will have the knowledge to perform. Nios ii software build tools for eclipse, debugger, drivers, and utilities go to the nios ii embedded software tools page for complete details nios ii ctohardware c2h compiler evaluation nichestack tcpip stacknios ii edition evaluation. When building the nios ii ide first builds the system. Nios ii hardware development tutorial ryerson university. Quartus ii programmer the quartus ii programmer is part of the quartus ii software, however the nios ii ide can. Nios ii ide the nios ii integrated development environment. May 2007 nios ii software developers handbook nios ii integrated development environment figure 27. To open the nios ii ide help system, click help contents on the help menu.
To see the tutorials, click nios ii ide help in the contents pane, and then click tutorials. This will rebuild the software project to create an uptodate executable and then download the code into memory on the ced1z hardware. The nios ii integrated development environment ide can be used to verify designs running on development or custom boards using its built in debugger. The nios ii software development environment provided by intel consists of the following tools. You will be introduced to the embedded software tools available for the nios ii processor as part of the nios ii. Microcos ii rtos the microcos ii rtos is a royaltyfree, sourceavailable operating system from micrium that supports the demanding requirements of rtca do178b standard for avionic equipment. This section lists any issues relating to the nios ii ide. New nios ii family is a versatile embedded processor for. For a complete reference on the nios ii ide, start the ide and open the online help system. Projects contain the resources you need to create, build, run, and debug within the nios ii ide.
Create a new project using the nios ii software build. Nios ii is a 32bit embeddedprocessor architecture designed specifically for the altera family of fieldprogrammable gate array fpga integrated circuits. Nios ii software developers handbook tour of the nios. Hello, in the altera design flow there is socalled softcore processor nios ii, that allows to program fpga as a real processor. Nios ii software build tools for eclipse, debugger, drivers. Nios ii software developers handbook columbia university. Software and hardware break points, data triggers, trace flash memory programming support based on eclipse project 32.
The nios ii ide allows you to run or debug the project either on a target board or the nios ii instruction set simulator iss. The nios ii software development tutorial, available in the nios ii ide by clicking tutorials on the welcome page trace32 documentation installed with the trace32 powerview ide. I am using software tools and hardware as described and a custom board. Note that the code is verified in memory before it is executed the code size and start address might be different than the ones displayed in the above screenshot. Debugging nios ii software using the lauterbach debugger april 2009 an5431. Nios ii debugger and trace 1 19892019 lauterbach gmbh nios ii debugger and trace trace32 online help. Nios ii software developers handbook may 2007 creating a new idemanaged project creating a new idemanaged project the nios ii ide provides a new project wizard that guides you through the steps to create new idemanaged projects. Building projects building nios ii advanced projects using build project invokes make clean all by default nios ii ide advanced projects created with earlier pre5. Nios ii integrated development environment ide, you create and debug three software projects, one for each processor in the system. Ive build the design and programmed the corresponding. Nios ii ide the nios ii integrated development environment ide is the software development graphical user interface gui for the nios ii processor.
627 279 460 409 1325 171 644 243 897 1430 887 33 62 928 487 627 239 457 388 1558 1221 1095 149 807 689 1079 1492 751 440 1052 1277 1344 349 1410 110 45 10 657 1449 668 703 711 730 197 853