STM32 Error:Flash download failed - Target DLL has been cancelled
2017-12-12 16:28
549 查看
上次也遇到这个问题,解决后没记录,今天被问起的时候很迷,以后一定随手记录问题。
这个问题是使用了IO口PA13而引起的,所以就会导致用ST-link下载代码的时候下载失败!
在使用STM32的IO口时,如果只是做为普通的IO口来使用应当尽量避免使用以下的IO口> :
调试引脚:
PA15:JTDI 处于上拉状态
PA14:JTCK/SWCLK处于下拉状态
PA13:JTMS/SWDAT处于下拉状态
PB4:NJTRST处于上拉状态
PB3:JTDO处于浮空状态
当然了,这些IO口也是可以使用的(就是将他们都禁止了)
如果不小心使用了这些引脚,开发板就可能会被锁住,可以使用以下方法来解决:
1 .B0接V3.3
2. B1接GND
3 .boot0:1
4 .boot1:0
5 .按下复位键
6 .再去下载就OK了
这个问题是使用了IO口PA13而引起的,所以就会导致用ST-link下载代码的时候下载失败!
在使用STM32的IO口时,如果只是做为普通的IO口来使用应当尽量避免使用以下的IO口> :
调试引脚:
PA15:JTDI 处于上拉状态
PA14:JTCK/SWCLK处于下拉状态
PA13:JTMS/SWDAT处于下拉状态
PB4:NJTRST处于上拉状态
PB3:JTDO处于浮空状态
当然了,这些IO口也是可以使用的(就是将他们都禁止了)
GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable,ENABLE); //使能禁止JTAG
如果不小心使用了这些引脚,开发板就可能会被锁住,可以使用以下方法来解决:
1 .B0接V3.3
2. B1接GND
3 .boot0:1
4 .boot1:0
5 .按下复位键
6 .再去下载就OK了
相关文章推荐
- "flash download failed - Target dll has been cancelled"错误解决办法
- MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL
- MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL
- error:Target dll has been cancelled.debugger aborted
- error:Target dll has been cancelled.debugger aborted
- Stm32_调试出现 Error:Flash Download Failed-"Cortex-M3" 解决方案。
- AMR学习随笔(15)MDK出现target Dll has been cancelled
- 调试stm32时经常出现Error:Flash Download Failed-"Cortex-M3"
- Stm32_调试出现 Error:Flash Download Failed-"Cortex-M3" 解决方案。
- STM32使用J-Link烧写出错:Error: Flash Download failed - Cortex-M3
- Stm32_调试出现 Error:Flash Download Failed-"Cortex-M3" 解决方案。
- stm32 keil MDK在线调试报错 Error: Flash download failed-"Cortex-M3"
- STM32解决:Error: Flash Download failed - "Cortex-M3"
- stm32 烧写下载失败 Error: Flash Download failed - "Cortex-M3"
- MDK 使用 ST-Link v2 下载出现 target dll has been cancelled 的错误的解决方法
- 【stm32】keil5解决 Error: Flash Download Failed-"Cortex-M3以及 08000000H错误
- 已解决:no jlink device found Error: Flash Download failed - Target DLL has been cancelled
- ROMTableAddr = 0xE00FF003 错误 Target DLL has been cancelled 错误
- SSL handshake failed: SSL error: Key usage violation in certificate has been detected.
- HHC6003: Error: The file Itircl.dll has not been