This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

用CCS 编译linux应用程序后拷贝到开发板运行报错,cannot execute binary file

代码是直接用arm-linux-gnueabihf-gcc  -o 编译通过的,也能够在开发板上执行。

现在把源码拷贝到使用在ubuntu安装的CCSv7中新建的C工程里 ,关联了arm-linux-gnueabihf-gcc交叉编译器也include了所需的库文件,所以编译通过了没有报错。

但是吧生成的.o文件拷贝到开发板上,并修改权限之后,仍然出现提示cannot execute binary file,

只有在ubuntu下手动的用arm-linux-gnueabihf-gcc  -o 编译才能够执行,怎么回事啊求助啊!!!!

错误信息就一句:

-sh: ./Uart4.o: cannot execute binary file