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.

48 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
1 Reply

4 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
%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