Project / Debug views

Project views and perspectives

Console View

The Console view displays program output as well as output from the build tools. The Console view is connected to stdin, stdout, and stderr of the compilation process. An example of Console view output:

example image

The Console view only represents programs that are running on the host, such as compilers and linkers. Programs running on an external target will display their output in other views, such as a terminal emulator window, depending on the type of target.

Register View

The register view helps developers examine RISC-V registers values during debug sessions. This is an example of Register view:

example image

Problems View

If any errors or warnings are encountered during the compilation process will be shown on the Problem View

example image

Executables View

The Executable view lists down all executable output built using XploR Studio, for example:

example image

Terminal View

The Terminal View helps users connect to and interact with the console of different targets:

example image

Users can use this Terminal view to open the shell/bash console of the host machine, remote connection, or serial connection to the target platform. For example, with a serial terminal, users can specify additional parameters such as which device to connect, baud rate, and similar.

example image

Peripheral Registers View

In the complex application where the peripherals are configured with the RISC-V cores, users can examine the peripherals’ status such as control register values, and data register values via the Peripheral Registers View. The Peripherals Registers View lists all peripherals available in the device hardware description .SVD file provided by the silicon vendor. To active Peripheral registers view, select Window > Preferences.

example image

Then select C/C++ > Debug section Click Peripheral Registers Page. On this page:

  • Architecture: Select RISC-V
  • Vendor: Select QEMU
  • Platform: Select Spike or E31mc or E31

The peripheral registers will be listed on the right-hand side of the page:

example image

Users can select registers or all registers to check, then click Apply and Close button.

example image

The Peripheral register views will show all registers and their status.

example image

Adding Peripheral files to Peripheral Registers View

  • Create a new folder within the XPLOR_HOME directory.

  • Include the .metadata file in the newly created folder, using the following sample content:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
            architecture="RISCV"> <!-- architecture name -->
               name="FPGA"> <!-- vendor name -->
                  path="/path_to_svd_file/neorv32.xml"> <!-- The file path must exist -->
  • Proceed to restart the XploR Studio application. After the restart, navigate to the Peripheral Registers Page to access the newly available Architecture/Vendor/Platform options.

Debugger console View

The Debugger Console shows gdb debug information. The is an example of Console view output:

example image

Note: If any of view disappears, users can always restore by clicking *Window > Show View/NAME_OF_VIEW.

example image