Visible to Intel only — GUID: wji1694142407684
Ixiasoft
4.2.2.2. Software Component
The software development flow starts with Board Support Package (BSP) and application (APP) creation. Altera recommends you to create a software folder with app and bsp sub-folders inside your Quartus® Prime project directory. Nios® II processor software also practice similar file organization.
Figure 11. Nios® Processor Software Project File Directory
Note: Generated Nios® II processor software files are not compatible with the Nios® V processor. You need to regenerate the Nios® V processor BSP and APP project.
Nios® V Processor BSP Regeneration
- To open the BSP Editor, go to Platform Design > File > New BSP.
- Set the BSP Setting File as settings.bsp. Select the destination folder to the BSP folder.
- Select the design QSYS file in the System file (qsys or sopcinfo) field, then click Create.
Figure 12. Nios® V Processor BSP Creation
- Apply the same Nios® II processor BSP settings into the Nios® V processor BSP settings. Refer to Intel HAL Settings to replicate the BSP Settings.
Figure 13. Nios® V BSP Settings
- Select the appropriate memory region for exception vector in BSP Editor > Linker Script
Figure 14. Linker Script
- Click Generate BSP to create a new BSP project for Nios® V processor.
Nios® V Processor APP Generation
- Copy the Nios® II application source codes into the APP folder.
- Start the Nios V Command Shell.
- Run niosv-app command to create an APP CMakeLists.txt file.
niosv-app -b=<BSP directory> -a=<APP directory> -s=<Nios II application source codes>
- Run CMake executable.
cmake -B <APP directory>/build -S <APP directory> -G “Unix Makefiles”
- Run Make executable. After successful Make, the Nios® V processor software ELF file is located in the <APP directory>/build folder.
make -C <APP directory>/build
- Download the software ELF file into the Nios® V processor system.
niosv-download <Nios V ELF file>
- Open JTAG UART terminal to print the Hello World message.
juart-terminal
Alternatively, you can use Ashling* RiscFree* IDE for Intel® FPGAs for Nios® V processor software development. After the BSP creation and APP creation, you can import both folder into the workspace of Ashling* RiscFree* IDE for Intel® FPGAs to continue.