Flash Download failed - Target DLL has been cancelled报错
时间: 2023-10-25 08:31:55 浏览: 114
当出现"Flash Download failed - Target DLL has been cancelled"错误时,可能是由于SWD引脚被占用或禁用导致ST-LINK无法与板子进行通信。一种解决方法是打开Options for Target,选择debug,然后选择相应的下载器名称,再选择Settings。如果在Settings中找不到SWDIO的名称,则说明没有成功。可以在Flash Download界面勾选上Reset and run选项,这样在下载程序时不需要反复按复位键。然后返回,选择Utilities界面,有两种选择:第一种是勾选Use Debug Driver,第二种是选择Settings,选择相应的下载器名称。最后进行下载,应该能够成功。如果仍然不行,可以尝试在最后一步的两种情况中多次尝试。有时还需要按住boot0键然后点击下载,再放开boot0键,才能下载成功。另外,还有一些其他方法可以尝试解决该问题,如将BOOT0的跳线帽拔开,连接3.3V,下载程序成功后再将跳线帽连接回去。这是一种可行的方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Error: Flash Download failed - Target DLL has been cancelled](https://blog.csdn.net/qq_45725659/article/details/119539034)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [STM32下载中出现Flash Download failed - Target DLL has been cancelled报错](https://blog.csdn.net/qq_60174817/article/details/123278850)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文