MKE18F512VLL16的RESET与SWD不小心复用为GPIO,然后下载不了程序

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MKE18F512VLL16的RESET与SWD不小心复用为GPIO,然后下载不了程序

1,838 次查看
qzy_perfect
Contributor III

你好!

      我不小心把MKE18F512VLL16的RESET与SWD复用为GPIO功能,然后下载不了程序。

      请问有什么解决办法么?这个开发板好像只能通过USB来下载程序,SWD线与USB相连的。

pastedImage_1.png

   现在Debug检测不到SWDIO设备了。

pastedImage_2.png

      望热心人走过的时候帮忙看一下,让我的开发板不要成为砖头,多谢了。

      祝你生活愉快!

标记 (1)
4 回复数

1,376 次查看
qzy_perfect
Contributor III

Hi everyone,

   Thanks for your attentions. Now my board can work again under a warm - hearted man's great answer, as the following websit.

When i connect TWR-KE18F to my PC it shows portal device instead of COM PORT. I unable to change boo... 

    Your kindly attention  is enough to warm a world. Have a good day and wish you good luck.

    qzy

0 项奖励

1,376 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hi zy q,

When you try to debug, the program takes control of the reset pin and halt it when it's need, muxing this pin doesn't let the debugger reset the MCU. So you need to erase the program that you downloaded in the MCU.

You can try this:

In the command window of the J-link, you can try erasing the flash with the following command:

pastedImage_2.png

Other option.

In the MCUXpresso, select one proyect and click the following option:

pastedImage_4.png

This will open a window where you can do some probes in you're board, select the option Resurrect locked Kinetis device and click Run.

pastedImage_5.png

This options will erase the flash of the MCU.

Hope it helps.

Alexis Andalon

1,376 次查看
qzy_perfect
Contributor III

Hi Alexis Andalon,

     Today, I retry to input the "unlock kinetis" command with the J-LINK commander tool. It seems to be working and it writes that "Found SWD-DP with ID 0x2BA01477        Unlocking device...O.K."

    But when I turn buck to  bootloader mode, it is also cannot dowload program.

pastedImage_2.png

   After the command--"unlock kinetis"  works out ,  what should I do.

  Looking for your help.Have a good day.

  qzy

0 项奖励

1,376 次查看
qzy_perfect
Contributor III

Hi Alexis Andalon,

   I try it, but it doesn't work.It  reminders that  the command is a "Unknown command".

pastedImage_1.png

   Looking for your further reply.

   Have a good day.

   qzy

0 项奖励