Hi,
I am trying to develop embedded software for my new design. I used MKE04Z8VTG4 microcontroller in this project. And you can find the schematic of microcontroller's pins below to see the connections. I dont use crystal as a external clock source. I want to use internal reference clock with FLL. 
While I was trying to start up the system. I realized that code is stopping somewhere. By trying to set a output pin to high after line by line in code, and observing this output pin, I found the line where program hangs.


I tried two different code to initialize clock source, actually they are almost same. The upper one is from sdk library, the bottom one is taken from "KE04 Sub-Family Reference Manual".
MCUXpresso(MCUXpressoIDE_11.3.0_5222),
SDK(SDK_2.9.0_MKE04Z8xxx4) and
MCUXpresso Config tools(MCUXpresso_Config_Tools_v9_x64) are latest versions.
I realized that, in debug mode everything works good. But If I program the MCU in release mode, it hangs.
In Release mode program cannot pass the FLL lock check line. Has anyone any idea? Thank you,
Okan,