error in using application

Just about everything about Red Pitaya
Post Reply
Pierre A
Posts: 2
Joined: Mon Sep 29, 2014 8:50 am

error in using application

Post by Pierre A » Tue Oct 28, 2014 4:04 pm

hi !

I need to use the UART pins on red pitaya E2 connector, so I made a C code to read/write some data on UART pins, I cross compile this code and copy the executable on /opt/bin/ directory, but when I want to use it with a konsole on linux, I read this message from red pitaya :
/opt/bin/serial : line 1: syntax error: unexpected "("
The thing is, with exactly the same process I try to use the helloworld application and I receive the same error from red pitaya, but I'm sure there is no "(" error in this code...

Code: Select all

 #include <stdio.h>

int main()
{
     printf("helloworld \n");
}
Somebody already met this problem and know how to go through ?

thanks in advance :)

Kev' Ttn
Posts: 55
Joined: Tue Jun 24, 2014 3:06 pm
Location: Dourdan (France)

Re: error in using application

Post by Kev' Ttn » Tue Oct 28, 2014 4:23 pm

Hi Pierre,

Did you compile with a terminal on your PC ? Did you use the following command ?

Code: Select all

make CROSS_COMPILE=arm-linux-gnueabi- clean all 
Because your error is really weird...

Pierre A
Posts: 2
Joined: Mon Sep 29, 2014 8:50 am

Re: error in using application

Post by Pierre A » Tue Oct 28, 2014 5:15 pm

yes I use this command to compile, it's why I don't understand where I do something wrong ..

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

Re: error in using application

Post by Nils Roos » Tue Oct 28, 2014 6:53 pm

Could you attach your binary, so that others (eg me) can take a look at it ?
Or take a look at it yourself in a hex editor, valid executables have the values 0x7F 0x45 0x4C 0x46 (".ELF") in the first four bytes. If that is not the case with yours, you are probably using the wrong toolchain or target.

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: Google [Bot] and 32 guests