Program C

Applications, development tools, FPGA, C, WEB
Post Reply
Marco089
Posts: 2
Joined: Wed Nov 05, 2014 7:57 pm

Program C

Post by Marco089 » Tue May 03, 2016 5:49 pm

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

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Program C

Post by Nils Roos » Tue May 03, 2016 9:02 pm

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).

Marco089
Posts: 2
Joined: Wed Nov 05, 2014 7:57 pm

Re: Program C

Post by Marco089 » Tue May 03, 2016 10:07 pm

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.

BecauseIHaveTo
Posts: 2
Joined: Thu Jan 03, 2019 4:29 pm

Re: Program C

Post by BecauseIHaveTo » Thu Jan 03, 2019 4:38 pm

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 :)

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 5 guests