I am using "MPLAB Code Configurator" to create Project.The code does not advance from ”while (OSCCONbits.LOCK != 1);".
void CLOCK_Initialize(void)
{
//Temporarily switch to FRC (without PLL), so we can safely change the PLL settings,