Hello,
We recently began evaluating the MK20DX256ZVLK10 as a replacement to our currently MK10 MCU.
The problem is that during SystemInit in Keil's default project, the MCU falls into Hard fault as soon as there is a write to MSG->C7 or MSG->C2 registers.
We are using the CLOCK_SETUP as 1 definition, that is "Multipurpose Clock Generator (MCG) in PLL Engaged External (PEE) mode Reference clock source for MCG module is an external crystal 8MHz"
(obviously we connected the crystal and our PCB works fine for the MK10 version in similar configuration)
The section is as follows:

So is there an issue with Keil's default startup of is there an issue with the MCU?
My second question is regarding the version of the MCU, we are able to acquire only the Z version, that is, MK20DX256ZVLK10. Which is not recommended for new design. Our question is it safe enough to use this version for production? or should it be used only for evaluation and for production to use the MK20DX256VLK10 version (without the Z).
Thanks