2023-11-10 03:40 AM - last edited on 2023-11-10 05:31 AM by Imen.D
Hello everyone,
When configuring the timers via the MxGenerator, I noticed the following strange behavior.
If you use the LL, the code for the prescaler is generated strangely.
When setting Prescaler = 2-1, the correct code is generated when using the HAL. When using the LL, however, a substration is performed between two enums, which makes no sense.
This behavior is shown in the following screenshot.
However, if you set the prescaler to 1 directly in CubeMx and not to 2-1, the code is generated correctly.
I suspect a bug in the code generation.
The following versions are used.
STM32CubeIDE Version: 1.13.1
MCU Reference: STM32H563ZITx
Firmware Package: STM32Cube FW_H5 V1.1.1
I hope for a confirmation of the bug and an adjustment in a next release.
Many thanks in advance!
Solved! Go to Solution.
2023-11-10 04:15 AM
Hello @jherrmann1 ,
Thank you for having reported this issue.
An internal ticket (number: 166052) is submitted to escalate this issue internally for check and analysis.
(PS: number 166052 is an internal tracking number and not available outside of ST)
Imen
2023-11-10 04:15 AM
Hello @jherrmann1 ,
Thank you for having reported this issue.
An internal ticket (number: 166052) is submitted to escalate this issue internally for check and analysis.
(PS: number 166052 is an internal tracking number and not available outside of ST)
Imen