cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Prescaler Setting Math operation will produce wrong code

victagayun
Senior III

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

2 REPLIES 2
Khouloud ZEMMELI
ST Employee

Hello @victagayun​ 

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

Khouloud

Khouloud ZEMMELI
ST Employee

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