Hello,
I am using omap-l138, and I try to build a basic main source file, helloworld program like:
#include "rpc_stubs_dsp.h"
int main()
{
rpc_printf("HELLO WORLD\n");
return 1;
}
Just to make me familiar with the rpc tool. After some work, I try to compile the source file with a Makefile command line such as:
$(C6RUN_CC) --rpc $(INCLUDES_RPC) main.c -o rpc_test
where C6RUN_CC is the c6runapp-cc compiler provided with the DVSDK, and INCLUDES_RPC the right header directories. During the compilation of source I have some troubles with multiple variable declaration, error messages like the following appear for each rpc_functions:
gpp_stubs_stdio.o: In function `rpc_fopen':
gpp_stubs_stdio.c:(.text+0x0): multiple definition of `rpc_fopen'
gpp_stubs_stdio.o:gpp_stubs_stdio.c:(.text+0x0): first defined here
But in spite of that, I get an executable file which I run on the board and I get the error:
Invalid CIO command (3), Invalid CIO command (1), Invalid CIO command (4).
Note that I get no error with a basic printf() instead of rpc_printf().
Do you have any idea to fix it?
Thanks in advance