新手上路
- 积分
- 21
- 金钱
- 21
- 注册时间
- 2020-12-16
- 在线时间
- 3 小时
|
1金钱
Makefile:
objs =start.o main.o
ledc.bin(objs)
arm-linux-gnueabihf-ld -Ttext 0x87800000 $^ -o ledc.elf
arm-linux-gnueabihf-objcopy -O binary -S ledc.elf $@
arm-linux-gnueabihf-objdump -D arm ledc.elf>ledc.dis
%.o:%.c
arm-linux-gnueabihf-gcc -Wall -nostdlib -c -O2 -o $@ $<
%.o:%.start
arm-linux-gnueabihf-gcc -Wall -nostdlib -c -O2 -o $@ $<
%.o:%.S
arm-linux-gnueabihf-gcc -Wall -nostdlib -c -O2 -o $@ $<
clean:
rm -rf *.o ledc.bin ledc.elf ledc.dis
as -o start.o start.s
start.s: Assembler messages:
start.s:11: 错误: no such instruction: `mrs r0,cpsr'
start.s:12: 错误: no such instruction: `bic r0,r0,'
start.s:13: 错误: no such instruction: `orr r0,r0,'
start.s:14: 错误: no such instruction: `msr cpsr,r0'
start.s:16: 错误: no such instruction: `ldr sp,=0X80200000'
start.s:17: 错误: no such instruction: `b main'
<内置>: recipe for target 'start.o' failed
make: *** [start.o] Error 1
请问
|
|