KW45: Intermittent Wire ACK Fault During Programming/Debugging and Flash Erase Failure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW45: Intermittent Wire ACK Fault During Programming/Debugging and Flash Erase Failure

62 Views
Prashanth1
Contributor III

Hi Team,

I am currently working with a KW45-based custom board and facing an intermittent issue during programming and debugging the firmware.

I have tested the board with both a SEGGER J-Link and an NXP MCU-Link debug probe, and the issue occurs with both probes.

The custom board has the same boot configuration as the KW45 EVK, and the JTAG/SWD connections have also been checked and appear to be correct.

However, I am seeing the following behaviour:

When I try to dump or program a known-working application:

  • Sometimes the application is programmed successfully, but after programming or starting a debug session, the device eventually jumps to a fault address.
  • The debugger then halts at that location.
  • During some programming or dumping attempts, I receive a Wire ACK fault.
  • At other times, MCUXpresso reports:
    Error while executing the MI command
  • I also tried to erase the flash from MCUXpresso, but the flash erase operation itself does not complete successfully.

Checks already performed

  • JTAG/SWD connections have been checked and appear to be correct.
  • The issue was tested with both a SEGGER J-Link and an NXP MCU-Link debug probe.
    Boot configuration has been compared with the KW45 EVK.
  • I am using a known-working application for testing.
    The issue is intermittent: programming sometimes succeeds, but at other times a Wire ACK fault or MI command error occurs.
  • Flash erase has also been attempted, but it does not complete successfully.

My questions

  • What could cause the KW45 to: Intermittently report a Wire ACK fault while dumping or programming code?
  • Report Error while executing the MI command?
  • Jump or halt at an unexpected or invalid memory address after programming?
  • Fail even when attempting a full flash erase?

Since the issue includes intermittent Wire ACK faults and failure during flash erase, I suspect this may be related to the debug interface, SWD/JTAG signal integrity, power-supply stability, reset sequence, flash controller state, device security/configuration, boot configuration, or another hardware-level issue rather than the application itself.

  1. Could you please suggest the recommended procedure to:
  2. Recover or erase the KW45 device.
  3. Verify that the debug interface is functioning correctly.
  4. Check whether the device is secured or in a state that prevents normal programming.
  5. Determine whether the Wire ACK fault is caused by the target hardware, debug probe, power/reset behavior, or SWD/JTAG signal integrity.

I can provide the following information if required:

  • MCUXpresso IDE version: 25.6.1
  • Debug probes tested: SEGGER J-Link and NXP MCU-Link
  • Complete error log, including the Wire ACK fault details
  • Debug console output
  • Schematic of the JTAG/SWD and boot connections
  • SWD/JTAG clock frequency
  • Power-supply and reset configuration
  • Memory/register information from the failed state

Any guidance on the recommended troubleshooting steps would be greatly appreciated.

Thanks in advance.

