打印
[ARM入门]

CPU could not be halted

[复制链接]
1488|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
samhuang8204|  楼主 | 2019-11-25 22:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
CPU, LTE, TI, ST, se
这是用codewarrior 时debugg 时出错:
Starting 3rd party flash programming...
INF:
Jlink: CPU could not be haltedINF:
Jlink: CPU could not be haltedINF:
Jlink: Timeout while checking target RAM, core does not stop. (PC = 0x00000000, XPSR = 0x00000000, SP = 0x00000000)!
Failed to prepare for programming.
Failed to execute RAMCode for RAM check!
Can not read register 16 (XPSR) while CPU is running
Can not
Executing Initialization File: E:\shiyan31/Project_Settings/Debugger/init_kinetis.tcl
radix x
cmdwin::eclipse::config hexprefix 0x
cmdwin::eclipse::config MemIdentifier p
cmdwin::eclipse::config MemWidth 32
cmdwin::eclipse::config MemAccess 32
cmdwin::eclipse::config MemSwap off
cmdwin::reg User\/System Mode Registers/LR = 0xFFFFFFFF
failed on register write: LR
cmdwin::reg Breakpoint Unit Registers/BP_COMP0 = 0x0
cmdwin::reg Breakpoint Unit Registers/BP_COMP1 = 0x0
cmdwin::reg Core Debug Registers/DEMCR = 0x1000001
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION0 = 0x0
cmdwin::reg Data Watchpoint and Trace Unit Registers/DWT_FUNCTION1 = 0x0

Starting 3rd party flash programming...
INF:
Jlink: CPU could not be haltedINF:

2. 用jLINK  flash 时可以connect ,但是擦除有问题:如果是硬件坏了,应会是不能CONNECT .但是connect 可以。
Connecting ...
- Connecting via USB to J-Link device 0
- J-Link firmware: J-Link OB-STM32F072-CortexM compiled Jan  7 2019 14:09:37
- Device "MKL26Z256XXX4" selected.
- ConfigTargetSettings() start
- ConfigTargetSettings() end
- InitTarget() start
- InitTarget()
- Timeout while halting CPU.
- InitTarget() end
- Found SW-DP with ID 0x0BC11477
- AP map detection skipped. Manually configured AP map found.
- AP[0]: AHB-AP (IDR: Not set)
- AP[1]: CUSTOM-AP (IDR: Not set)
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xF0002000
- CPUID register: 0x410CC600. Implementer code: 0x41 (ARM)
- Found Cortex-M0 r0p0, Little endian.
- FPUnit: 2 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ F0002000
- ROMTbl[0][0]: F0000000, CID: B105900D, PID: 000BB932 MTB-M0+
- ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT
- ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table
- ROMTbl[1] @ E00FF000
- ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- Target interface speed: 2000 kHz (Auto)
- VTarget = 3.300V
- ConfigTargetSettings() start
- ConfigTargetSettings() end
- InitTarget() start
- InitTarget()
- Timeout while halting CPU.
- InitTarget() end
- Found SW-DP with ID 0x0BC11477
- AP map detection skipped. Manually configured AP map found.
- AP[0]: AHB-AP (IDR: Not set)
- AP[1]: CUSTOM-AP (IDR: Not set)
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xF0002000
- CPUID register: 0x410CC600. Implementer code: 0x41 (ARM)
- Found Cortex-M0 r0p0, Little endian.
- FPUnit: 2 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ F0002000
- ROMTbl[0][0]: F0000000, CID: B105900D, PID: 000BB932 MTB-M0+
- ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT
- ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table
- ROMTbl[1] @ E00FF000
- ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
- ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
- ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
- CPU could not be halted
- Executing init sequence ...
- Target interface speed: 2000 kHz (Auto)
- J-Link found 1 JTAG device. Core ID: 0x0BC11477 (None)
- Connected successfully
Disconnecting ...
- Disconnected
Erasing chip ...
- Connecting ...
- 256 sectors, 1 range, 0x0 - 0x3FFFF
- WARNING: Flash bank 0 disabled, skipped.
- Erase operation completed successfully - Completed after 1.235 sec
Disconnecting ...
- Disconnected
Erasing chip ...
- Connecting ...
- 256 sectors, 1 range, 0x0 - 0x3FFFF
- Start of preparing flash programming
- ERROR: Can not read register 20 (CFBP) while CPU is running
- ERROR: CPU is not halted
- CPU could not be halted
- ERROR: Can not read register 15 (R15) while CPU is running
- ERROR: Can not read register 16 (XPSR) while CPU is running
- ERROR: Can not read register 13 (R13) while CPU is running
- ERROR: Timeout while checking target RAM, core does not stop. (PC = 0x00000000, XPSR = 0x00000000, SP = 0x00000000)!
- ERROR: Failed to prepare for programming.
Failed to execute RAMCode for RAM check!
- End of preparing flash programming
- Start of restoring
- End of restoring
- ERROR: Failed to erase chip
Disconnecting ...
- Disconnected

3, jlink FLASH 里面去的这一样就可以擦除,
disable flash bank

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

15

主题

99

帖子

2

粉丝