解决Error: Flash Download failed - Target DLL has been cancelled

解决Error: Flash Download failed - Target DLL has been cancelled

  • 1:问题描述
  • 2:解决方案

1:问题描述

在烧录程序时,出现以下图片提示
Error: Flash Download failed - Target DLL has been cancelled
解决Error: Flash Download failed - Target DLL has been cancelled_第1张图片
解决Error: Flash Download failed - Target DLL has been cancelled_第2张图片

2:解决方案

1:选择 Options for Target——>如下图
解决Error: Flash Download failed - Target DLL has been cancelled_第3张图片
2:选择 Debug——>settings(我这里用的是ST-link,如果用的是J-link则改为J-link)
解决Error: Flash Download failed - Target DLL has been cancelled_第4张图片
3:选择 Flash Download——>勾选上Rest and Run——>点击确定
解决Error: Flash Download failed - Target DLL has been cancelled_第5张图片
4:选择 Utilities——>勾选中Use Debug Driver——>点击OK
解决Error: Flash Download failed - Target DLL has been cancelled_第6张图片
5:重新编译以下就好了,此时可以正常烧录,不会有报错了

你可能感兴趣的:(STM32H7,keil,error)