GD32E230F 复用了swdio,在开机时将此pin设置为gpio,keil下载程序,重新上电。
再次用keil下载程序,结果郁闷了,无法下载了,提示"can not access memory"
具体输出log如下:
Load "C:\\gd32e230\\A33\\project\\output\\A33.axf"
* JLink Info: Device "CORTEX-M23" selected.
* JLink Info: Device "CORTEX-M23" selected.
Set JLink Project File to "C:\gd32e230\A33\project\JLinkSettings.ini"
* JLink Info: Device "CORTEX-M23" selected.
JLink info:
------------
DLL: V6.44e, compiled Apr 5 2019 16:15:03
Firmware: J-Link V9 compiled Jun 2 2222 22:22:22
Hardware: V9.40
S/N : 59401308
Feature(s) : GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
* JLink Info: Found SW-DP with ID 0x0BF11477
* JLink Info: Found SW-DP with ID 0x0BF11477
* 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: 0x04770025)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x411CD200. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M23 r1p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: Security extension: not implemented
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105900D, PID: 000BBD20 Cortex-M23
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105900D, PID: 000BBD20 DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105900D, PID: 000BBD20 FPB
***JLink Error: DAP error while reading DP-Ctrl-Stat register.
ROMTableAddr = 0xE00FF000
Error: Flash Download failed - Target DLL has been cancelled
Flash Load finished at 18:19:12 |