Segmentation fault after making librp.so

Applications, development tools, FPGA, C, WEB
Post Reply
Matija
Posts: 3
Joined: Mon Apr 10, 2017 1:36 pm

Segmentation fault after making librp.so

Post by Matija » Mon Apr 10, 2017 3:40 pm

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

User avatar
redpitaya
Site Admin
Posts: 880
Joined: Wed Mar 26, 2014 7:04 pm

Re: Segmentation fault after making librp.so

Post by redpitaya » Mon Apr 10, 2017 9:27 pm

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

Matija
Posts: 3
Joined: Mon Apr 10, 2017 1:36 pm

Re: Segmentation fault after making librp.so

Post by Matija » Tue Apr 11, 2017 10:36 am

Thank you very much, I updated the OS and there is no error now.

mishra.kanhaiya91
Posts: 6
Joined: Mon Aug 21, 2017 6:56 am

Re: Segmentation fault after making librp.so

Post by mishra.kanhaiya91 » Mon Oct 30, 2017 4:24 pm

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.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 23 guests