AnsweredAssumed Answered

MK22FN128 VS MK22FN512 Programming Issue

Question asked by Nathan Zimmerman on Nov 11, 2015
Latest reply on Nov 12, 2015 by Nathan Zimmerman

Are there any fundamental differences between the MK22FN128 and the MK22FN512 in order to be able to program? I can detect the MK22FN128 chip & read the device ID(using USBDM), I can mass erase the MK22FN128, but I get the following error when programming: "Failed to read from target".

Note I have the "device security" set to unsecured and have tried a few mass erases to fix any issue with not being able to write/read flash. To test my hardware, I hot-aired on a MK22FN512 and made a new project for that. I am able to successfully program the MK22FN512 just fine. Seems like it may be an issue with the IDE/Programmer/device info in kinetis studios?


Note for the MK22FN128, there is no onboard voltage regulator, so if my understanding is correct, you have to feed 3.3V into pin7 (USBVDD, see datasheet page 7) as opposed to where this is an output pin on the MK22FN512. That is the only hardware difference i'm aware of. Note there is a mistake in the datasheet on the MK22FN128 in this regard since it references the vreg pin(pin 8) which does not exist on that model. I left pin 8 floating on the MK22FN128 since it was labeled as "NC" on page 54 of the datasheet. Below is the datasheets recommended pin strapping.


So unless there any unlisted magical boot pin differences between the 512 versus the 128 that are not listed, the issue seems to be somewhere at the programmer/kinetis studio level. Any ideas / help would be greatly appreciated!