Skip to main content
Pavel A.
November 29, 2021
Solved

STM32H7, Where parameter RCC.Cortex_Div is used?

  • November 29, 2021
  • 3 replies
  • 1407 views

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.
Best answer by Khouloud ZEMMELI

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
November 29, 2021

Hello @Pavel A.​ 

Thanks for your post,

Could you please share your ioc file to check it?

Khouloud

Pavel A.
Pavel A.Author
November 30, 2021

Khouloud,

The ioc example sent in PM.

Thank you for quick response.

-- pa

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
November 30, 2021

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