我很难将演示程序上传到新的stm32f4discovery板上,这就是我要做的:
发布于 2013-11-23 16:17:00
在重写闪存之前,必须删除它。
monitor flash protect 0 0 11 off
monitor flash erase_address 0x08000000 0x40000
monitor flash write_image erase *"/path/to/hex/file.hex"* 0 ihex或者,不要使用telnet和十六进制文件,而是使用arm-none-eabi-gdb和ELF,并使用以下命令:
arm-none-eabi-gdb
target remote localhost:3333
monitor reset halt
file */path/to/elf/file.elf*
load
monitor reset
continue注意,当使用ELF文件时,您不需要指定它的地址(通常是0x08000000或0x08008000与引导程序一起)。
另外,考虑使用像OpenBLT这样的引导加载程序,它将帮助您掌握诸如VTOR、偏移量、堆栈地址等原则。
https://stackoverflow.com/questions/17003519
复制相似问题