AOpen MK86-L Guide de l'utilisateur Page 21

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 157
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 20
Tutorials
Debugging the Project
The Nios II IDE contains an integrated debugger that allows you to debug your program on
Nios II hardware or on the instruction set simulator (ISS) . This topic introduces the main
features of the debugger. The tutorial assumes you are working with a Nios II hardware
target. The process is the same for debugging on the ISS, with the exception of steps that
involve the target hardware.
Note: When debugging on Nios II hardware, the FPGA on the development board must be
configured with your project's associated SOPC Builder system. If you configured the
FPGA before running your project in the previous tutorial step, you do not have to
reconfigure the FPGA again unless you reset the board or remove power. If you need to
configure the FPGA, follow the steps to configure the hardware in the Running the Project
tutorial topic.
These sections describe how to control the flow of a debug session.
To display line numbers next to each line of code in the editor:
1. Click Preferences on the Window menu.
2. Expand General.
3. Expand Editors.
4. Click Text Editors.
5. Turn on Show line numbers.
6. Click OK.
To download executable code and start the debugger:
1. Right-click the tutorial project in the Nios II C/C++ Projects view, point to Debug
As, and then click
Nios II Hardware.
2. If the Confirm Perspective Switch dialog box appears, click Yes.
After a moment, you see the main() function of the Count Binary design in the editor.
There is a blue arrow next to the first line of code, as shown below, indicating that
execution is stopped on this line. Note that the exact line numbers might vary on your
screen.
17
Vue de la page 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 156 157

Commentaires sur ces manuels

Pas de commentaire