SWD configuration error when flashing a code into the KW38-ER-RD board

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

SWD configuration error when flashing a code into the KW38-ER-RD board

1,974 Views
ArianRF
Contributor IV

Hi NXP team,

I have a KW38-ER-RD board and have problem flashing a code into it during the "debug" procedure of "IDE".  The snapshot of the error is attached here.

This happened after I loaded a BLE code into it which I assume it has put the device in sleep mode. I however, has tried pushing the SW3 a few times to wake it up, but it was not successful. Any suggestion?

 

Regards,

Nader

 

ArianRF_0-1664465749760.png

 

0 Kudos
17 Replies

1,946 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @ArianRF,

Could you please help us with a picture of your board? Also, which BLE project did you load into your device?

If this is your own design, more information about this board would be very helpful.

Regards,
Eduardo.

0 Kudos

1,944 Views
ArianRF
Contributor IV

Hello @EduardoZamora 

The board is  and the picture is attached.

I have loaded the "frdmkw38_beacon_freertos" 

Please let me know if you need more info.

Thanks

Nader20220930_094955.jpg

Tags (1)
0 Kudos

1,953 Views
ArianRF
Contributor IV

@EduardoZamora 

Hi Eduardo,

Any suggestion for this issue?

Regards,

Nader

0 Kudos

1,918 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please help me confirm the following ? I see that you mention to be using the frdmkw38_beacon_freertos . Could you please help me validate the following information of the  KW38-ER-RD Module Board User's Guide? 

The KW38-ER-RD is supported by the NXP SDK, you can use the following keywords as a reference
KW38-ER-RD, this is the correct package to use with the board you have .

By any chance, could you please help us with an image of how your computer shows the device manager for the device ? Also , by any chance, do you have an external debugger?

 

Regards

 

0 Kudos

1,909 Views
ArianRF
Contributor IV

Hello @estephania_mart 

I successfully downloaded the SDK for KW38-ER-RD and tried to load the "Hello world" example but it still gives me the same error:

ArianRF_1-1664896112816.png

--------

I also checked the Device Manager. It shows USB Serial Device (COM7):

ArianRF_0-1664895967371.png

I am not clear about the external debugger. I am using the IDE (MCUExpresso). I think loading the "frdmkw38_beacon_freertos" has put the device in low power and the open SDA is not working properly. I have tried to reset the SW3 but still not successful. This happened another time with FRDM-KW38 board and  Eduardo ( @EduardoZamora ) helped me on this. I was able to make it up and running after a few pressing of SW3. However this time, for KW38-ER-RD I can't get it work. 

Regards,

Nader

0 Kudos

1,883 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello,

Could you please try pressing repeatedly SW2 while target discovery is running?

Just to confirm, does your debug probe implement J-Link firmware or is it CMSIS-DAP firmware?

Regards,
Eduardo.

0 Kudos

1,877 Views
ArianRF
Contributor IV

Hi @EduardoZamora 

I am not sure but I think it is CMSIS-DAP. How can I find out?

This is the snapshot I took while loading the "hello world" from SDK:

ArianRF_0-1665063638218.png

 

I have tried pressing SW2 while clicked on "debug" button on IDE, still it gives me same error.

Regards,

Nader

0 Kudos

1,838 Views
ArianRF
Contributor IV

@EduardoZamora @estephania_mart 

Hello,

I have tried pressing SW2 but still no success. Any other suggestions?

Thanks

Nader

0 Kudos

1,766 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello,

I apologize for the late response.

Could you please try updating to the latest OpenSDA version available for this device following the procedure shown in this article? Please, try with the binary for the J-Link version.

Regards,
Eduardo.

0 Kudos

1,751 Views
ArianRF
Contributor IV

Hi @EduardoZamora 

A couple of questions from the instructions you sent me the link:

  1. Press and hold the Reset button (SW1 push button in the board).  --> My board is KW38 ERRD. It does not have the reset button (SW1). It has SW2 and SW3 for K38 and K22 reset.
  2. Unplug and plug the FRDM-KW36 again to the PC. 
  3. The board will be enumerated as "DAPLINKBOOT" device.
  4. Drag and drop the binary file to update the OpenSDA firmware. --> How exactly I do this drag and drop? On the IDE, it does not seem working. Please advice

Thanks

Nader

0 Kudos

1,745 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

For step 1, instead of SW1, please try with SW2.

For step 4, please drag and drop the binary into the device enumerated in your file explorer.

EduardoZamora_0-1665608796225.png

Regards,
Eduardo.

0 Kudos

1,734 Views
ArianRF
Contributor IV

Hi @EduardoZamora 

After a few attempts of several openSDA files , "46_OpenSDA_FRDM-KW36.bin" worked well.

The "53_OpenSDA_FRDM-KW38.bin" was not working when I drag and dropped it. However, after the successful drag and drop of "46_OpenSDA_FRDM-KW36.bin", I was able to drag and drop  "53_OpenSDA_FRDM-KW38.bin". However, here I face a couple of new errors.

1st, the windows does not recognize the board anymore:

ArianRF_0-1665683598317.png

2nd, the IDE gives me a new error message:

ArianRF_1-1665683645043.png

 

Any idea?

Thanks for the support

Nader

 

0 Kudos

1,701 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Could you please confirm if you can access/debug the KW38 by using an external debugger (through SWD connector)? Example of this external debugger is the MCU-Link Pro Debug Probe and SWD connector for the KW38 should be J1.

Regards,
Eduardo.

0 Kudos

1,683 Views
ArianRF
Contributor IV

Hi @EduardoZamora 

I don't have this  MCU-Link Pro Debug Probe in house.

Are you suggesting to but this board in order to debug the KW38-ER-RD?

Cheers,

Nader

0 Kudos

1,676 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

Please, consider using an external debug probe just to verify that KW38 chipset is still working.

Regards,
Eduardo.

0 Kudos

1,665 Views
ArianRF
Contributor IV

Hi @EduardoZamora 

I need a bit more detail in your guidance here. What exactly do I need to use as "external debug" probe?

Do I need to purchase  MCU-Link Pro Debug Probe as the "external debug" probe?

Thanks

Nader

0 Kudos

1,632 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

The MCU-Link Pro is a fully featured debug probe that can be used with MCUXpresso IDE and 3rd party IDEs that support CMSIS-DAP and/or J-Link protocols, so I would recommend using this device as external debug probe.

Regards,
Eduardo.

0 Kudos