Learn with SHAKTI
Frequently Faced Issues
Issue 1:
sudo $(which openocd) -f spike.cfg
shakti-tools/bin/openocd: error while loading shared libraries: libftdi1.so.2: cannot open shared object file: No such file or directory
Solution: If the above error comes execute the following commands:
sudo apt-get -y install libftdi1
sudo apt-get -y install libftdi1-2
Note: libFTDI is an open source library to communicate to FTDI's chips, including the popular bitbang mode.
Issue 2:
$(which spike) --rbb-port=9824 -m0x10010000:0x20000 bootload.elf $(which pk)
Listening for remote bitbang connection on port 9824.
couldn't open ELF program: bootload.elf!
Solution: Please run "make" inside the spiking folder which generates the .elf files
Issue 3:
sudo miniterm.py /dev/ttyUSB1 19200
sudo: miniterm.py: command not found
Solution:
1. You need to download the pyserial package, If this download fails click here.
2. Follow the below commands:
*Move into the folder into which pyserial is downloaded, then extract using tar command.
tar -zxvf pyserial-2.6.tar.gz
cd pyserial-2.6
python setup.py build
sudo python setup.py install
Issue 4:
sudo miniterm.py /dev/ttyUSB1 19200
could not open port '/dev/ttyUSB1': [Errno 2] could not open port /dev/ttyUSB1:
[Errno 2] No such file or directory: '/dev/ttyUSB1'
Solution: USB1 is not a valid port in this case, Press tab once to automatically get the port to which the board is connected or Press tab twice to see the available options
Issue 5:
Library not found error while compiling or executing program
/shakti-tools-5681b983df67a86dc9e032e28827167d9bb0c1b5/bin/../libexec/gcc/riscv
64-unknown-elf/7.2.0/cc1: error while loading shared libraries: libmpfr.so.4:
cannot open shared object file: No such file or directory
Solution: Create a soft link for libmpfr
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpfr.so.6 /usr/lib/x86_64-linux-gnu/libmpfr.so.4