Skip to main content
Associate
November 10, 2023
Solved

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

  • November 10, 2023
  • 1 reply
  • 1205 views

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!

 

 

 

 

This topic has been closed for replies.
Best answer by Imen.D

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

1 reply

Imen.DBest answer
ST Technical Moderator
November 10, 2023

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks