Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
frdm-k64f firmware upgrade
Hi I observed that from sudden my k64f board has stopped working, when every I upload a new bin file into it, it gives me the SWD error, I tried to upgrade the firmware and now it is giving me "The interface firmware FAILED to reset/halt the target MCU" error. Can any one help me how can I fix this error??
thanks in advance
1 Answer
9 years, 1 month ago.
Hi, looks like you locked your interface chip? or also target chip. Do you have external debugger? Or just use pyOCD, find it on github, where are some scripts, one of them test_script also tries to unlock the target (K64F) chip if it's locked. I use usually jlink console , you can find what I did (http://0xc0170.github.io/tutorial/pyocd/2013/12/03/unlocking-kl25z-with-jlink-console/))
Thanks for your answer, I am kinda lost here, what do you mean by external debuuger or pyocd how can I use them do i need any other hardware
posted by 27 Feb 2015for pyOCD, no, just your board, go to https://github.com/mbedmicro/pyOCD, follow instructions, run this one which tests the kinetis target https://github.com/mbedmicro/pyOCD/blob/master/test/blank_test.py
External debugger as jlink or ulink for example. althouhg another option - You can switch your board (its itnerface) to jlink (called jlink opensda), you can find it on segger website or google that expression. Version v2.0 or v2.1 will work for k64f, download jlink command line and use commands I described on my blog. So you either try pyOCD to test device | unlock or use jlink command line.
posted by 27 Feb 2015