**JLink Warning: CPU could not be halted
ROMTableAddr = 0xE00FF000
* JLink Info: Core did not halt after reset, trying to disable WDT.
**JLink Warning: CPU did not halt after reset.
**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 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 Info: SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
**JLink Warning: Failed to reset CPU. VECTRESET has confused core.
**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 Error: DAP error while reading DP-Ctrl-Stat register.
**JLink Warning: CPU could not be halted
Error: Flash Download failed - Target DLL has been cancelled
当遇到以上错误,可能大家都会想到是JLink驱动的原因,或者猜测是单片机MCU不稳定的原因,芯片引脚未连接好。
本篇帖子旨在记录错误现象,最开始单片机在未接其他大的外设设备(例如:显示屏模块和其他耗电的外设模块时), 单片机是能够正常烧录的,但是,由于后面其他外设设备接在单片机IO口上,没有注意到这个只是使用JLink来给整个产品供电,会造成供电电压不足发生,才会导致以上烧录错误产生,单片机的供电电压3.3V未到达,MCU未工作起来。