Visible to Intel only — GUID: jmz1494843499783
Ixiasoft
1.2.5.2. Rebuilding Software and Initializing the JESD204B Link
Perform the following steps to rebuild Nios® II software, re-execute the software C code and initialize the JESD204B link:
- After device programming, navigate to the Tools menu and select Nios® II Software Build Tools for Eclipse.
- In the Select a workspace dialog box, navigate to the software workspace, <project directory>/software and click OK.
- On the File menu, navigate to New and click Nios® II Application and BSP From Template.
- In the Nios II Application and BSP From Template window, enter the following information:
- SOPC Information File Name:
- Intel® Quartus® Prime Pro Edition: <project directory>/jesd204b_ed_qsys/jesd204b_ed_qsys.sopcinfo
- Intel® Quartus® Prime Standard Edition: <project directory>/jesd204b_ed_qsys.sopcinfo
- Project name: jesd204b_nios2_ed
Note: Project name is user customizable.
- User default location: Checked
- Templates: Blank Project
- SOPC Information File Name:
- Click Next. Verify that the default BSP name is jesd204b_nios2_ed_bsp and click Finish. The Nios® II application project (jesd204b_nios2_ed) and BSP (jesd204b_nios2_ed_bsp) appears in the Project Explorer window.
Note: Whenever you regenerate the jesd204b_ed_qsys.qsys, you must regenerate the BSP files. In the Project Explorer window, right click the jesd204b_nios2_ed_bsp project, navigate to Nios II and click Generate BSP. This regenerates the BSP files based on your most current jesd204b_ed_qsys.sopcinfo.
- Import the design example source (*.c) and header (*.h) files into the application directory. In the Project Explorer window, right click on the jesd204b_nios2_ed project and click Import.
- In the Import window, select General > File System as the import source. Click Next.
- Browse to the <project directory>/software/source directory and click OK. Check the source box on the left panel. Verify that the list of source and header files are as follows:
- altera_jesd204_regs.h
- functions.h
- macros.h
- macros.c
- main.h
- main.c
- Verify that the destination folder is jesd204b_nios2_ed. Click Finish. All the source and header files should be imported into the jesd204b_nios2_ed project directory.
- Right click the jesd204b_nios2_ed_bsp project, navigate to Nios II and click BSP Editor. Under the Drivers tab, check the enable_small_driver box of the altera_avalon_jtag_uart_driver group and click Generate. This setting allows the compilation to proceed without connecting the interrupt ports of JTAG UART module. After the BSP files have been generated, click Exit.
- Expand the jesd204b_nios2_ed application project in the Project Explorer window and verify that folder contains all the source and header files.
- To compile the C code, navigate to the Project menu and select Build all. The compiler now compiles the C code into executable code.
- To download the executable code to the development board, right click on the jesd204b_nios2_ed in Project Explorer window and select Run As and then Nios II Hardware.
- Refer to Table 3 to change SOURCEDEST_INIT parameter if you want to test other supported pattern. Change the LOOPBACK_INIT parameter to 1 if you want test internal serial loopback. Next, repeat 12 to 13.