UC-8410A利用toolchain交叉编译
适用产品:UC-8410A
使用目的:通过toolchain工具,将x86下的程序移植到UC-8410A上
使用软件:toolchain工具
使用工具:虚拟器上安装debian系统
安装步骤
1、 将moxa提供的编译器tool-chain拷贝到虚拟机下
2、 安装编译器,sh arm-linux-gnueabihf_4.7_Build_amd64_16053113.sharm-linuxgnueabihf_4.7_Build_i386_16062000.sh,选择1进行安装
提示在交叉编译前需添加环境变量
PATH=$PATH:/usr/local/arm-linux-gnueabihf-4.7-20130415/bin
3、 测试
将例程序hello包拷贝到虚拟机下,make编译,生成的hello-release就是在RISC下可执行的文件
将生成的hello-release文件拷贝到UC-8410A下,用chmod +x hello-release,修改文件的权限后,在执行hello-release文件,可以下UC-8410A下显示hello
(完)