Skip to main content
victagayun
Senior III
February 24, 2021
Question

Timer Prescaler Setting Math operation will produce wrong code

  • February 24, 2021
  • 2 replies
  • 1504 views

I am not sure if this should be in github or here. But I encounter erroneous code when I use math operation on Timer Prescaler setting, details are below

Describe the set-up

  • The board : NUCLEO-G474RE
  • IDE or at least the compiler and its version : CubeIDe 1.5.1 and CubeMX 6.1.1-RC2, F1.3.0
  • Win10

Describe the bug

TIM6 LL in CubeIDE/MX prescaler cannot use math operation like 170 - 1, (170-1), 170-2, etc.

This is not a problem with ARR.

0693W000007ZI6FQAW.png 

0693W000007ZI6UQAW.png 

posted in https://github.com/STMicroelectronics/STM32CubeG4/issues/24

This topic has been closed for replies.

2 replies

Khouloud ZEMMELI
ST Employee
February 24, 2021

Hello @victagayun​ 

Thanks for your feedback, I'll check it then I'll get back to you.

Khouloud

Khouloud ZEMMELI
ST Employee
February 24, 2021

You're right, I have reproduced the issue on my side and it will be fixed.

Thank you @victagayun​ for raising this issue to our attention and we're sorry for any inconvenience this may have caused.

Khouloud