Target error from Commit Flash write: Ep(04).

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Target error from Commit Flash write: Ep(04).

跳至解决方案
1,101 次查看
yudeshui
Contributor II

我的板子型号是MIMXRT685-EVK,我下载的SDK是SDK_2_16_000_EVK-MIMXRT685.zip。

步骤:build -> debug

提示如下:

MCUXpresso IDE RedlinkMulti Driver v11.10 (Jul 2 2024 19:33:51 - crt_emu_cm_redlink build 741)

Found chip XML file in C:/Users/carson.yu/Documents/MCUXpressoIDE_11.10.0_3148/workspace/evkmimxrt685_sctimer_pwm_with_dutycyle_change/Debug\MIMXRT685S.xml

Reconnected to existing LinkServer process.

Probe Firmware: LPC-LINK2 CMSIS-DAP V5.460 (NXP Semiconductors)

Serial Number: DSA3CQMQ

VID:PID: 1FC9:0090

USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&773e416&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

Using memory from core 0 after searching for a good core

processor is in secure mode

debug interface type = CoreSight DP (DAP DP ID 6BA02477) over SWD TAP 0

processor type = Cortex-M33 (CPU ID 00000D21) on DAP AP 0

number of h/w breakpoints = 8

number of flash patches = 0

number of h/w watchpoints = 4

Probe(0): Connected&Reset. DpID: 6BA02477. CpuID: 00000D21. Info: <None>

Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.

Content of CoreSight Debug ROM(s):

RBASE E00FE000: CID B105100D PID 0000095000 ROM (type 0x1)

ROM 1 E00FF000: CID B105100D PID 04000BB4C9 ROM (type 0x1)

ROM 2 E000E000: CID B105900D PID 04000BBD21 CSt ARM ARMv8-M type 0x0 Misc - Undefined

ROM 2 E0001000: CID B105900D PID 04000BBD21 CSt ARM DWTv2 type 0x0 Misc - Undefined

ROM 2 E0002000: CID B105900D PID 04000BBD21 CSt ARM FPBv2 type 0x0 Misc - Undefined

ROM 2 E0000000: CID B105900D PID 04000BBD21 CSt ARM ITMv2 type 0x43 Trace Source - Bus

ROM 2 E0041000: CID B105900D PID 04002BBD21 CSt ARM ETMv4.0 type 0x13 Trace Source - Core

ROM 2 E0042000: CID B105900D PID 04000BBD21 CSt ARM CTIv2 type 0x14 Debug Control - Trigger, e.g. ECT

ROM 1 E0040000: CID B105900D PID 04000BBD21 CSt type 0x11 Trace Sink - TPIU

NXP: MIMXRT685S

DAP stride is 1024 bytes (256 words)

Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT600_FlexSPI_B_MXIC_OPI.cfx

Image 'MIMXRT600_FlexSPI_B_MXIC_OPI Jul 2 2024 18:29:23'

Opening flash driver MIMXRT600_FlexSPI_B_MXIC_OPI.cfx

VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.

Using SOFT reset to run the flash driver

Flash variant 'JEDEC_FlexSPI_Device' detected (64MB = 1024*64K at 0x8000000)

Closing flash driver MIMXRT600_FlexSPI_B_MXIC_OPI.cfx

Connected: was_reset=true. was_stopped=false

Awaiting telnet connection to port 3330 ...

GDB nonstop mode enabled

Opening flash driver MIMXRT600_FlexSPI_B_MXIC_OPI.cfx (already resident)

VECTRESET requested, but not supported on ARMv8-M CPUs. Using SOFTRESET instead.

Using SOFT reset to run the flash driver

Flash variant 'JEDEC_FlexSPI_Device' detected (64MB = 1024*64K at 0x8000000)

Writing 35604 bytes to address 0x08000000 in Flash

Sectors written: 0, unchanged: 1, total: 1

Erased/Wrote sector 0-0 with 35604 bytes in 41msec

Closing flash driver MIMXRT600_FlexSPI_B_MXIC_OPI.cfx

Flash Write Done

Flash Program Summary: 35604 bytes in 0.04 seconds (848.04 KB/sec)

Starting execution using system reset and halt target with a stall address

