我也遇到同样的问题,我使用的是SW下载方式,为了帮助后边遇到同样问题的人,我说一下我的解决办法。
1、选择编程算法(programming alogotithm)的上方点击“Reset and Run”(路径:project>options for target 'XXXX'>Utilities>configure flash menu commad>setting);
2、使用串口下载重复下载程序的时候,boot0可以一直为‘1’,减少切换的次数;而是用SW下载,boot0必须设置为‘0’(原因:boot0为'1',再复位后,,,,你懂的)