本帖最后由 yon-gjun 于 2017-7-14 17:31 编辑 4 _2 F% m! r: q) [& j) h. C
( e' t$ L! R) p
在用仿真器的时候,发现如下问题,JLink v8 仿真器用不了,V9可以用,6 Z5 H) J5 t1 Z( R! ~3 ^3 d
但是在用V9的时候,JTAG这些引脚初始化(复用功能)要设置好(TCK TDI TDO TMS TRST),不要被占用了 7 n$ n9 S+ D' O! V, o* }* u ~7 l. i正常电平如下:. f/ |$ c' P4 r4 y& F v$ [
TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1 1 @3 ?, V& I. j Y否则会出现类似下面的提示: 5 G$ d. I% u- n7 V) i* JLink Info: Could not measure total IR len. TDO is constant high.# q( e1 l. U0 R6 y8 I; v+ I
* JLink Info: STM32 (connect): Can not attach to CPU. Trying connect under reset. ( |7 d4 F0 ]( n* JLink Info: TotalIRLen = 9, IRPrint = 0x00116 F1 I: [# @+ p6 S1 x/ h! c# D
* JLink Info: JTAG chain detection found 2 devices: 0 Y1 s, @1 k; O- y2 T4 S8 T/ Y ; l0 K& `# x. L+ k+ _
**JLink Warning: CPU could not be halted 7 j; J) @2 \* H***JLink Error: Can not read register 15 (R15) while CPU is running8 p& _2 t. @0 o" y
***JLink Error: Can not read register 16 (XPSR) while CPU is running% W0 {$ {& g- N2 U ?" }1 u( t
***JLink Error: Can not read register 0 (R0) while CPU is running % r6 w4 X( ]1 g5 {***JLink Error: Can not read register 1 (R1) while CPU is running * M) _: v5 j a8 A用SW的方式也是一样的,就是不要占用SW的引脚,否则也会出错。2 B; D1 G1 F% Z& d
( e' t$ L! R) p
在用仿真器的时候,发现如下问题,JLink v8 仿真器用不了,V9可以用,6 Z5 H) J5 t1 Z( R! ~3 ^3 d
但是在用V9的时候,JTAG这些引脚初始化(复用功能)要设置好(TCK TDI TDO TMS TRST),不要被占用了
正常电平如下:. f/ |$ c' P4 r4 y& F v$ [
TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1
否则会出现类似下面的提示:
* JLink Info: Could not measure total IR len. TDO is constant high.# q( e1 l. U0 R6 y8 I; v+ I
* JLink Info: STM32 (connect): Can not attach to CPU. Trying connect under reset.
* JLink Info: TotalIRLen = 9, IRPrint = 0x00116 F1 I: [# @+ p6 S1 x/ h! c# D
* JLink Info: JTAG chain detection found 2 devices:
; l0 K& `# x. L+ k+ _
**JLink Warning: CPU could not be halted
***JLink Error: Can not read register 15 (R15) while CPU is running8 p& _2 t. @0 o" y
***JLink Error: Can not read register 16 (XPSR) while CPU is running% W0 {$ {& g- N2 U ?" }1 u( t
***JLink Error: Can not read register 0 (R0) while CPU is running
***JLink Error: Can not read register 1 (R1) while CPU is running
用SW的方式也是一样的,就是不要占用SW的引脚,否则也会出错。2 B; D1 G1 F% Z& d
! Z5 ]. g; t) w& W( f
升级的安装而不是重新安装出现这个问题' g0 e m3 Z& y; Z- j6 h3 i. d+ \
3 F6 ]" L' X; T& F- Z
用管理员权限运行安装试试看
以管理员身份运行Keil uVision5软件,再添加License。记得不要直接双击运行,要右键菜单选择“以管理员身份运行”。
还没有出来