2021-11-28 06:01 PM
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
Solved! Go to Solution.
2021-11-30 05:36 AM
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
2021-11-29 06:05 AM
Hello @Pavel A.
Thanks for your post,
Could you please share your ioc file to check it?
Khouloud
2021-11-29 04:27 PM
Khouloud,
The ioc example sent in PM.
Thank you for quick response.
-- pa
2021-11-30 05:36 AM
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