Page 1 of 1

Program C

Posted: Tue May 03, 2016 5:49 pm
by Marco089
How to write a C program through eclipse moon and upload it to the sd.
I have compiled the source file without any errors but when I load executable in opt/redpitaya/bin, there is an error :
"-bash: /opt/redpitaya/bin/Algoritmo1: No such file or directory"

why??


thanks

Re: Program C

Posted: Tue May 03, 2016 9:02 pm
by Nils Roos
Did you configure eclipse to use the linaro crosscompiler toolchain ?

One cause for the "No such file or directory" error is that the executable does not have a valid format, because it was not compiled for the target platform (ARM7 hard-float in case of the Red Pitaya).

Re: Program C

Posted: Tue May 03, 2016 10:07 pm
by Marco089
Thanks for the reply.

I solved this problem by loading on the SD an old version of the SO (ecosystem 0.92) and , carrying the same executable in the same folder, the program works.

Re: Program C

Posted: Thu Jan 03, 2019 4:38 pm
by BecauseIHaveTo
Hello everyone,
I'm trying to run a C++ code on the RedPitaya. I've succesfully started an SSH connection and included the Header-Files. But now I am a little bit lost.

+ How do I compile my Code?
+ Is it necessary to transfer the file to the SD-Card?
+ Are there any changes I have to apply on my IDE (VisualStudio2017)?

It would be really helpful if someone could give me a step by step list on what I have to do in order to run my programm.

Thank you in advance :)