linux裸机开发 小白报错
start.s:26: 错误: no such instruction: `ldr sp,=0X80200000'start.s:21: 错误: no such instruction: `mrs r0,cpsr'start.s:24: 错误: no such instruction: `msr cpsr,r0'start.s:22: 错误: no such instruction: `bic r
1、错误:
as -o start.o start.s
start.s: Assembler messages:
start.s:21: 错误: no such instruction: `mrs r0,cpsr'
start.s:22: 错误: no such instruction: `bic r0,r0,'
start.s:23: 错误: no such instruction: `orr r0,r0,'
start.s:24: 错误: no such instruction: `msr cpsr,r0'
start.s:26: 错误: no such instruction: `ldr sp,=0X80200000'
start.s:27: 错误: no such instruction: `b main'
<builtin>: recipe for target 'start.o' failed
make: *** [start.o] Error 1
解决:修改MakeFile文件,两个‘S’保持一样的大小写

2、错误:
arm-linux-gnueabihf-gcc -Wall -nostdlib -c -O2 -o start.o start.s
make: *** No rule to make target 'mian.o', needed by 'ledc.bin'。 停止。

检查是否main.o拼写错误

3、
arm-linux-gnueabihf-lds -Timx6u.lds -o ledc.elf start.o main.o
make: arm-linux-gnueabihf-lds:命令未找到
Makefile:13: recipe for target 'ledc.bin' failed
make: *** [ledc.bin] Error 127
修改:链接文件
修改后:
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)