GeMRTOS: Multiprocessor RTOS – Reference Design

Step 8: Download the application

The application can be downloaded and started with the following commands:

  • For Nios II:
nios2-download --go -r ./<Application_folder>/<Application_name>.elf --instance=0
  • For Nios V:
niosv-download -g -i 0 <Application_folder>/<Application_name>.elf

Upon execution of this command, the application is downloaded to the system and begins running. If messages are sent to the JTAG UART, the application will pause and wait for a terminal connection to proceed. Therefore, it is necessary to connect as many terminals as there are JTAG UART devices in the system. The following commands are used to establish terminal connections:

  • For Nios II:
cmd.exe /c start nios2-terminal.exe -v --flush --no-quit-on-ctrl-d --instance=<instance>
  • For Nios V:
cmd.exe /c start juart-terminal.exe -v --flush --no-quit-on-ctrl-d --instance=<instance>

Here, <instance> ranges from 0 up to the total number of JTAG UART devices in the system minus 1.

By following these steps, users have full control over the software build process, allowing them to customize and fine-tune each phase of the GeMRTOS multiprocessor application development.