Skip to main content
Visitor II
April 3, 2020
Solved

There seem to be a bug in STM32F3 HAL library for comparator power mode. Or else the reference manual is misleading

  • April 3, 2020
  • 3 replies
  • 1481 views

In reference manual, comparator power mode is not the same for all comparators. High Speed is (binary) 00 for comparators COMP1 and COMP2, and 11 for the others.

In stm32f3xx_hal_comp_ex.h, high speed is 00 and this is applied to all comparators.

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

    Hello,

    I confirm that we have no bug in STM32F3 HAL library for comparator power mode and the RM must be corrected.

    For all comparator, The bit value for High Speed is fixed to '00'

    • 00: High speed / full power

    I have already raised this error internally to take in consideration.

    We will correct the error in the coming release of the RM.

    Best regards

    3 replies

    Super User
    April 3, 2020
    Imen GHAnswer
    ST Employee
    April 4, 2020

    Hello,

    I confirm that we have no bug in STM32F3 HAL library for comparator power mode and the RM must be corrected.

    For all comparator, The bit value for High Speed is fixed to '00'

    • 00: High speed / full power

    I have already raised this error internally to take in consideration.

    We will correct the error in the coming release of the RM.

    Best regards

    TFont.1Author
    Visitor II
    April 6, 2020

    Thank you both @Community member and​ @Imen GH​  for your replies. I can be no more afraid to use the library constants