Visible to Intel only — GUID: qwn1689840912376
Ixiasoft
1.2.2.1.1. Adding Nios® V/m Processor Intel® FPGA IP
1.2.2.1.2. Adding On-Chip Memory II (RAM or ROM) Intel® FPGA IP
1.2.2.1.3. Adding JTAG UART Intel® FPGA IP
1.2.2.1.4. Adding Reset Release Intel® FPGA IP
1.2.2.1.5. Connect Interfaces and Signals
1.2.2.1.6. Clear System Warnings and Errors
1.2.2.1.7. Configuring the Reset Vector of the Nios® V Processor
1.2.2.1.8. Saving and Generating System HDL
Visible to Intel only — GUID: qwn1689840912376
Ixiasoft
1.2.3.2. Creating an Application Project File
Application Project (app) provides the software application for Nios® V/m processor system.
- In <Working directory>/software/app folder, create a C source code. Name it as hello.c.
- In hello.c, copy and paste the Hello World application code below
#include <stdio.h> #include <unistd.h> void looper() { for (int i = 0; i < 1000; ++i) { printf("Hello world, this is the Nios V/m cpu checking in %d...\n", i); } } int main() { looper(); usleep(1000000); printf("Bye world!\n"); fflush(stdout); return 0; }
- Launch the Nios V Command Shell.
- Execute the command below to generate an application CMakeLists.txt.
$ niosv-app --bsp-dir=software/bsp --app-dir=software/app \ --srcs=software/app/hello.c --elf-name=hello.elf
Figure 27. Generated APP Files