|
代码自动完成功能的Bug已经解决了,试用了一下没有出现问题了。 Microcontroller Development Kit - Version 5.24a
https://pan.baidu.com/s/1miSen9I 不能模拟仿真请参考我的帖子 完全解决了MDK模拟仿真后出现的问题 https://www.stmcu.org.cn/module/foru ... 82229&fromuid=75642
initmap.rar
(167 Bytes, 下载次数: 660)
|
微信公众号
手机版
在用仿真器的时候,发现如下问题,JLink v8 仿真器用不了,V9可以用,
但是在用V9的时候,JTAG这些引脚初始化(复用功能)要设置好(TCK TDI TDO TMS TRST),不要被占用了
正常电平如下:
TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1
否则会出现类似下面的提示:
* JLink Info: Could not measure total IR len. TDO is constant high.
* JLink Info: STM32 (connect): Can not attach to CPU. Trying connect under reset.
* JLink Info: TotalIRLen = 9, IRPrint = 0x0011
* JLink Info: JTAG chain detection found 2 devices:
**JLink Warning: CPU could not be halted
***JLink Error: Can not read register 15 (R15) while CPU is running
***JLink Error: Can not read register 16 (XPSR) while CPU is running
***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的引脚,否则也会出错。
以管理员身份运行Keil uVision5软件,再添加License。记得不要直接双击运行,要右键菜单选择“以管理员身份运行”。
用管理员权限运行安装试试看
不过最近IAR也出了8.x版本,编译也很慢。