After the JTAG_TCLK/ SWD_CLK pin multiple as GPIO,and then cannot download the program anymore!

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

After the JTAG_TCLK/ SWD_CLK pin multiple as GPIO,and then cannot download the program anymore!

2,864 Views
qzy_perfect
Contributor III

After the JTAG_TCLK/ SWD_CLK pin multiple as GPIO,and then cannot download the program anymore!

Please help me,thanks!

0 Kudos
Reply
16 Replies

2,493 Views
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 Kudos
Reply

2,493 Views
miduo
NXP Employee
NXP Employee

Hello,

So you are using the NXP TWR-KE18F? If yes, then please make reference below post on how to re-flash the board.

https://community.nxp.com/message/886242

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hi,

Yes,I am using the NXP TWR-KE18F512VLL16.   I try it, but it also doesn't work.

Thanks, looking for your further attention, and have a good day.

qzy

0 Kudos
Reply

2,493 Views
mjbcswitzerland
Specialist V

Hi

See chapter 23 in the KE1xF user's manual and https://www.nxp.com/docs/en/user-guide/KFLLDRUG.pdf :


regards

Mark

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hi Mark,

   I have seen it. Ridiculously,I am a little silly and don't know what to do.

   Hopefully you can write a step so that I can do with it.

   Thanks. Have a good day.

   qzy

0 Kudos
Reply

2,493 Views
mjbcswitzerland
Specialist V

Hi

1. Connect BOOTCFG0 to GND

pastedImage_2.png

The BOOTCFG0 pin location  is not specified in the KE18's documentation so you may need to ask NXP where it is located.
2. Connect a serial interface to LPUART0 (PTB1 and PTB2) or LPUART 1 (PTC6 and PTC7)
3. Run the KinetisFlashTool on the PC
4. Connect to the board
5. Command an erase

Regards

Mark

P.S. It is possible that the boot loader is disabled (in the flash configuration) in which case you may need to get a new board and be very careful to not do the same configuration.

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hi Mark,

     Here is not a phone number of NXP. So, 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 Kudos
Reply

2,493 Views
mjbcswitzerland
Specialist V

Hi

I don't think that the un-secure command is what you need (this won't necessarily change the loaded code from disabling the pins) - you need the mass erase command to restart with a "fresh" chip.

Regards

Mark

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hi, Mark

So,What is the mass erase command.

Looking for your reply.

qzy

0 Kudos
Reply

2,493 Views
mjbcswitzerland
Specialist V

Hi

Try holding the CPU in reset (eg. by holding reset button) when you connect to the board with the debugger.
While the debugger is trying to connect release the reset button and it may then have time to take control of the processor before the pins are reconfigured.

Alternatively try setting the debugger option to "erase on connection". This often also allows it to recover for such states.

Regards

Mark


uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html

uTasker - for more performance and faster, cheaper product development

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hi Mark,

Thanks for your reply. I've tried it under your guidline, but it doesn't work. My board cannot identify the "CMSIS-DAP".

The situation is as follows.

pastedImage_1.pngpastedImage_2.png

pastedImage_3.png

pastedImage_4.png

Looking for your futher discussion.Have a good day.

qzy

0 Kudos
Reply

2,493 Views
mjbcswitzerland
Specialist V

Hi

Have you also disabled/reconfigured the reset pin?
If you, this may make it difficult or even impossible for the debugger to be able to communicate.

What you can also do is to use the KE18's internal boot loader (Kboot) to erase the flash with and thus recover the device.

Regards

Mark

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hi Mark,

   I may be reconfigure the reset pin as a GPIO. It cannot be recovered anymore?

pastedImage_1.png

   Moreover,  how to use the KE18's internal boot loader (Kboot) to erase the flash? Would you tell me more futher.

  Thanks,have a good day.

  qzy

0 Kudos
Reply

2,493 Views
miduo
NXP Employee
NXP Employee

Hello,

Please let me know what NXP part are you using?

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hello Fang Li,

Thanks for your reply.The NXP board what I using is MKE18F512VLL16.

It shall be the JTAG/SWD pin being multiplexed as GPIO.And then,I cannot dowload program again

0 Kudos
Reply

2,493 Views
qzy_perfect
Contributor III

Hello Fang Li

   Thanks for your reply.The NXP board what I using is MKE18F512VLL16.

   It shall be the JTAG/SWD pin being  multiplexed as GPIO.And then,I cannot dowload program again.

pastedImage_1.png

0 Kudos
Reply