5583 views|8 replies

413

Posts

6

Resources
The OP
 

NXP MKL26 error when downloading during debugging.. [Copy link]

1,这是用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. When using jLINK flash, it can connect, but there is a problem with erasing: If the hardware is broken, it should not be able to CONNECT. But it can 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: 0x410CC 600. 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]: F000100 0, 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] @ F00020 00
- 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: 0 00BB00A 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. This can be erased in jlink FLASH,
disable flash bank

This post is from ARM Technology

Latest reply

Nothing is absolute. Freescale has high requirements for soldering temperature and process, and I have soldered it wrong before. It's almost the same as your various errors.   Details Published on 2019-11-27 09:19
Personal signature

真正的幸福不是靠加法,而是靠减法,生活从来都是越简单,越幸福。

 

7422

Posts

2

Resources
2
 

Locked or soldered

This post is from ARM Technology

Comments

Cold solder joints can be eliminated  Details Published on 2019-11-26 22:02
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

295

Posts

1

Resources
3
 

Jlink: CPU could not be haltedINF

Refer to other netizens’ solutions:

1. Is there a `reset` option in the settings of the CodeWarrior emulator? Try switching it and see if it works.

2. Is the boot option correct?

This post is from ARM Technology
 
Personal signature

我的小站 我的博客

 
 

413

Posts

6

Resources
4
 

1. If the flash is locked, how to unlock it: JLINk commander cannot unlock it and has no response.

2. Is the boot option correct? See here, but it is possible to change a board. Only this board is like this.

This post is from ARM Technology

Comments

Boot is basically a hardware configuration. Judging from the information you checked, it should not be a boot problem.  Details Published on 2019-11-27 09:17
 
Personal signature

真正的幸福不是靠加法,而是靠减法,生活从来都是越简单,越幸福。

 
 

413

Posts

6

Resources
5
 
freebsder posted on 2019-11-25 22:31 Locked or poorly soldered

Cold solder joints can be eliminated

This post is from ARM Technology
 
Personal signature

真正的幸福不是靠加法,而是靠减法,生活从来都是越简单,越幸福。

 
 

295

Posts

1

Resources
6
 
samhuang8204 posted on 2019-11-26 22:02 1. If the flash is locked, how to unlock it: JLINk commander cannot unlock it and has no response. 2. Is the boot option correct? ...

Boot is basically a hardware configuration. Judging from the information you checked, it should not be a boot problem.

This post is from ARM Technology
 
Personal signature

我的小站 我的博客

 
 

7422

Posts

2

Resources
7
 

Nothing is absolute. Freescale has high requirements for soldering temperature and process, and I have soldered it wrong before. It's almost the same as your various errors.

This post is from ARM Technology

Comments

I've also broken soldering, but this one can connect. I'm wondering if it's really broken?  Details Published on 2019-11-27 10:03
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

413

Posts

6

Resources
8
 
freebsder posted on 2019-11-27 09:19 Nothing is absolute. Freescale has relatively high requirements for welding temperature and process, and I have damaged it before. It is almost the same as your various errors.

I've also broken soldering, but this one can connect. I'm wondering if it's really broken?

This post is from ARM Technology
 
Personal signature

真正的幸福不是靠加法,而是靠减法,生活从来都是越简单,越幸福。

 
 

413

Posts

6

Resources
9
 

Thank you everyone, it's solved...

This post is from ARM Technology
 
Personal signature

真正的幸福不是靠加法,而是靠减法,生活从来都是越简单,越幸福。

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list