cancel
Showing results for 
Search instead for 
Did you mean: 

__HAL_HRTIM_SETCLOCKPRESCALER does not clear bits first

sasha
Associate III
Posted on May 18, 2017 at 07:38

Hi, it seems that this macro has a bug - it does not clear the bits before ORing the new prescaler value in.  V1.7.

1 REPLY 1
Amel NASRI
ST Employee
Posted on May 23, 2017 at 13:10

Hi

Marks.Sasha

‌,

Thanks for bringing this error to our attention.

I agree that current implementation will not work when trying to go from a lower frequency to a higher one.

It is reported to be fixed in coming versions of HRTIM header file inside STM32CubeF3 package.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.