Skip to main content
rb_it
Visitor II
June 12, 2019
Question

assert_failed during RCC configuration

  • June 12, 2019
  • 0 replies
  • 380 views

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

This topic has been closed for replies.