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
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/5732.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~