KW45B41Z EVK not programming over on board Debugger MCU Link.

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

KW45B41Z EVK not programming over on board Debugger MCU Link.

483 Views
kaif1
Contributor II

Hi,

I am trying to program the KW45B41Z-EVK using the kw45b41zevk_hello_world SDK example code. When I start debugging, the onboard debugger gets detected, but then I get the following error:

0 Available SWD Devices detected.
Connect a device and try again.

I have connected the USB cable to J14 and left JP22 open (to program using the onboard debugger itself). Also, JP28 pins 1 and 2 are shorted, as mentioned in the KW45UM. However, even after that, I am unable to program and debug the example.

I have also tried the kw45b41zevk_led_blinky SDK example, but it behaves in the same way.

I also tried using an external debugger to debug the board by shorting JP22, as mentioned in the KW45UM, but I am getting the same issue.

I have attached a screenshot of the issue I am facing.

I also tried to erase the flash and write the image using the Secure Provisioning Tool. First, I entered ISP mode by shorting JP25 to enable SW4, then long-pressed SW4 and Reset (SW3). Once the Test Connection passed, I erased the flash (location 0x00000000, size 0x100000) successfully. Then I used the following image:

${SPT_INSTALL_BIN}\data\sample_data\targets\KW45B41Z8\source_images\kw45b41zevk_led_blinky.s19

I was able to build and program the image successfully, and the intended RGB LED1 is also blinking indicating that KW45B41Z microcontroller is working fine. However, even after this, I am still unable to program or debug the board.

0 Kudos
Reply
3 Replies

48 Views
craig15miller
Contributor I

Since the Secure Provisioning Tool can successfully flash and run code on the chip, the physical hardware is completely fine, meaning the "0 SWD Devices detected" error stems from a communication mismatch between your IDE's debug probe server and the onboard MCU-Link firmware. This is usually resolved by updating the MCU-Link firmware to the latest version compatible with your IDE, or by manually holding down the reset button during the connection sequence to prevent a low-power application state from locking out the debug interface.

0 Kudos
Reply

439 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @kaif1 

Which IDE are you using? 

MCUXpresso IDE or MCUXpresso for VS Code?

Let me have a try on my side, then let you know the default jumper settings.

 

Best regards,

Christine.

0 Kudos
Reply

387 Views
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @kaif1 

Please refer to my jumper settings, and I verified on my local side, I can flash hello_world example into the board successfully.

And I am using MCUXpresso IDE with SDK 25.12.00.

Please have a try with my jumper settings and then let me know whether it works for you .

 

Best regards,

