Page 1 of 1

Segmentation fault after making librp.so

Posted: Mon Apr 10, 2017 3:40 pm
by Matija
Hi,

I've been trying to make a new API and a new librp.so file, but I kept receiving "Segmentation fault" error. I then tried to see if the original API files work, so here is what I did:

- I copied the entire git repository to root folder of Red Pitaya
- I ran the command "make api"
- I copied the new librp.so file from api/lib to /opt/redpitaya/lib
- I ran "make digital_led_blink"
- I then ran "./digital_led_blink" but received "Segmentation fault" error

Has anyone else had this problem with the original API, completely unchanged?

I also tried to make the API on a different Ubuntu device and then transfer the librp.so file to Red Pitaya, but I received a different error:
/opt/redpitaya/lib/librp.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'led' failed
make: *** [led] Error 1

Is it something I forgot, or maybe the versions are mismatched (in opt folder, it says it's 0.96)?

Thanks in advance

Matija

Re: Segmentation fault after making librp.so

Posted: Mon Apr 10, 2017 9:27 pm
by redpitaya
Hi Matija,
please try to use our latest OS http://redpitaya.readthedocs.io/en/late ... card.html and follow instructions from our developers guide: http://redpitaya.readthedocs.io/en/late ... /comC.html
thank you, Red Pitaya team

Re: Segmentation fault after making librp.so

Posted: Tue Apr 11, 2017 10:36 am
by Matija
Thank you very much, I updated the OS and there is no error now.

Re: Segmentation fault after making librp.so

Posted: Mon Oct 30, 2017 4:24 pm
by mishra.kanhaiya91
I am facing the same error as when I rebuild the api, my OS is updated to latest version 0.96.86. Please let me know what should do to rebuild the api.