Skip to main content
svcguy
Associate III
January 24, 2020
Question

BUG: CubeMX STM32F767IG RCC Assert Failed

  • January 24, 2020
  • 4 replies
  • 833 views

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

This topic has been closed for replies.

4 replies

Nesrine.JLASSI
Visitor II
January 24, 2020

Hello @svcguy​ 

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

Regards,

Nesrine

svcguy
svcguyAuthor
Associate III
January 24, 2020

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

Nesrine.JLASSI
Visitor II
February 3, 2020

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
svcguyAuthor
Associate III
February 3, 2020

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.