在readme.txt中找到了答案,如下:
In order to program the demonstration you must do the following:
1- Open STM32 ST-Link Utility V3.9, click on "External Loader" from the bar menu then check
"MX25L512G_STM32F769I-DISCO" box
2- Connect the STM32F769I-DISCO board to PC with USB cable through CN16
3- Use "STM32CubeDemo_STM32769I-DISCO_V1.1.0.hex" file provided under 揃inary?with STM32 ST-Link Utility to program both internal Flash and external QSPI memory
也就是需要用 ST-Link Utility下载,打开 ST-Link Utility然后按照上上面的步骤添加,再在MDK-ARM\STM32F769I-Discovery_Demo中找到STM32F769I-Discovery_Demo.hex文件,将其拖入到 ST-Link Utility中,然后Program,这时候就正常了,如下:
编译出现几百个错误,几千个警告。可是编译其他的例程却是可以的,不过还是有几百个警告,但是速度却是快了不少。
折腾还要继续,我想看看IAR的编译速度怎么样,使用IAR打开工程,同样在包含路经中添加缺少项,然后编译,编译时间为一分三十秒,还真是比Keil快不少啊,然后我点击调试,结果出现一个警告:There were warning while generating falsh loader input.log为Flash download warning: 8872256 out of 8872256 bytes from data record CODE:[0x90000000,0x9087613F] will not be flashed,然后接着就是一个错误:The selected device does not match thetarget device Session aborted!无法调试了,我试着其他的历程还是一样的结果,我又试试其他型号的板子还是同样的结果,这是什么原因?求助啊。
不过生成了Hex文件还是可以通过ST-Link Utility下载到版子上的,效果一样。