Hey guys,

I've been having issues with OpenOCD and my Kinetis K20 chip - I was
getting the error message "ftfx command failed FSTAT".  I started
looking through kinetis.c, and discovered that by having the code wait a
little longer before failing, everything worked fine.

On line 243 there is a for loop that checks the FSTAT register of the
chip, waiting for the operation to finish.  By changing the value in the
for loop from 50 to 100000 the error went away, and the flash is now
programmed correctly.

I'm not an OpenOCD developer, so wasn't planning on submitting a patch,
but I wanted to let you guys know about it.  I'm sure it's a quick fix.

Cheers

Marlon
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to