Open On-Chip Debugger 0.11.0-dirty (2022-06-05-23:53)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
我使用的mcu型号是stm32h750xbh6
]]>* 操作步骤
1、编写QSPI和W25Q64的初始化程序,下载到stm32h750内部128K flash中。
2、修改stm32h7x.cfg文件,只需要在开头source包含语句后添加“set QUADSPI 1”这一句就行
3、启动openocd、tenlet连接它,halt后执行flash list就能看到外部flash驱动已经挂载了
4、执行flash info 1就能看到openocd自动识别出w25q64的型号和容量
5、执行flash write_image erase led.bin 0x90000000将led.bin直接下载到w25q64