We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 !
That it doesn't start or lock properly?
Perhaps the parameters are entirely wrong, the VCO has min/max speed requirements. As does the PLL comparison frequency.
None of which has anything to do with Keil.
This is entirely ST-specific stuff ...