Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

5.3.8.4. Setting Up the Debugger

To configure the Nios® II debugger for debugging a boot copier:

  1. Import your boot copier project to the Nios® II SBT for Eclipse by performing the following steps:
    1. Open the Nios® II SBT for Eclipse (selecting the workspace folder of your choice).
    2. On the File menu, click Import. The Import dialog box appears.
    3. Expand the Nios® II Software Build Tools Project folder, and select Import Nios II Software Build Tools Project.
    4. Click Next.
    5. Under Project location, browse to your boot copier project folder.
    6. Enter a project name.
    7. Turn off Clean project when importing and Managed project.
    8. Click Finish.
  2. In the Nios® II SBT for Eclipse, highlight the name of the imported bootcopier project, and on the Run menu, click Debug Configurations.
  3. In the Debug configuration dialog box, click the New icon to create a new debug configuration.
  4. Click the Target Connection tab.
  5. In the Download box:
    1. If your boot copier runs from ROM, turn on Start processor, turn on Reset the selected target system, and turn off Download ELF to selected target system.
    2. If your boot copier runs from RAM, turn on Start processor, turn off Reset the selected target system, and turn on Download ELF to selected target system.
  6. Click the Debugger tab.
  7. Turn on Stop on Startup at:main.
  8. Click Apply.
  9. Click the Debug button to start the debugger. Once connected, the debugger breaks at the entry point of the boot copier.