Thanks, Nils! That explains a lot. I do wonder, can I change other parameters to be write-able easily? I tried changing the fpga_update and read_only values of several other parameters to 1 and 0, respectively, in main.c (function block after L30), but when I recompile the application and load it onto the redpitaya I can still only change "freq_range", so my changes don't seem to be enough to successfully write to these other parameters.
So I guess, either a) changing the values of fpga_update/read_only for different parameters is the right way to do this and I'm just not updating the code correctly, or b) I need to change something else in the code in addition to those settings.
If it's a), this is how I'm updating the code:
I make my changes to the file on my local computer and save them. I cd to the RedPitaya directory and do
Code: Select all
source /opt/Xilinx/Vivado/2013.3/settings64.sh
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
make -C Applications
I then zip the spectrum directory
and load it onto the redpitaya:
Code: Select all
scp spectrum_modified.zip root@<red_pitaya_ip_address>
ssh onto the redpitaya and do
Code: Select all
rw
cd /opt/www/apps
unzip spectrum_modified.zip
killall nginx
ro
nginx -p /opt/www
if this all looks right, do you have any suggestions for things I might need to do in addition to be able to write to these other parameters? I'd like to add some fprintf statements to debug, but I'm not sure where I could see that output - does it get piped to the HTTP response (which is what I would see) or does it get lost somewhere before then?
Thanks,
amalagon