如果想让开发板重启只需要跳转到0x00000000,这是上电后执行第一条程序的位置。
reboot.s
.text
mov pc, #0
编译命令
arm-elf-as -o reboot.o reboot.s
arm-elf-objcopy -O binary -R .comment -R .note -S reboot.o reboot.binobjcopy命令说明
-S --strip-all Remove all symbol and relocation information
-R --remove-section <name> Remove section <name> from the output
-O --output-target <bfdname> Create an output file in format <bfdname>
本文详细阐述了如何通过跳转到0x00000000地址来实现开发板重启的过程,包括使用特定的编译命令和objcopy命令进行代码的编译和优化。
2603

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



