Page 1 of 1

APIGainSet: Permission denied

Posted: Fri Apr 16, 2021 5:06 pm
by radiationman
I have a shell script that sets up my pulse aquisition C program.

Code: Select all

# First, we must specify the FPGA image

cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg

# Link libraries to set gain

export LD_LIBRARY_PATH=/opt/redpitaya/lib

# Tell the API that gain is set for HV (+/- 20V Jumpers)

/Examples/C/APIGainSet
Everything works fine until the last line, which spits this out in terminal

Code: Select all

$ /usr/local/myscript.sh: line 14: /Examples/C/APIGainSet: Permission denied
Two questions arise,

1. Other than setting the physical jumpers to HV, is this API step necessary?

2. How does one give permission access to set gain?

Re: APIGainSet: Permission denied

Posted: Fri Apr 23, 2021 12:03 pm
by redpitaya
Is the issue still manifesting after you manually
update the Red Pitaya OS to the latest BETA OS by using this guide:
https://www.youtube.com/watch?v=Qq_YRv2nk3c
?

Re: APIGainSet: Permission denied

Posted: Fri May 14, 2021 6:05 pm
by radiationman
Issue resolved after giving full file permissions to user.