Physics graduate student here. Currently I'm using the Red Pitaya as a multi-channel analyzer for radiation detectors. I've had great success with it so far. The RP may replace other, more expensive equipment pending its performance in the field. The goal for our lab is to fly the RP with a detector on a balloon to take measurements of cosmic radiation.
The problem I can not seem to get past is the stability of the rc.local file. I'm able to write code to run my C script continuously. It works perfectly at first, but at some random time later the Red Pitaya freezes at boot up. This is indicated by LED-1 turning off and LEDs 2-4 freezing. Also, connection via ssh is refused.
Here's my code for rc.local :
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
cat /opt/redpitaya/fpga/fpga_0.94.bit > /dev/xdevcfg
while true; do
/RedPitaya/MCA/trigger/RUN
done
exit 0
My RP is on the latest stable image(redpitaya_ubuntu_15-04-44_23-feb-2017.img). Editing rc.local back into it's original form does not solve the problem. I have to completely wipe and re-install the SD card image.
Any help or suggestions would be greatly appreciated