Running system on riscv64-noelv-fpga#

These instructions describe how to run Phoenix-RTOS on the NOEL-V processor configured on the Digilent Arty A7-100T FPGA - riscv64-noelv-fpga target. Note that the build artifacts, including the system image should be provided in the _boot directory. If you have not built the system image yet, please refer to the Building Phoenix-RTOS image section.

Connecting the board#

Connect the board to the computer using 1 micro USB cable that provides power and UART communication.

Loading the Phoenix-RTOS system image#

To load the Phoenix-RTOS system image to the board, you will need to use the GRMON debug monitor.

How to get GRMON
  • Download the GRMON software from the official website.

  • After downloading the archive, extract it and optionally add the grmon binary to the PATH variable.

  • Install Digilent Adept Runtime for debug link connection as described in the GRMON User’s Manual.


Launch the GRMON monitor using the following command:

grmon -digilent

The -digilent parameter specifies the Digilent JTAG adapter.

Load the Phoenix-RTOS system image to the RAM by running the following commands in the GRMON:

load _boot/riscv64-noelv-fpga/sbi-noelv.elf
load -binary _boot/riscv64-noelv-fpga/phoenix.disk 0x08000000

Set entry point of the program:

ep 0x0

Check on which port the board is connected to the computer. To do this, run the following command:

ls -l /dev/serial/by-id

Image

In this case, the serial port to use is /dev/ttyUSB1. Open the terminal emulator and connect to the board using the following command:

picocom -b 115200 --imap lfcrlf /dev/ttyUSB1

To start the Phoenix-RTOS system, execute the following command in the GRMON monitor:

run

Using the Phoenix-RTOS#

After executing the run command, Phoenix-RTOS will be launched and the psh shell command prompt will appear in the terminal.

Image

See also#

  1. Running system on targets

  2. Table of Contents