2.2.1. Building Hardware Design in Platform Designer Overview
2.2.2. Building Hardware Design in Platform Designer — Manual Instantiation
2.2.3. Building Hardware Design in Platform Designer — Board-Aware Flow
2.2.4. Building Hardware Design in Platform Designer — Configurable Example Design
2.2.5. Building Software Design with Ashling* RiscFree* IDE for Altera® FPGAs
2.2.2.2.1. Adding Nios® V/m Processor IP
2.2.2.2.2. Adding On-Chip Memory II (RAM or ROM) IP
2.2.2.2.3. Adding JTAG UART IP
2.2.2.2.4. Adding Reset Release IP
2.2.2.2.5. Connect Interfaces and Signals
2.2.2.2.6. Clear System Warnings and Errors
2.2.2.2.7. Configuring the Reset Vector of the Nios® V Processor
2.2.2.2.8. Saving and Generating System HDL
2.2.3.2.1. Adding Nios® V/m Processor IP
2.2.3.2.2. Adding On-Chip Memory (RAM or ROM) IP
2.2.3.2.3. Adding JTAG UART IP
2.2.3.2.4. Adding System ID Peripheral IP
2.2.3.2.5. Adding Reset Release IP
2.2.3.2.6. Connect Interfaces and Signals
2.2.3.2.7. Clear System Warnings and Errors
2.2.3.2.8. Saving and Generating System HDL
2.4.2. Downloading the Software ELF File
- Ensure that the development kit is successfully configured with the processor system.
- Launch the Ashling* RiscFree* IDE for Altera® FPGAs.
- Navigate to Run > Run Configurations.
- In Run Configuration window, double click Ashling RISC-V Hardware Debugging and name it as ELF_download.
Figure 82. Run Configuration
- In the Main tab, make the following settings:
- Project: app
- C/C++ Application: <Working directory>/software/app/build/Debug/hello.elf
Figure 83. Main Tab - In the Debugger tab, make the following settings:
- Debug Probe Configuration:
- Debug probe: Agilex™ development kit
- Transport type: JTAG
- JTAG frequency: 16 MHz
- Target Configuration: Click Auto-detect Scan Chain to list all possible cores. Select the appropriate Device/TAP and Nios V Processor Core.
Figure 84. Debugger Tab - Debug Probe Configuration:
- Click Apply and Run. Ashling* RiscFree* IDE for Altera® FPGAs prints the following message in its Console.
Figure 85. ELF_download Message (Console tab)
Alternatively, you can download the software ELF file using CLI.
- Launch the Nios V Command Shell.
$ niosv-shell
- Execute the command below to download the ELF file.
$ niosv-download <Working directory>/software/app/debug/hello.elf -g -r