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
3.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 137. Run Configuration
- In the Main tab, make the following settings:
- Project: hal_app
- C/C++ Application: <Working directory>/software/hal_app/build/helloworld.elf
Figure 138. Main Tab - In the Debugger tab, make the following settings:
- Debug Probe Configuration:
- Debug probe: USB-Blaster II
- 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 139. Debugger Tab - Debug Probe Configuration:
- Click Apply and Run. Ashling* RiscFree* IDE for Altera® FPGAs prints the following message in its Console.
Figure 140. 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/hal_app/debug/helloworld.elf -g -r