[openocd:tickets] #236 Cannot flash Kinetis Z parts

2022-06-03 Thread Martin Hierholzer
I submitted the patch to Gerrit: https://review.openocd.org/c/openocd/+/7015 I hope I got your comments right :-) --- ** [tickets:#236] Cannot flash Kinetis Z parts** **Status:** new **Milestone:** 0.9.0 **Created:** Thu May 02, 2019 09:41 AM UTC by Ramy **Last Updated:** Mon May 30, 2022 03:4

[openocd:tickets] #236 Cannot flash Kinetis Z parts

2022-05-30 Thread Martin Hierholzer
Thanks for the fast reply! I will submit this to Gerrit once I have addressed your first comments. About the REVID: The interface switch was done between Revision 1.x and 2.x. This is described in this NXP document: https://www.nxp.com.cn/docs/en/application-note/AN4445.pdf My MK60 chip has th

[openocd:tickets] #236 Cannot flash Kinetis Z parts

2022-05-27 Thread Tom
Martin, you should also consider this: KL devices have a FOPT option to run in VLPR mode on exit from reset. Switching from VLPR to RUN mode is necessary for KL devices, because the device can be in VLPR mode after 'reset init' and without switching to RUN mode any flash programming fails. Unlike

[openocd:tickets] #236 Cannot flash Kinetis Z parts

2022-05-27 Thread Tom
Martin, thanks for working on this issue. Could you please submit the patch to our gerrit at https://review.openocd.org See https://openocd.org/doc/doxygen/html/patchguide.html for details. IMO we should detect "Initial Product Rev" (Z part) more precisely. I browsed Freescale docs and "Initial Pr

[openocd:tickets] #236 Cannot flash Kinetis Z parts

2022-05-27 Thread Martin Hierholzer
I am having the same problem. I created a patch to fix this: https://github.com/mhier/openocd/commit/521f516ec6874b5f9da379247015530fb5a122a4 This has been tested with a MK60DN512ZVMC10. Due to lack of hardware, I cannot test this with revision 2.x chips (i.e. without the Z). Also I am not using

[OpenOCD-devel] [openocd:tickets] #236 Cannot flash Kinetis Z parts

2019-05-03 Thread Tom via OpenOCD-devel
Thanks for the report. SMC_PMSTAT is checked because flashing in VLPR mode is not possible. When I implemented this check, I did not know about "Initial Product Rev" (Z part). RM reads that Z dev has a Mode Controller instead of SMC at 0x4007e000. So to fix this problem correctly, we should intr

[OpenOCD-devel] [openocd:tickets] #236 Cannot flash Kinetis Z parts

2019-05-02 Thread Ramy via OpenOCD-devel
--- ** [tickets:#236] Cannot flash Kinetis Z parts** **Status:** new **Milestone:** 0.9.0 **Created:** Thu May 02, 2019 09:41 AM UTC by Ramy **Last Updated:** Thu May 02, 2019 09:41 AM UTC **Owner:** nobody I am using a Kinetis MK20DN512**Z**VLQ10 which is an earlier version of the MK20DN51