cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMx Code generation of Timer Config -- Prescaler Bug with LL

jherrmann1
Associate II

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.

jherrmann1_0-1699615899607.png

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!

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

1 REPLY 1
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen