1.错误信息如下:
JLink info:
-----------
DLL: V4.08b, compiled Jun 30 2009 19:10:31
Firmware: J-Link ARM V8 compiled Dec 1 2009 11:42:48
Hardware: V8.00
S/N : 17935099
Feature(s) : RDI,FlashDL,FlashBP,JFlash
---
* JLink Info: Found SWD-DP with ID 0x1BA01477
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
Target info:
------------
Device: STM32F103ZE
VTarget = 3.358V
State of Pins:
TCK: 0, TDI: 1, TDO: 1, TMS: 0, TRES: 1, TRST: 1
* JLink Info: Found SWD-DP with ID 0x1BA01477
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
Hardware-Breakpoints: 6
Software-Breakpoints: 2048
Watchpoints: 4
JTAG speed: 9600 kHz
---
* JLink Info: Found SWD-DP with ID 0x1BA01477
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
No Algorithm found for: 08000000H - 080014A7H
Erase skipped!
解决:
在MDK中做如下设置
project ---> Option for Target "Template" ---> Debug ---> Setting ---> Flash Download ---> Add ---> 然后添加与你芯片相符的Flash。我的是战舰STM32,属于大容量,就是下图的 STM32F10x High-density Flash 512k.