Nios II Classic Software Developer’S Handbook

Nios II Classic Software Developer’S Handbook

Nios II Classic Software Developer’s Handbook Subscribe NII5V2 101 Innovation Drive 2015.05.14 San Jose, CA 95134 Send Feedback www.altera.com TOC-2 Contents Overview of Embedded Development................................................................ 1-1 Installing Windows* Subsystem for Linux* (WSL) on Windows*......................................................... 1-1 Prerequisites for Understanding the Embedded Design Suite...............................................................1-1 Finding Nios II EDS Files............................................................................................................................1-2 Software Development Environment........................................................................................................ 1-2 EDS Development Flows.............................................................................................................................1-2 SBT Development Flow...................................................................................................................1-2 Programs....................................................................................................................................................... 1-3 Makefiles and the SBT..................................................................................................................... 1-3 Software Project Types.....................................................................................................................1-4 Intel FPGA Software Packages for Embedded Systems.......................................................................... 1-5 Embedded Design Examples...................................................................................................................... 1-5 Hardware Examples......................................................................................................................... 1-5 Software Examples........................................................................................................................... 1-6 Third-Party Embedded Tools Support...................................................................................................... 1-6 Additional Information...............................................................................................................................1-6 Getting Started with the Graphical User Interface.............................................2-1 Installing Eclipse IDE into EDS..................................................................................................................2-1 Getting Started with Nios II Software in Eclipse..................................................................................... 2-2 The Nios II SBT for Eclipse Workbench........................................................................................2-2 Creating a Project.............................................................................................................................2-3 Navigating the Project..................................................................................................................... 2-4 Building the Project......................................................................................................................... 2-5 Configuring the FPGA.................................................................................................................... 2-5 Running the Project on Nios II Hardware....................................................................................2-5 Debugging the Project on Nios II Hardware................................................................................2-6 Creating a Simple BSP................................................................................................................... 2-11 Makefiles and the SBT for Eclipse............................................................................................................2-12 Eclipse Source Management.........................................................................................................2-12 User Source Management............................................................................................................. 2-13 BSP Source Management.............................................................................................................. 2-14 Using the BSP Editor................................................................................................................................. 2-14 Tcl Scripting and the BSP Editor..................................................................................................2-15 Starting the BSP Editor..................................................................................................................2-15 The BSP Editor Screen Layout......................................................................................................2-15 The Command Area...................................................................................................................... 2-15 The Console Area...........................................................................................................................2-19 Exporting a Tcl Script.................................................................................................................... 2-19 Creating a New BSP.......................................................................................................................2-20 BSP Validation Errors....................................................................................................................2-21 Run Configurations in the SBT for Eclipse.............................................................................................2-21 Altera Corporation TOC-3 Opening the Run Configuration Dialog Box............................................................................. 2-21 The Project Tab...............................................................................................................................2-21 The Target Connection Tab.......................................................................................................... 2-22 The Debugger Tab..........................................................................................................................2-22 Optimizing Project Build Time................................................................................................................2-22 Importing a Command-Line Project.......................................................................................................2-22 Nios II Command-Line Projects..................................................................................................2-22 Importing through the Import Wizard....................................................................................... 2-22 Road Map........................................................................................................................................2-23 Import a Command-Line C/C++ Application...........................................................................2-23 Import a Supporting Project.........................................................................................................2-24 User-Managed Source Files.......................................................................................................... 2-24 Packaging a Library for Reuse..................................................................................................................2-25 Creating the User Library............................................................................................................. 2-25 Using the Library............................................................................................................................2-25 Creating a Software Package.....................................................................................................................2-25 Programming Flash in Intel FPGA Embedded Systems.......................................................................2-28 Starting the Flash Programmer....................................................................................................2-28 Creating a Flash Programmer Settings File................................................................................2-28 The Flash Programmer Screen Layout........................................................................................ 2-29 The Command Area...................................................................................................................... 2-29 The Console Area...........................................................................................................................2-30 Saving a Flash Programmer Settings File....................................................................................2-30 Flash Programmer Options.......................................................................................................... 2-30 Creating Memory Initialization Files...................................................................................................... 2-31 Generate Memory Initialization Files......................................................................................... 2-31 Generate Memory Initialization Files by the Legacy Method..................................................2-31 Memory Initialization Files for User-Defined Memories.........................................................2-32

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    480 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us