2020-08-17 02:55 AM
CubeMX generates weird number for timer period.
I set the timer period to 0xffffffff in the GUI. That results in CubeMX setting:
4.294967295E9
for the period. That value is wrong. It should be just 4294967295.
Is that a CubeMX bug?
2020-08-17 03:12 AM
Hello @Community member
Could you please explain more your request (the scenario) (which MCU) to check the issue.
Please share your ioc file to check the problem.
Best regards,
Nesrine
2020-08-17 06:16 AM
4.294967295E9 and 4294967295 are equal. One is expressed in scientific notation. Though certainly an integer would be preferable here.
2020-08-17 06:25 AM
Hello Nesrine,
I am using stm32g474ve on STM32CubeIDE v1.4.0.
In the .ioc file, TIM2.PeriodNoDither is set correctly to 0xffffffff. But the generated code has this line:
Best regards,
Rafael
2020-08-17 07:46 AM
Hello @Community member (Community Member)
4.294967295E9 and 4294967295 are equal.
Best regards,
Nesrine