Hi Igor,
My customer have checked that the same issue had occurred on NXP/EVK board as well. For the reproducing the issue, they made IAR/EW’s project file.
The compiled image is to be downloaded via JTAG from IAR/EW.
If you can reproduce the issue with IAR environment, I can send the project file to you.
If you need it, please let me know the way to transfer the file. The size of the file is about 33MB.
Can you reproduce the issue with the project file?
The following is the quick explanation of the source code.
In wait_mode.c source file, mxc_cpu_lp_set_os_in() and mxc_cpu_lp_set_os_out() functions are called periodically.
In those functions, BYPASS bit of CCM_ANALOG_PLL_SYSn(PLL2’s Bypass bit) is to set/clear.
After reading LinuxBSP code and documents you showed us, they do only set/clear the BYPASS bit for switching bypass/non-bypass.
In the document EB790(configuring PFD), it is said that PLL should be powered-down when the PFD needs to be re-configured. But the customer does not do the PLL power-down because they need to switch PLL2’s bypass mode for their application.
If other sequence than switching the BYPASS bit is needed for switching bypass mode, please let me know.
Thanks,
Miyamoto