Nios® V Embedded Processor Design Handbook

ID 726952
Date 12/04/2023
Public
Document Table of Contents

6.1.1. Steps to Debug Nios® V/c Processor

You can utilize Nios® V/m processor to debug Nios® V/c processor:
  1. Start the processor system using non-pipelined Nios® V/m processor.
    1. Turn on Enable Debug
    2. Turn off Enable Pipelining in CPU
  2. Ensure there is no interrupt or exception in the Nios® V/m processor system. Do not connect to the Interrupt Receiver on the processor.
    Note: To implement a JTAG UART Intel® FPGA IP without interrupt, you can enable the small JTAG UART driver in the BSP Editor to apply polled operation. Ensure that the compile definition (ALTERA_AVALON_JTAG_UART_SMALL) is found in the ttoolchain.cmake.
    Figure 104.  Nios® V/m Processor System with No Interrupt
    Figure 105. Enable Small JTAG UART Driver in BSP Editor
  3. Develop the Nios® V processor software application in baremetal ( Intel® HAL).
  4. Program the design SOF file onto the Intel® FPGA device.
  5. Download the application ELF file into the Nios® V processor system.
  6. Perform design verification and debugging with the Nios® V/m processor core.
  7. Verify that the Nios® V/m processor is working successfully, then replace the Nios® V/m processor with Nios® V/c processor.
    1. Right-click the Nios® V/m processor, click Replace > Nios V/c Processor Intel FPGA IP.
    2. Reconfigure the same assignment in the IP Parameter Editor.
    3. Address any possible errors.
    4. Click Sync System Infos.
    Figure 106.  Nios® V/c Processor Replacement
  8. Implement booting Nios® V/c processor from On-Chip Memory.
  9. Recreate the application BSP, APP, and ELF.
  10. Program the memory-initialized design SOF file onto the Intel® FPGA device.
  11. Power cycle the Intel® FPGA device.