Skip to main content
Pavel A.
Nov 29, 2021 2:01 AM UTC
Solved

STM32H7, Where parameter RCC.Cortex_Div is used?

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

This topic has been closed for replies.
Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Nov 30, 2021 1:36 PM UTC

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

3 replies

Khouloud ZEMMELI
ST Employee
Nov 29, 2021 2:05 PM UTC

Hello @Pavel A.​ 

Thanks for your post,

Could you please share your ioc file to check it?

Khouloud

Pavel A.
Pavel A.Author
Nov 30, 2021 12:27 AM UTC

Khouloud,

The ioc example sent in PM.

Thank you for quick response.

-- pa

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Nov 30, 2021 1:36 PM UTC

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