2019-06-12 07:03 AM
Hi,
I use a STM32F767ZI. A project has been generated by using the STM32CubeMX.
I have enabled the I2C_1 at 100kHz and set the HCLK to 216MHz (HSI->PLL, all clocks calculated automatically).
A code gets stuck in stm32f7xx_hal_rcc.c at line:
#if defined (RCC_PLLCFGR_PLLR)
assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
#endif
Unfortunately PLL.PLLR equals 0 and IS_RCC_PLLR_VALUE checks if value is between 2 and 7. After removing the line of code rest of assertions works fine.
Regards
RB