cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7, Where parameter RCC.Cortex_Div is used?

Pavel A.
Evangelist III

I'm generating a CubeMX project for STM32H753.

In the clock config, set the systick divisor 8 (see picture).

Difference in the ioc file: for divisor 1:

RCC.CortexFreq_Value=400000000

For divisor 8:

RCC.CortexFreq_Value=50000000

RCC.Cortex_Div=SYSTICK_CLKSOURCE_HCLK_DIV8

But the generated code is same for divisor 1 and 8.

I don't understand where this divisor is used

0693W00000GZCQZQA5.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hi again @Pavel A.​ ,

Thank you for providing your ioc file, and you are right, I have reproduced the same behavior.

Actually, same clock configurations are just displayed and not generated.

In fact, the HAL_SYSTICK_CLKSourceConfig has been removed from the generated code (SystemClock_Config function) following some changes in the Firmware, for that, today, it's up to the user to manually do the configuration of these Divisors.

Thanks for your comprehension, Khouloud

View solution in original post

3 REPLIES 3
Khouloud ZEMMELI
ST Employee

Hello @Pavel A.​ 

Thanks for your post,

Could you please share your ioc file to check it?

Khouloud

Khouloud,

The ioc example sent in PM.

Thank you for quick response.

-- pa

Hi again @Pavel A.​ ,

Thank you for providing your ioc file, and you are right, I have reproduced the same behavior.

Actually, same clock configurations are just displayed and not generated.

In fact, the HAL_SYSTICK_CLKSourceConfig has been removed from the generated code (SystemClock_Config function) following some changes in the Firmware, for that, today, it's up to the user to manually do the configuration of these Divisors.

Thanks for your comprehension, Khouloud