由于本人突然心血来潮想DIY一个ST-Linkling,便从网上随意下了ST-LINK的固件下进了STM32F103C8T6,没想到测试完ST-LINK后想下个程序给单片机却出现错误!

 ST-LINK下载程序时提示“flash timeout.reset the target and try it again”               ST-LINK下载程序时提示“flash timeout.reset the target and try it again”

于是我按照网上的keil的设置方法发现问题没有解决!

ST-LINK下载程序时提示“flash timeout.reset the target and try it again”

ST-LINK下载程序时提示“flash timeout.reset the target and try it again”

网上都说是一般是修改了选项字节而导致的错误,于是我用ST-Link Utility工具来试试。使用ST-LINK连接单片机和电脑,打开ST-Link Utility工具并点击Connect,就会弹出存在读保护

                                                          ST-LINK下载程序时提示“flash timeout.reset the target and try it again”

然后点击File,选择一份可以使用的hex文件或者bin文件加载进去,这时如果Connect的话ST-Link Utility工具会提示下载失败,需要点开program  verify 

               ST-LINK下载程序时提示“flash timeout.reset the target and try it again”   

如图设置,然后点击start

                                                ST-LINK下载程序时提示“flash timeout.reset the target and try it again”

下程序过程中可能会弹出一个窗口(我忘了是什么了,要选的),等程序下完后就可以下载其他'程序了,本人亲测有效。

 

相关文章: