裸机开发体验之led快速体验

 

[root@promote led]# arm-linux-gcc -g -c led.S
[root@promote led]# ls
led.lds led.o led.S Makefile
[root@promote led]# arm-linux-ld -Tled.lds -o led.elf led.o
[root@promote led]# ls
led.elf led.lds led.o led.S Makefile
[root@promote led]# arm-linux-objcopy -O binary led.elf led.bin
[root@promote led]# ls
led.bin led.elf led.lds led.o led.S Makefile

[root@promote led]# make clean
rm *.o led.elf led.bin
[root@promote led]# ls
led.lds led.S Makefile
[root@promote led]# make
arm-linux-gcc -g -o led.o -c led.S
arm-linux-ld -Tled.lds -o led.elf led.o
arm-linux-objcopy -O binary led.elf led.bin
[root@promote led]# ls
led.bin led.elf led.lds led.o led.S Makefile
[root@promote led]#

 

通过vivi烧写之后,LED1亮了!

 

 

 

 

 

 

---恢复内容结束---

posted @ 2018-01-16 20:13  sanshijvshi  阅读(226)  评论(0编辑  收藏  举报