借助U盘开发调试应用程序

一、在Ubuntu上写helloworld程序并用交叉编译器编译

arm-none-linux-gnueabi-gcc -o helloworld helloworld.c -static

arm-none-linux-gnueabi-gcc        是开发板用的编译器

-static        是生成静态库

二、将生成的文件拷贝到U盘

三、挂载U盘到开发板

mount  /dev/sda1 /mnt/disk/

我的是sda1,注意用自己的

四、去到挂载目录运行程序