Skip to main content
svcguy
Associate III
Jan 24, 2020 5:33 AM UTC
Question

BUG: CubeMX STM32F767IG RCC Assert Failed

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
Jan 24, 2020 3:36 PM UTC

Hello @svcguy​ 

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

Regards,

Nesrine

svcguy
svcguyAuthor
Associate III
Jan 24, 2020 10:29 PM UTC

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
Feb 3, 2020 10:02 AM UTC

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
Feb 3, 2020 2:34 PM UTC

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.