Christine.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2398068%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKW45B41Z%20EVK%20not%20programming%20over%20on%20board%20Debugger%20MCU%20Link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398068%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20am%20trying%20to%20program%20the%20%3CSTRONG%3EKW45B41Z-EVK%3C%2FSTRONG%3E%20using%20the%20%3CSTRONG%3Ekw45b41zevk_hello_world%3C%2FSTRONG%3E%20SDK%20example%20code.%20When%20I%20start%20debugging%2C%20the%20onboard%20debugger%20gets%20detected%2C%20but%20then%20I%20get%20the%20following%20error%3A%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E0%20Available%20SWD%20Devices%20detected.%3CBR%20%2F%3E%3CSTRONG%3EConnect%20a%20device%20and%20try%20again.%3C%2FSTRONG%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20have%20connected%20the%20USB%20cable%20to%20%3CSTRONG%3EJ14%3C%2FSTRONG%3E%20and%20left%20%3CSTRONG%3EJP22%20open%3C%2FSTRONG%3E%20(to%20program%20using%20the%20onboard%20debugger%20itself).%20Also%2C%20%3CSTRONG%3EJP28%20pins%201%20and%202%20are%20shorted%3C%2FSTRONG%3E%2C%20as%20mentioned%20in%20the%20%3CSTRONG%3EKW45UM%3C%2FSTRONG%3E.%20However%2C%20even%20after%20that%2C%20I%20am%20unable%20to%20program%20and%20debug%20the%20example.%3C%2FP%3E%3CP%3EI%20have%20also%20tried%20the%20%3CSTRONG%3Ekw45b41zevk_led_blinky%3C%2FSTRONG%3E%20SDK%20example%2C%20but%20it%20behaves%20in%20the%20same%20way.%3C%2FP%3E%3CP%3EI%20also%20tried%20using%20an%20external%20debugger%20to%20debug%20the%20board%20by%20shorting%20%3CSTRONG%3EJP22%3C%2FSTRONG%3E%2C%20as%20mentioned%20in%20the%20%3CSTRONG%3EKW45UM%3C%2FSTRONG%3E%2C%20but%20I%20am%20getting%20the%20same%20issue.%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20screenshot%20of%20the%20issue%20I%20am%20facing.%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20also%20tried%20to%20erase%20the%20flash%20and%20write%20the%20image%20using%20the%20%3CSTRONG%3ESecure%20Provisioning%20Tool%3C%2FSTRONG%3E.%20First%2C%20I%20entered%20ISP%20mode%20by%20shorting%20%3CSTRONG%3EJP25%3C%2FSTRONG%3E%20to%20enable%20%3CSTRONG%3ESW4%3C%2FSTRONG%3E%2C%20then%20long-pressed%20%3CSTRONG%3ESW4%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EReset%20(SW3)%3C%2FSTRONG%3E.%20Once%20the%20%3CSTRONG%3ETest%20Connection%3C%2FSTRONG%3E%20passed%2C%20I%20erased%20the%20flash%20(location%20%3CSTRONG%3E0x00000000%3C%2FSTRONG%3E%2C%20size%20%3CSTRONG%3E0x100000%3C%2FSTRONG%3E)%20successfully.%20Then%20I%20used%20the%20following%20image%3A%3C%2FP%3E%3CP%3E%24%7BSPT_INSTALL_BIN%7D%5Cdata%5Csample_data%5Ctargets%5CKW45B41Z8%5Csource_images%5Ckw45b41zevk_led_blinky.s19%3C%2FP%3E%3CP%3EI%20was%20able%20to%20build%20and%20program%20the%20image%20successfully%2C%20and%20the%20intended%20%3CSTRONG%3ERGB%20LED1%3C%2FSTRONG%3E%20is%20also%20blinking%20indicating%20that%20KW45B41Z%20microcontroller%20is%20working%20fine.%20However%2C%20even%20after%20this%2C%20I%20am%20still%20unable%20to%20program%20or%20debug%20the%20board.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2398717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20KW45B41Z%20EVK%20not%20programming%20over%20on%20board%20Debugger%20MCU%20Link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398717%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250524%22%20target%3D%22_blank%22%3E%40kaif1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhich%20IDE%20are%20you%20using%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMCUXpresso%20IDE%20or%20MCUXpresso%20for%20VS%20Code%3F%3C%2FP%3E%0A%3CP%3ELet%20me%20have%20a%20try%20on%20my%20side%2C%20then%20let%20you%20know%20the%20default%20jumper%20settings.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EChristine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2399821%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20KW45B41Z%20EVK%20not%20programming%20over%20on%20board%20Debugger%20MCU%20Link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2399821%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F250524%22%20target%3D%22_blank%22%3E%40kaif1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20my%20jumper%20settings%2C%20and%20I%20verified%20on%20my%20local%20side%2C%20I%20can%20flash%20hello_world%20example%20into%20the%20board%20successfully.%3C%2FP%3E%0A%3CP%3EAnd%20I%20am%20using%20MCUXpresso%20IDE%20with%20SDK%2025.12.00.%3C%2FP%3E%0A%3CP%3EPlease%20have%20a%20try%20with%20my%20jumper%20settings%20and%20then%20let%20me%20know%20whether%20it%20works%20for%20you%20.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EChristine.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415672%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20KW45B41Z%20EVK%20not%20programming%20over%20on%20board%20Debugger%20MCU%20Link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415672%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESince%20the%20Secure%20Provisioning%20Tool%20can%20successfully%20flash%20and%20run%20code%20on%20the%20chip%2C%20the%20physical%20hardware%20is%20completely%20fine%2C%20meaning%20the%20%220%20SWD%20Devices%20detected%22%20error%20stems%20from%20a%20communication%20mismatch%20between%20your%20IDE's%20debug%20probe%20server%20and%20the%20onboard%20MCU-Link%20firmware.%20This%20is%20usually%20resolved%20by%20updating%20the%20MCU-Link%20firmware%20to%20the%20latest%20version%20compatible%20with%20your%20IDE%2C%20or%20by%20manually%20holding%20down%20the%20reset%20button%20during%20the%20connection%20sequence%20to%20prevent%20a%20low-power%20application%20state%20from%20locking%20out%20the%20debug%20interface.%3C%2FP%3E%3C%2FLINGO-BODY%3E