cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: CubeMX STM32F767IG RCC Assert Failed

svcguy
Associate III

CubeMX 5.5.0

STM32Cube_FW_F7_V1.15.0

STM32F767IG

Assert Failed: FILE - ../Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c, LINE - 602

RCC_OscInitStruct.PLL.PLLR is not assigned a value, therefore = 0, which fails above assert

Adding following code resolves issue

/* CUBEMX BUG FIX
  * PLLR not initialized to a valid value
  * PLLR >=2 && <= 7
  * Initialize to 2 (reset value)
  */
RCC_OscInitStruct.PLL.PLLR = 2;

Andy

4 REPLIES 4

Hello @svcguy​ 

Could you please send me your .ioc file to check the issue .

Regards,

Nesrine

svcguy
Associate III

Here is the .ioc file.

Also forgot to mention that in the Clock Configuration the drop down for the R prescaler in the PLL block is greyed out.0690X00000BwYNnQAN.png

Hello @svcguy​ 

You have to check if it's being used by a device. If not, it should be grayed out.

0690X00000Bxx52QAB.png

Best regards,

Nesrine

svcguy
Associate III

Correct, it should be greyed out on this device as it doesn’t have DSI, but the clock config code that it generates still fails an assert without a way for the user to change it every time the code is regenerated.