Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

5.3.5.8. Running the Advanced Boot Copier Example

To run the advanced boot copier example on your development board, perform the following step:

  • After the flash programmer completes, in a Nios® II command shell, type the following command to reset the Nios® II processor:
    nios2-download -r -g 
    
    //Press ENTER

The boot loader and the test application both print status messages to the JTAG UART if it is enabled. If the JTAG UART and SYS_CLK_TIMER are initialized in the bsp/alt_sys_init.c file, and USING_JTAG_UART remains at value 1 in the <project> /boot_copier_sw/app/advanced_boot_copier/advanced_boot_copier.c file, you can view these messages.

To see the messages, perform the following step:

  • In a Nios® II command shell, run the nios2-terminal utility by typing the following command:
    nios2-terminal 
    
    //Press ENTER
Note: If nios2-terminal cannot connect to the JTAG UART with the default settings, run it with the --help option for a listing of the command line switches that might be needed.
Note: If your nios2-terminal displays truncated output from the boot copier, followed by the boot image output, press the CPU Reset button on your development board to repeat the boot process and view the full output.
Figure 228. Advanced Boot Copier OutputThe expected output if you boot CFI flash memory from on-chip RAM.
If the boot copier runs successfully, you see output from nios2-terminal, as shown in the figure above.
Note: Your output differs slightly if booting from external memory or booting EPCS/EPCQ flash.