0 available SWD Devices detected.

cancel
Showing results for 
Search instead for 
Did you mean: 

0 available SWD Devices detected.

Jump to solution
1,021 Views
Contributor II

When I try to upload the code on my FRDMKW38 eval board, getting the error message as -> 0 available SWD Devices detected.

0 Kudos
1 Solution
745 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

   In fact, if the JLINK commander can find the ARM core, it means the hardware has no issues.

   When the IDE can't recognize it, still need to check the log details, check which steps failed.

   If you have another K38 board, you totally can check it directly, don't worry, the board won't be damaged.

 

If you still have questions about it, please kindly let me know!
Best Regards,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

View solution in original post

0 Kudos
16 Replies
757 Views
NXP TechSupport
NXP TechSupport

Add the attachment.

 

0 Kudos
757 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul,

  That's really a little strange, you are using the same IDE version as me.

   What's the SDK version you are using? SDK2.6.7?

   Please check this picture:

When you import the SDK project, please use the UART instead of the console, then try it again.

1_1.jpg1.jpg

If you still have download issue, please also give me your MCUXPresso JLINK debug log, you can find the log like my attached picture:
2.jpg
You can find my log in the attachment, you also can compare your own log with my log.

Except MCUXPresso IDE, do you have any other IDE, eg, IAR
The following picture is my IAR project test result, as you know, the SDK also contains the IAR project.

 

3.jpg4.jpg

We still have another way, you can download the code without the IDE, we can use the JLINK commander to download the app firmware .bin file directly.
Before you download the code, you can also erase it.
1. Connect the board, and find the arm core
2. use commander: unlock kinetis
to erase all the chip flash
3. commander: usb
to reconnect the chip, and find the ARM core
4. copy my attached frdmkw38_hello_world.bin to the JLINK install path:
C:\Program Files (x86)\SEGGER\JLink
5. use commander: loaderfile frdmkw38_hello_world.bin
You will find the app.bin is downloaded, please check my attached picture.

5.jpg6.jpg7.jpg

Any updated information, please kindly let me know.
Wish it helps you!
If you still have questions about it, please kindly let me know!
Best Regards,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

753 Views
Contributor II

Hi @kerryzhou 

Thanks for your reply.

When I tried uploading the code today, I was able to do that successfully, I didn't make any changes but it worked.

Thanks for your support.

Just one more question, what could be the possible list of reasons that I faced this issue because I have one more KW38 evaluation board and I would like to avoid this happening again.

 

Thanks and regards,

Vipul

0 Kudos
746 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

   In fact, if the JLINK commander can find the ARM core, it means the hardware has no issues.

   When the IDE can't recognize it, still need to check the log details, check which steps failed.

   If you have another K38 board, you totally can check it directly, don't worry, the board won't be damaged.

 

If you still have questions about it, please kindly let me know!
Best Regards,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

View solution in original post

0 Kudos
1,006 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul,

    After you connect the FRDM-KW38 to your PC, please check the control panel:

Control Panel\Hardware and Sound\Devices and Printers

 Can you find the CMSIS DAP?

Please check my side result:

20.jpg21.jpg22.jpg23.jpg

 

So, you need to check your on board debugger at first.

If you still have issues, you can enter the bootloader mode, and download the cmsis dap bootloader again, more details, please check this link:

 

https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial...

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

 

 

 

 

0 Kudos
996 Views
Contributor II

Hi @kerryzhou 

Thanks for your reply.

I can find CMSIS DAP in my control panel devices.

I am having trouble in following the steps in the link provided could you help me with that as I am new to micro-controllers

Thanks and regards

Vipul Notani 

0 Kudos
963 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

   Thanks for your updated information.

   From your picture, you already have the CMSIS DAP, you should can debug the chip through the SWD interface.

   Please tell me which IDE you are using now?

   Do you use the MCUXPresso IDE project like me?

   If you still have issues, please also give me some screenshot about your issues, then I can help you check more details.

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos
953 Views
Contributor II

