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:
Checks already performed
My questions
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.
I can provide the following information if required:
Any guidance on the recommended troubleshooting steps would be greatly appreciated.
Thanks in advance.
Hi Ma'am,
Thank you for your detailed response.
Regarding the hardware details:
BOOT_CFG (PTA4) pull-down: Yes, the BOOT_CFG (PTA4) net has a pull-down resistor to GND on our custom board.
VDD_SYS and VDD_CORE decoupling capacitors: Yes, the required decoupling capacitors are populated on the board. I have attached the relevant schematic sections/images showing the VDD_SYS and VDD_CORE connections and decoupling capacitors.
Meanwhile, I will proceed with the steps you suggested to access the device through ISP mode and will try the blhost commands to check the device state and perform the mass erase.
Regarding the application that was previously running:
The application is based on FreeRTOS and integrates the following peripherals/modules:
FreeRTOS
LPSPI0 with DMA
GPIO
LPSPI1 with FIFO
WDOG
Regarding the low-power question, I did not intentionally use any specific low-power example in the application.
I will perform the ISP recovery procedure and let you know the results, particularly for:
get-property 1
get-property 07
flash-erase-all
flash-erase-all 2
Please let me know if there are any additional hardware checks or measurements you recommend while I perform these tests.
Prashanth1_0-1789454497591.pngPrashanth1_0-1789454497591.pngPrashanth1_0-1789454497591.png
Prashanth1_1-1789454501864.pngPrashanth1_1-1789454501864.pngPrashanth1_1-1789454501864.png
Thanks again for your support.
Best regards,
Prashanth
Hello, hope you are doing well.
Firstly, could you please confirm some hardware details from your custom board:
Does the BOOT_CFG (PTA4) net have a pull-down resistor to GND? Are the VDD_SYS and VDD_CORE decoupling capacitors populated? As these are required to provide a feedback path and maintain voltage stability on the internal regulator output.
To attempt to recover the device, please try the following steps:
Are you able to access your device through ISP mode? For this, pull BOOT_CONFIG (PTA4) high during reset to force the device into ISP mode (on a KW47-EVK this is SW4)
Once in ISP mode, open a command prompt and run the following commands:
# Confirms ROM bootloader communication is working, a successful response confirms the device is reachable via ISP
blhost.exe -p COMX get-property 1
# Reveals whether the device is in OEM_OPEN or a secured lifecycle state
blhost.exe -p COMX get-property 07
# Perform a mass erase of the CM33 and NBU Program Flash
blhost.exe -p COMX flash-erase-all
blhost.exe -p COMX flash-erase-all 2
Afterwards, you could try running a hello_world or BLE example to make sure the board is working properly.
Also, just to confirm, which application did you run previously? Did you test with any low power examples? It is also possible that the device entered a low‑power state, disabling the SWD debug interface during low-power operation, which would prevent LinkServer or J-Link from connecting normally
Best regards,
Sofia.