本帖最后由 今晚打老虎 于 2014-9-27 19:52 编辑
各位好,我现在遇到了STM32F072C8芯片无**常调试的情况。
使用的开发平台是:KeilC MDK-ARM 4.73。
调试工具:J-Link V8 软件版本为:J-Link Commander V4.90e 采用SWD的接口进行联机调试。
硬件线路图如下。其中,我将复位部分的元件全部去掉,短路了U7的2,3脚,在在R18的位置换了一个100nF的瓷片电容。
电路板上芯片的VDDA引脚和VSSA引脚没有网络,这两个引脚是悬空的。使用万用表测过VSSA引脚内部与VSS短路,所以我只使过用飞线连接VDDA这一个引脚。 VBAT引脚飞线后连接至3.3V。
现在的现象是:
在MDK-ARM软件中能够下载程序,但是进入硬件仿真后,报错信息如下:
Set JLink Project File to "E:\Workdir\B3000R\Src\KIB Module\B3000_KIB_Wall_001\B3000_KIB_Wall_001_V01\JLinkSettings.ini"* JLink Info: Device "STM32F072C8" selected (64 KB flash, 16 KB RAM).
JLink info:
------------
DLL: V4.90e, compiled Sep 8 2014 18:46:31
Firmware: J-Link ARM V8 compiled Jul 17 2014 12:31:18
Hardware: V8.00
S/N : 17935099
Feature(s) : RDI,FlashDL,FlashBP,JFlash
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: STM32F0xxx: Can not connect to CPU. Trying connect under reset.
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
ROMTableAddr = 0xE00FF003
Target info:
------------
Device: STM32F072C8
VTarget = 3.248V
State of Pins: TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 4000 kHz
Load "E:\\Workdir\\B3000R\\Src\\KIB Module\\B3000_KIB_Wall_001\\B3000_KIB_Wall_001_V01\\B3000_KIB_Wall_001_V01.axf"
WS 1, `gKeyValue
**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
***JLink Error: Can not read register 2 (R2) while CPU is running
***JLink Error: Can not read register 3 (R3) while CPU is running
***JLink Error: Can not read register 4 (R4) while CPU is running
***JLink Error: Can not read register 5 (R5) while CPU is running
***JLink Error: Can not read register 6 (R6) while CPU is running
***JLink Error: Can not read register 7 (R7) while CPU is running
***JLink Error: Can not read register 8 (R8) while CPU is running
***JLink Error: Can not read register 9 (R9) while CPU is running
***JLink Error: Can not read register 10 (R10) while CPU is running
***JLink Error: Can not read register 11 (R11) while CPU is running
***JLink Error: Can not read register 12 (R12) while CPU is running
***JLink Error: Can not read register 13 (R13) while CPU is running
***JLink Error: Can not read register 14 (R14) while CPU is running
***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 17 (MSP) while CPU is running
***JLink Error: Can not read register 18 (PSP) while CPU is running
***JLink Error: Can not read register 20 (CFBP) while CPU is running
我通过软件 J-Flash V4.90e 可以正常的连接目标板,并且能够读取芯片的Flash中数据,对芯片进行擦除操作也正常。
请各位大侠帮忙看看哪里有问题,谢谢!
|