Hi @kerryzhou 

Thanks for your reply.

Yes I am using MCUXPresso IDE for frdmkw38 board.

I have attached the screenshots of steps that i am Following, please check if you can find the issues .

Please let me know if you need screenshot of any specific step or any other information.

Thanks and regards

Vipul

0 Kudos
946 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

  img3.PNG is also from your side?

  That can find the DAPLink CMSIS-DAP.

   If it is not your picture, please just img4.PNG is yours.

   Then, please delete the frdmkw38_gpio_led_output_1 LinkServer Debug.launch, clean the project, and debug it again.

33.jpg

 

BTW, next time, please use insert photo to insert your picture to the post, instead of attach it, then I can see your question and picture more easily.

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos
938 Views
Contributor II

Hi @kerryzhou 

Yes, img3.PNG is from my side.

I deleted frdmkw38_gpio_led_output_1 LinkServer Debug.launch as you said and and tried debug again after cleaning the project but I am still getting the same error.

Capture1.PNGCapture2.PNGCapture3.PNGCapture4.PNG

0 Kudos
926 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

   Thanks for your updated information.

   Do you modify your FRDM-KW38 board hardware or not after you get it?

   If not, follow my steps do more deep checking.

   We need to update your onboard debugger to JLINK, then use the JLINK commander to check your core with the SWD interface at first.

1. Download the JLINK driver and install it.

https://www.segger.com/downloads/jlink/JLink_Windows.exe

Download the JLINK bootloader firmware: 53_OpenSDA_FRDM-KW38.bin , will be used later.

 https://www.segger.com/downloads/jlink/53_OpenSDA_FRDM-KW38

 

 2. Enter bootloader mode

     Power off the board, press the reset button SW1, and hold on it,at the same time, plug usb cable to J11, then release the reset button, now you will find your board is the device named as  "DAPLINKBOOT"

 

3. Send 53_OpenSDA_FRDM-KW38.bin to your "DAPLINKBOOT", and wait the sending finished

4. Power off the board and power on it again.

ok, now, open the JLINK commander from your PC start area, check the following picture and follow it:

image.pngimage.png

Now, can you find the Cortex-M0 like me?

Please check it?

Then you can delete your .launch , and use the JLINK to download the code again.

You can find I also can use the JLINK to download code.

image.pngimage.png

image.png

Please also let me know your MCUXPresso version, I am using V11.2.0

 

Wish it helps you!

Any updated information from your side, please kindly let me know.

Best Regards,

Kerry

 

921 Views
Contributor II

Hi @kerryzhou 

Thanks for your reply.

Answering to your first question -> No I haven't made any changes to the hardware after I got it.

I am also using MCUXPresso version V11.2.0 like you.

As mentioned I updated the onboard debugger to JLINK. Following are the screenshot and I am stuck where I have to enter the speed

 

Capture.PNGCapture1.PNG

 

Please let me know what steps are to be followed next.

 

Thanks and regards

Vipul

 

0 Kudos
914 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

   Just press ENTER, use the default speed is OK.

 

Best Regards

Kerry

0 Kudos
910 Views
Contributor II

Hi @kerryzhou 

I followed the steps as you suggested.

Following are the screenshots, but I am still unable to upload the code.

 

Capture.PNGCapture1.PNGCapture2.PNG

 

Please let me know what could be done next.

Thanks and regards

Vipul 

0 Kudos
890 Views
NXP TechSupport
NXP TechSupport

Hi notanivipul

  Your JLINK already can find the ARM core, that's strange you still can't use the MCUXPresso IDE to download.

  Please tell me your MCUXPress IDE version, do you use the newest version?

 

Best Regards,

Kerry

0 Kudos
862 Views
Contributor II

Hi @kerryzhou 

I am using version 11.2.0

Thanks and regards 

Vipul

0 Kudos