This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F746 : PLL not ready forever.

Hello,
I am trying to enable internal clock ( HSI ) in stm32f746.
But when I debug code, I find that pll ready bit of RCC's CR register is not set.

Following part of code always return HAL_TIMEOUT.

        while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
        {
          if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
          {
            return HAL_TIMEOUT;
          }
        }

Here is my clock configuration :

        RCC_OscInitTypeDef RCC_OscInitStructure = { 0x00 };

        RCC_OscInitStructure.OscillatorType = RCC_OSCILLATORTYPE_HSI;
        RCC_OscInitStructure.HSIState = RCC_HSI_ON;
        RCC_OscInitStructure.PLL.PLLState = RCC_PLL_ON;
        RCC_OscInitStructure.PLL.PLLSource = RCC_PLLSOURCE_HSI;
        RCC_OscInitStructure.PLL.PLLM = 1;
        RCC_OscInitStructure.PLL.PLLN = 3;
        RCC_OscInitStructure.PLL.PLLP = RCC_PLLP_DIV2;
        RCC_OscInitStructure.PLL.PLLQ = 8;

So Could you explain, what can be the problem ?

Thanks and Best Regards !