C programming
-
- Posts: 17
- Joined: Thu Nov 03, 2016 12:15 am
C programming
Hi,
I'm a beginner in Red Pitaya and I'm trying to program the device using C. I compiled and executed the examples, but I want to make a project from scratch using the APIs. My question is how doing that in eclipses moon without use remote system?
Thanks in advanced
I'm a beginner in Red Pitaya and I'm trying to program the device using C. I compiled and executed the examples, but I want to make a project from scratch using the APIs. My question is how doing that in eclipses moon without use remote system?
Thanks in advanced
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: C programming
You need
Then you can start adding C-files to the project. To generate a program, you can simply use the "Build" button. Beware that running and debugging the executable can only be done on the Red Pitaya, so for these steps you need the remote setup.
- eclipse CDT
- Vivado installed with SDK
- /lib/librp.so and /include/redpitaya/rp.h from the ecosystem.zip
Then you can start adding C-files to the project. To generate a program, you can simply use the "Build" button. Beware that running and debugging the executable can only be done on the Red Pitaya, so for these steps you need the remote setup.
-
- Posts: 17
- Joined: Thu Nov 03, 2016 12:15 am
Re: C programming
Hi, I have tried several times but always appers these messages of error:
failed to merge target specific data of file /home/usr/Documentos/RedPitaya/Header/librp.so
librp.so uses VFP register arguments, test does not test
How can solve this problem?
failed to merge target specific data of file /home/usr/Documentos/RedPitaya/Header/librp.so
librp.so uses VFP register arguments, test does not test
How can solve this problem?
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: C programming
Where does this message appear and what were you trying to do at the time?
-
- Posts: 17
- Joined: Thu Nov 03, 2016 12:15 am
Re: C programming
I try to build a simple program that is an empty main. These error messages appears in console:
make: *** [test] Error 1
failed to merge target specific data of file /home/usr/Documentos/RedPitaya/Header/librp.so
librp.so uses VFP register arguments, test does not test
Also appers these warning in console:
ld-linux-armhf.so.3, needed by /home/usr/Documentos/RedPitaya/Header/librp.so, not found (try using -rpath or -rpath-link)
make: *** [test] Error 1
failed to merge target specific data of file /home/usr/Documentos/RedPitaya/Header/librp.so
librp.so uses VFP register arguments, test does not test
Also appers these warning in console:
ld-linux-armhf.so.3, needed by /home/usr/Documentos/RedPitaya/Header/librp.so, not found (try using -rpath or -rpath-link)
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: C programming
OK, I see - if you happen to have the linaro toolchain for arm available, try to use that as cross-toolchain and the prefix "arm-linux-gnueabihf-" - you can find links in the README of eg. Red Pitaya branch release-v0.95 .
edit: sorry, forget the bit about linaro, the right path is "/opt/Xilinx/SDK/2016.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin" with the prefix "arm-linux-gnueabihf-". I also updated the original instructions to avoid confusion.
edit: sorry, forget the bit about linaro, the right path is "/opt/Xilinx/SDK/2016.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin" with the prefix "arm-linux-gnueabihf-". I also updated the original instructions to avoid confusion.
-
- Posts: 17
- Joined: Thu Nov 03, 2016 12:15 am
Re: C programming
I've tried an old version of ecosystem and now I can compile the project, but I can not do the remote debugger. This message appears in the screen:
Session.connect: java.net.NoRouteToHostException (Host unreachable) [/ i]
I follow these instructions to do the remote debug:
http://wiki.redpitaya.com/index.php?tit ... _for_Linux [/ i]
I can connect to my RP (Set remote system explorer seccion), but not to upload the program (Set remote debugge section). Could it be the parameters are wrong? How can I solve this?
Session.connect: java.net.NoRouteToHostException (Host unreachable) [/ i]
I follow these instructions to do the remote debug:
http://wiki.redpitaya.com/index.php?tit ... _for_Linux [/ i]
I can connect to my RP (Set remote system explorer seccion), but not to upload the program (Set remote debugge section). Could it be the parameters are wrong? How can I solve this?
-
- Posts: 17
- Joined: Thu Nov 03, 2016 12:15 am
Re: C programming
javat15 wrote:I've tried an old version of ecosystem and now I can compile the project, but I can not do the remote debugger. This message appears in the screen:
Session.connect: java.net.NoRouteToHostException (Host unreachable)
I follow these instructions to do the remote debug:
http://wiki.redpitaya.com/index.php?tit ... _for_Linux
I can connect to my RP (Set remote system explorer seccion), but not to upload the program (Set remote debugge section). Could it be the parameters are wrong? How can I solve this?
-
- Posts: 17
- Joined: Thu Nov 03, 2016 12:15 am
Re: C programming
Now I can upload the program (I had the parameters of Red Pitaya in Eclipse wrong) but RP don't detect gdbserver. This message appers when I try to remote debbuger:
chmod 777 /tmp/test;gdbserver :2345 /tmp/test;exit
root@rp-f0087d:~# chmod 777 /tmp/test;gdbserver :2345 /tmp/test;exit
Process /tmp/test created; pid = 2269
Cannot exec /tmp/test: No such file or directory.
Child exited with status 127
No program to debug. GDBserver exiting.
logout
I have tryed differents versions of Linaro but always crash. How can I solve this?
Thanks for help!
chmod 777 /tmp/test;gdbserver :2345 /tmp/test;exit
root@rp-f0087d:~# chmod 777 /tmp/test;gdbserver :2345 /tmp/test;exit
Process /tmp/test created; pid = 2269
Cannot exec /tmp/test: No such file or directory.
Child exited with status 127
No program to debug. GDBserver exiting.
logout
I have tryed differents versions of Linaro but always crash. How can I solve this?
Thanks for help!
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 36 guests