KEIL5.25,用J-LINK调试程序,空芯片时,电流是5mA,第一次按调试时能进入调试,但无法到main的第一句。
后面,电流变成了11mA,再下载或擦除变成了NO CORTEX-M SW DEVICE. 到flash设置,与原来没有啥区别。
下面是信息,这不知是啥问题??
JLink info:
------------
DLL: V6.30h, compiled Mar 16 2018 18:02:51
Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
Hardware: V9.70
S/N : 59768883
Feature(s) : RDI, GDB, FlashDL, FlashBP, JFlash
* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x04770031)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Skipped. Could not read AHB ROM register
***JLink Error: DAP error while reading DP-Ctrl-Stat register.
Error: Flash Erase failed - Target DLL has been cancelled
Flash Erase finished 20:59:29
Load "D:\\data\\program\\keil\\autochip\\ewaveproduce\\Objects\\ewaveproduce.axf"
* JLink Info: Device "CORTEX-M0+" selected.
* JLink Info: Device "CORTEX-M0+" selected.
Set JLink Project File to "D:\data\program\keil\autochip\ewaveproduce\JLinkSettings.ini"
* JLink Info: Device "CORTEX-M0+" selected.
JLink info:
------------
DLL: V6.30h, compiled Mar 16 2018 18:02:51
Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
Hardware: V9.70
S/N : 59768883
Feature(s) : RDI, GDB, FlashDL, FlashBP, JFlash
* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: Found SW-DP with ID 0x0BC11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x04770031)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Skipped. Could not read AHB ROM register
***JLink Error: DAP error while reading DP-Ctrl-Stat register.
Error: Flash Download failed - Target DLL has been cancelled
Flash Load finished at 21:05:24 |