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 :
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.../opt/bin/serial : line 1: syntax error: unexpected "("
Code: Select all
#include <stdio.h>
int main()
{
printf("helloworld \n");
}
thanks in advance