Tags (1)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2411879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKW45%3A%20Intermittent%20Wire%20ACK%20Fault%20During%20Programming%2FDebugging%20and%20Flash%20Erase%20Failure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2411879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20with%20a%20KW45-based%20custom%20board%20and%20facing%20an%20intermittent%20issue%20during%20programming%20and%20debugging%20the%20firmware.%3C%2FP%3E%3CP%3EI%20have%20tested%20the%20board%20with%20both%20a%20SEGGER%20J-Link%20and%20an%20NXP%20MCU-Link%20debug%20probe%2C%20and%20the%20issue%20occurs%20with%20both%20probes.%3C%2FP%3E%3CP%3EThe%20custom%20board%20has%20the%20same%20boot%20configuration%20as%20the%20KW45%20EVK%2C%20and%20the%20JTAG%2FSWD%20connections%20have%20also%20been%20checked%20and%20appear%20to%20be%20correct.%3C%2FP%3E%3CP%3EHowever%2C%20I%20am%20seeing%20the%20following%20behaviour%3A%3C%2FP%3E%3CP%3EWhen%20I%20try%20to%20dump%20or%20program%20a%20known-working%20application%3A%3C%2FP%3E%3CUL%3E%3CLI%3ESometimes%20the%20application%20is%20programmed%20successfully%2C%20but%20after%20programming%20or%20starting%20a%20debug%20session%2C%20the%20device%20eventually%20jumps%20to%20a%20fault%20address.%3C%2FLI%3E%3CLI%3EThe%20debugger%20then%20halts%20at%20that%20location.%3C%2FLI%3E%3CLI%3EDuring%20some%20programming%20or%20dumping%20attempts%2C%20I%20receive%20a%20Wire%20ACK%20fault.%3C%2FLI%3E%3CLI%3EAt%20other%20times%2C%20MCUXpresso%20reports%3A%3CBR%20%2F%3EError%20while%20executing%20the%20MI%20command%3C%2FLI%3E%3CLI%3EI%20also%20tried%20to%20erase%20the%20flash%20from%20MCUXpresso%2C%20but%20the%20flash%20erase%20operation%20itself%20does%20not%20complete%20successfully.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EChecks%20already%20performed%3C%2FP%3E%3CUL%3E%3CLI%3EJTAG%2FSWD%20connections%20have%20been%20checked%20and%20appear%20to%20be%20correct.%3C%2FLI%3E%3CLI%3EThe%20issue%20was%20tested%20with%20both%20a%20SEGGER%20J-Link%20and%20an%20NXP%20MCU-Link%20debug%20probe.%3CBR%20%2F%3EBoot%20configuration%20has%20been%20compared%20with%20the%20KW45%20EVK.%3C%2FLI%3E%3CLI%3EI%20am%20using%20a%20known-working%20application%20for%20testing.%3CBR%20%2F%3EThe%20issue%20is%20intermittent%3A%20programming%20sometimes%20succeeds%2C%20but%20at%20other%20times%20a%20Wire%20ACK%20fault%20or%20MI%20command%20error%20occurs.%3C%2FLI%3E%3CLI%3EFlash%20erase%20has%20also%20been%20attempted%2C%20but%20it%20does%20not%20complete%20successfully.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EMy%20questions%3C%2FP%3E%3CUL%3E%3CLI%3EWhat%20could%20cause%20the%20KW45%20to%3A%20Intermittently%20report%20a%20Wire%20ACK%20fault%20while%20dumping%20or%20programming%20code%3F%3C%2FLI%3E%3CLI%3EReport%20Error%20while%20executing%20the%20MI%20command%3F%3C%2FLI%3E%3CLI%3EJump%20or%20halt%20at%20an%20unexpected%20or%20invalid%20memory%20address%20after%20programming%3F%3C%2FLI%3E%3CLI%3EFail%20even%20when%20attempting%20a%20full%20flash%20erase%3F%3C%2FLI%3E%3C%2FUL%3E%3CP%3ESince%20the%20issue%20includes%20intermittent%20Wire%20ACK%20faults%20and%20failure%20during%20flash%20erase%2C%20I%20suspect%20this%20may%20be%20related%20to%20the%20debug%20interface%2C%20SWD%2FJTAG%20signal%20integrity%2C%20power-supply%20stability%2C%20reset%20sequence%2C%20flash%20controller%20state%2C%20device%20security%2Fconfiguration%2C%20boot%20configuration%2C%20or%20another%20hardware-level%20issue%20rather%20than%20the%20application%20itself.%3C%2FP%3E%3COL%3E%3CLI%3ECould%20you%20please%20suggest%20the%20recommended%20procedure%20to%3A%3C%2FLI%3E%3CLI%3ERecover%20or%20erase%20the%20KW45%20device.%3C%2FLI%3E%3CLI%3EVerify%20that%20the%20debug%20interface%20is%20functioning%20correctly.%3C%2FLI%3E%3CLI%3ECheck%20whether%20the%20device%20is%20secured%20or%20in%20a%20state%20that%20prevents%20normal%20programming.%3C%2FLI%3E%3CLI%3EDetermine%20whether%20the%20Wire%20ACK%20fault%20is%20caused%20by%20the%20target%20hardware%2C%20debug%20probe%2C%20power%2Freset%20behavior%2C%20or%20SWD%2FJTAG%20signal%20integrity.%3C%2FLI%3E%3C%2FOL%3E%3CP%3EI%20can%20provide%20the%20following%20information%20if%20required%3A%3C%2FP%3E%3CUL%3E%3CLI%3EMCUXpresso%20IDE%20version%3A%2025.6.1%3C%2FLI%3E%3CLI%3EDebug%20probes%20tested%3A%20SEGGER%20J-Link%20and%20NXP%20MCU-Link%3C%2FLI%3E%3CLI%3EComplete%20error%20log%2C%20including%20the%20Wire%20ACK%20fault%20details%3C%2FLI%3E%3CLI%3EDebug%20console%20output%3C%2FLI%3E%3CLI%3ESchematic%20of%20the%20JTAG%2FSWD%20and%20boot%20connections%3C%2FLI%3E%3CLI%3ESWD%2FJTAG%20clock%20frequency%3C%2FLI%3E%3CLI%3EPower-supply%20and%20reset%20configuration%3C%2FLI%3E%3CLI%3EMemory%2Fregister%20information%20from%20the%20failed%20state%3C%2FLI%3E%3C%2FUL%3E%3CP%3EAny%20guidance%20on%20the%20recommended%20troubleshooting%20steps%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E