Retask read watchpoint 1 at 0x50002034 to use for boot ROM stall

processor is in non-secure mode

state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access

state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access

Warning - processor did not halt - gave up waiting

flash - system reset failed - Ep(04). Cannot halt processor.

Target error from Commit Flash write: Ep(04). Cannot halt processor.

GDB stub (D:\nxp\LinkServer_1.6.133\binaries\crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.

state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Fault in DAP access

 

执行过 mass erase, 没什么用,跪求助跪求指教

标记 (1)
0 项奖励
回复
1 解答
1,073 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @yudeshui ,

Thanks for your interest in NXP MIMXRT series!

From the log you provided, it seems that the DAP firmware of the on-board debugger is being used. It's possible that this is due to an issue with the onboard debugger firmware, I suggest you try updating the onboard debugger to the JLink firmware first.

You need to install this software first: LinkServer for Microcontrollers | NXP Semiconductors

Then:

1. power down the board.Install the JP1 jumper cap;
2. Run the following script: program_JLINK.cmd      at this path: C:\nxp\LinkServer_1.6.133\LPCScrypt\scripts
3. Power down; remove the JP1 jumper cap; power back up;

Best regards,
Gavin

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,074 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @yudeshui ,

Thanks for your interest in NXP MIMXRT series!

From the log you provided, it seems that the DAP firmware of the on-board debugger is being used. It's possible that this is due to an issue with the onboard debugger firmware, I suggest you try updating the onboard debugger to the JLink firmware first.

You need to install this software first: LinkServer for Microcontrollers | NXP Semiconductors

Then:

1. power down the board.Install the JP1 jumper cap;
2. Run the following script: program_JLINK.cmd      at this path: C:\nxp\LinkServer_1.6.133\LPCScrypt\scripts
3. Power down; remove the JP1 jumper cap; power back up;

Best regards,
Gavin

 
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1948156%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ETarget%20error%20from%20Commit%20Flash%20write%3A%20Ep(04).%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1948156%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E7%9A%84%E6%9D%BF%E5%AD%90%E5%9E%8B%E5%8F%B7%E6%98%AFMIMXRT685-EVK%EF%BC%8C%E6%88%91%E4%B8%8B%E8%BD%BD%E7%9A%84SDK%E6%98%AFSDK_2_16_000_EVK-MIMXRT685.zip%E3%80%82%3C%2FP%3E%3CP%3E%E6%AD%A5%E9%AA%A4%EF%BC%9Abuild%20-%26gt%3B%20debug%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%E6%8F%90%E7%A4%BA%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3EMCUXpresso%20IDE%20RedlinkMulti%20Driver%20v11.10%20(Jul%202%202024%2019%3A33%3A51%20-%20crt_emu_cm_redlink%20build%20741)%3C%2FP%3E%3CP%3EFound%20chip%20XML%20file%20in%20C%3A%2FUsers%2Fcarson.yu%2FDocuments%2FMCUXpressoIDE_11.10.0_3148%2Fworkspace%2Fevkmimxrt685_sctimer_pwm_with_dutycyle_change%2FDebug%5CMIMXRT685S.xml%3C%2FP%3E%3CP%3EReconnected%20to%20existing%20LinkServer%20process.%3C%2FP%3E%3CP%3EProbe%20Firmware%3A%20LPC-LINK2%20CMSIS-DAP%20V5.460%20(NXP%20Semiconductors)%3C%2FP%3E%3CP%3ESerial%20Number%3A%20DSA3CQMQ%3C%2FP%3E%3CP%3EVID%3APID%3A%201FC9%3A0090%3C%2FP%3E%3CP%3EUSB%20Path%3A%20%5C%5C%3F%5Chid%23vid_1fc9%26amp%3Bpid_0090%26amp%3Bmi_00%238%26amp%3B773e416%26amp%3B0%26amp%3B0000%23%7B4d1e55b2-f16f-11cf-88cb-001111000030%7D%3C%2FP%3E%3CP%3EUsing%20memory%20from%20core%200%20after%20searching%20for%20a%20good%20core%3C%2FP%3E%3CP%3Eprocessor%20is%20in%20secure%20mode%3C%2FP%3E%3CP%3Edebug%20interface%20type%20%3D%20CoreSight%20DP%20(DAP%20DP%20ID%206BA02477)%20over%20SWD%20TAP%200%3C%2FP%3E%3CP%3Eprocessor%20type%20%3D%20Cortex-M33%20(CPU%20ID%2000000D21)%20on%20DAP%20AP%200%3C%2FP%3E%3CP%3Enumber%20of%20h%2Fw%20breakpoints%20%3D%208%3C%2FP%3E%3CP%3Enumber%20of%20flash%20patches%20%3D%200%3C%2FP%3E%3CP%3Enumber%20of%20h%2Fw%20watchpoints%20%3D%204%3C%2FP%3E%3CP%3EProbe(0)%3A%20Connected%26amp%3BReset.%20DpID%3A%206BA02477.%20CpuID%3A%2000000D21.%20Info%3A%20%3CNONE%3E%3C%2FNONE%3E%3C%2FP%3E%3CP%3EDebug%20protocol%3A%20SWD.%20RTCK%3A%20Disabled.%20Vector%20catch%3A%20Disabled.%3C%2FP%3E%3CP%3EContent%20of%20CoreSight%20Debug%20ROM(s)%3A%3C%2FP%3E%3CP%3ERBASE%20E00FE000%3A%20CID%20B105100D%20PID%200000095000%20ROM%20(type%200x1)%3C%2FP%3E%3CP%3EROM%201%20E00FF000%3A%20CID%20B105100D%20PID%2004000BB4C9%20ROM%20(type%200x1)%3C%2FP%3E%3CP%3EROM%202%20E000E000%3A%20CID%20B105900D%20PID%2004000BBD21%20CSt%20ARM%20ARMv8-M%20type%200x0%20Misc%20-%20Undefined%3C%2FP%3E%3CP%3EROM%202%20E0001000%3A%20CID%20B105900D%20PID%2004000BBD21%20CSt%20ARM%20DWTv2%20type%200x0%20Misc%20-%20Undefined%3C%2FP%3E%3CP%3EROM%202%20E0002000%3A%20CID%20B105900D%20PID%2004000BBD21%20CSt%20ARM%20FPBv2%20type%200x0%20Misc%20-%20Undefined%3C%2FP%3E%3CP%3EROM%202%20E0000000%3A%20CID%20B105900D%20PID%2004000BBD21%20CSt%20ARM%20ITMv2%20type%200x43%20Trace%20Source%20-%20Bus%3C%2FP%3E%3CP%3EROM%202%20E0041000%3A%20CID%20B105900D%20PID%2004002BBD21%20CSt%20ARM%20ETMv4.0%20type%200x13%20Trace%20Source%20-%20Core%3C%2FP%3E%3CP%3EROM%202%20E0042000%3A%20CID%20B105900D%20PID%2004000BBD21%20CSt%20ARM%20CTIv2%20type%200x14%20Debug%20Control%20-%20Trigger%2C%20e.g.%20ECT%3C%2FP%3E%3CP%3EROM%201%20E0040000%3A%20CID%20B105900D%20PID%2004000BBD21%20CSt%20type%200x11%20Trace%20Sink%20-%20TPIU%3C%2FP%3E%3CP%3ENXP%3A%20MIMXRT685S%3C%2FP%3E%3CP%3EDAP%20stride%20is%201024%20bytes%20(256%20words)%3C%2FP%3E%3CP%3EInspected%20v.2%20External%20Flash%20Device%20on%20SPI%20using%20SFDP%20JEDEC%20ID%20MIMXRT600_FlexSPI_B_MXIC_OPI.cfx%3C%2FP%3E%3CP%3EImage%20'MIMXRT600_FlexSPI_B_MXIC_OPI%20Jul%202%202024%2018%3A29%3A23'%3C%2FP%3E%3CP%3EOpening%20flash%20driver%20MIMXRT600_FlexSPI_B_MXIC_OPI.cfx%3C%2FP%3E%3CP%3EVECTRESET%20requested%2C%20but%20not%20supported%20on%20ARMv8-M%20CPUs.%20Using%20SOFTRESET%20instead.%3C%2FP%3E%3CP%3EUsing%20SOFT%20reset%20to%20run%20the%20flash%20driver%3C%2FP%3E%3CP%3EFlash%20variant%20'JEDEC_FlexSPI_Device'%20detected%20(64MB%20%3D%201024*64K%20at%200x8000000)%3C%2FP%3E%3CP%3EClosing%20flash%20driver%20MIMXRT600_FlexSPI_B_MXIC_OPI.cfx%3C%2FP%3E%3CP%3EConnected%3A%20was_reset%3Dtrue.%20was_stopped%3Dfalse%3C%2FP%3E%3CP%3EAwaiting%20telnet%20connection%20to%20port%203330%20...%3C%2FP%3E%3CP%3EGDB%20nonstop%20mode%20enabled%3C%2FP%3E%3CP%3EOpening%20flash%20driver%20MIMXRT600_FlexSPI_B_MXIC_OPI.cfx%20(already%20resident)%3C%2FP%3E%3CP%3EVECTRESET%20requested%2C%20but%20not%20supported%20on%20ARMv8-M%20CPUs.%20Using%20SOFTRESET%20instead.%3C%2FP%3E%3CP%3EUsing%20SOFT%20reset%20to%20run%20the%20flash%20driver%3C%2FP%3E%3CP%3EFlash%20variant%20'JEDEC_FlexSPI_Device'%20detected%20(64MB%20%3D%201024*64K%20at%200x8000000)%3C%2FP%3E%3CP%3EWriting%2035604%20bytes%20to%20address%200x08000000%20in%20Flash%3C%2FP%3E%3CP%3ESectors%20written%3A%200%2C%20unchanged%3A%201%2C%20total%3A%201%3C%2FP%3E%3CP%3EErased%2FWrote%20sector%200-0%20with%2035604%20bytes%20in%2041msec%3C%2FP%3E%3CP%3EClosing%20flash%20driver%20MIMXRT600_FlexSPI_B_MXIC_OPI.cfx%3C%2FP%3E%3CP%3EFlash%20Write%20Done%3C%2FP%3E%3CP%3EFlash%20Program%20Summary%3A%2035604%20bytes%20in%200.04%20seconds%20(848.04%20KB%2Fsec)%3C%2FP%3E%3CP%3EStarting%20execution%20using%20system%20reset%20and%20halt%20target%20with%20a%20stall%20address%3C%2FP%3E%3CP%3ERetask%20read%20watchpoint%201%20at%200x50002034%20to%20use%20for%20boot%20ROM%20stall%3C%2FP%3E%3CP%3Eprocessor%20is%20in%20non-secure%20mode%3C%2FP%3E%3CP%3Estate%20-%20running%20or%20following%20reset%20request%20-%20re-read%20of%20state%20failed%20-%20rc%20Nn(05).%20Wire%20ACK%20Fault%20in%20DAP%20access%3C%2FP%3E%3CP%3Estate%20-%20running%20or%20following%20reset%20request%20-%20re-read%20of%20state%20failed%20-%20rc%20Nn(05).%20Wire%20ACK%20Fault%20in%20DAP%20access%3C%2FP%3E%3CP%3E%3CSPAN%3EWarning%20-%20processor%20did%20not%20halt%20-%20gave%20up%20waiting%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3Eflash%20-%20system%20reset%20failed%20-%20Ep(04).%20Cannot%20halt%20processor.%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ETarget%20error%20from%20Commit%20Flash%20write%3A%20Ep(04).%20Cannot%20halt%20processor.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EGDB%20stub%20(D%3A%5Cnxp%5CLinkServer_1.6.133%5Cbinaries%5Ccrt_emu_cm_redlink)%20terminating%20-%20GDB%20protocol%20problem%3A%20Pipe%20has%20been%20closed%20by%20GDB.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Estate%20-%20running%20or%20following%20reset%20request%20-%20re-read%20of%20state%20failed%20-%20rc%20Nn(05).%20Wire%20ACK%20Fault%20in%20DAP%20access%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%89%A7%E8%A1%8C%E8%BF%87%20mass%20erase%2C%20%E6%B2%A1%E4%BB%80%E4%B9%88%E7%94%A8%EF%BC%8C%E8%B7%AA%E6%B1%82%E5%8A%A9%E8%B7%AA%E6%B1%82%E6%8C%87%E6%95%99%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E