Learn with SHAKTI

Using Arty-7 100T with SHAKTI


STEP 1: Prerequisites


Note: Please ensure SHAKTI C Class is programmed onto the Arty-7 100t board

1. Install the required packages.

If you face any error while running any command, Please refer FAQ section.

2. Please ensure SHAKTI toolchain is installed successfully.

3. Please connect Arty-7 100t board to the system using the microUSB cable.

Board connected to system

STEP 2: Compile and Build


1. Move inside the spiking folder and update it.

2. In the spiking folder, Run the below command to compile example.S for SHAKTI. example.S is the assembly file created in earlier Compile and Build section.


STEP 3: Debugging


The Arty-7 100T board is programmed with SHAKTI C class SoC. Please ensure Arty-7 100T board is connected to the the Host PC.

  • TERMINAL 1: Open a serial port in this terminal, Here the output of the program is displayed.

    Note: "/dev/ttyUSB0" - ttyUSB means "USB serial port adapter" and the "0" ( "0" or "1" or "2") is the USB device number to which the board is connected and 19200 is the default baud rate.

  • TERMINAL 2: Open a new terminal and move to spiking folder. Here, run OpenOCD with the ftdi.cfg.

  • TERMINAL 3: Open a new terminal and move to spiking folder. Now start the gdb debugging session by running below command. What are the most used RISC-V GDB Commands?

    Also, Learn how to debug an ASM program using objdump and RISC-V GDB!