1.安装arm-none-eabi :arm-2011.09-69-arm-none-eabi.bin
2.安装qemu
3.建立源文件
4.arm-none-eabi-gcc -o main.elf hello.c -g -mcpu=cortex-m3 -mthumb -T generic-hosted.ld
5.qemu-system-arm -cpu cortex-m3 -nographic -monitor null -serial null -semihosting -kernel main.elf
工具常用命令:
arm-none-eabi-as -mcpu=cortex-m3 -mthumb example4.s -o example4.o
arm-none-eabi-ld -Ttext 0x2000c000 -Tdata 0x2000d000 -o example4.out example4.o
arm-none-eabi-objcopy -Obinary -R .data example4.out example4.bin
readelf -a example4.out >>1.txt
arm-none-eabi-objdump -S example4.out > example4.list
本文档介绍了如何使用 arm-none-eabi 工具链进行 ARM Cortex-M3 的开发,包括安装工具、编译源代码及使用 QEMU 进行仿真运行等步骤,并提供了常用的编译链接命令。
403

被折叠的 条评论
为什么被折叠?



