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 zain aftab 27 Feb 2015

for 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 Martin Kojtal 27 Feb 2015

Do i need a python compiler as well??

posted by zain aftab 05 Mar 2015

you need python 2.x for pyOCD

posted by Martin Kojtal 05 Mar 2015

I have python 3.4 ??? is it ok ? I am running basic_test.py file, but that file is showing compilation errors is that file got error ??

posted by zain aftab 05 Mar 2015

Hi zain, If you're still having issues I would try it with python 2.7.x. There are significant changes between 2.7 and 3.4. Let me know if you're still having problems.

-Brian

posted by Brian Daniels 17 Apr 2015