Please help me,thanks!
Hi everyone,
Thanks for your attentions. Now my board can work again under a warm - hearted man's great answer, as the following websit.
Your kindly attention is enough to warm a world. Have a good day and wish you good luck.
qzy
Hello,
So you are using the NXP TWR-KE18F? If yes, then please make reference below post on how to re-flash the board.
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
Hi
See chapter 23 in the KE1xF user's manual and https://www.nxp.com/docs/en/user-guide/KFLLDRUG.pdf :
regards
Mark
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
Hi
1. Connect BOOTCFG0 to GND
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.
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.
After the command--"unlock kinetis" works out , what should I do.
Looking for your help.Have a good day.
qzy
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
Hi, Mark
So,What is the mass erase command.
Looking for your reply.
qzy
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
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.
Looking for your futher discussion.Have a good day.
qzy
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
Hi Mark,
I may be reconfigure the reset pin as a GPIO. It cannot be recovered anymore?
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
Hello,
Please let me know what NXP part are you using?
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
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.