不知道什么操作导致keil5下载STM32F3的程序时报以下错误:
JLink info:
------------
DLL: V4.90 , compiled Jul 28 2014 10:35:20
Firmware: J-Link OB-STM32F072-CortexM compiled Mar 8 2020 11:15:54
Hardware: V1.00
Feature(s) : GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
ROMTableAddr = 0xE00FF003
**JLink Warning: Could not set S_RESET_ST
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
* JLink Info: Core did not halt after reset, trying to disable WDT.
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
**JLink Warning: Could not set S_RESET_ST
* JLink Info: Found SWD-DP with ID 0x2BA01477
* JLink Info: Found Cortex-M4 r0p1, Little endian.
**JLink Warning: Could not set S_RESET_ST
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
* JLink Info: Core did not halt after reset, trying to disable WDT.
**JLink Warning: CPU did not halt after reset.
**JLink Warning: CPU could not be halted
**JLink Warning: Could not set S_RESET_ST
**JLink Warning: CPU could not be halted
Error: Flash Download failed - Target DLL has been cancelled
Flash Load finished at 14:40:01
错误原因:芯片进入休眠状态,故无法下载程序。
解决办法:硬件上电前,先将复位脚与3.3v短接,然后上电,点击下载,同时断开复位脚与3.3v,即可下载成功。亲测可用!