Skip to main content
Super User
June 1, 2022
Question

[LL] Incorrect comment for VREFINT_CAL_VREF

  • June 1, 2022
  • 4 replies
  • 1079 views

In https://github.com/STMicroelectronics/STM32CubeL4/blob/c5e83f31696c3da4fb374224471afd08d9d457b3/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_ll_adc.h#L346 the comment for VREFINT_CAL_VREF says

 /* Analog voltage reference (Vref+) value with which temperature sensor has been calibrated in production (tolerance: +-10 mV) (unit: mV). */

but it probably refers to the voltage reference with which VREFINT has been calibrated in production.

See also the same comment for TEMPSENSOR_CAL_VREFANALOG a couple of lines below.

#copypaste

JW

    This topic has been closed for replies.

    4 replies

    Graduate II
    June 1, 2022

    I guess it's a "bug" report, because it's located in a source code... :)

    Super User
    June 1, 2022

    This is a bug in source which results in flawless binary.

    And even more so, as probably in all STM32 both voltages for the factory calibs are identical, so even if you follow the wrong comment, the result will be correct.

    A bug nonetheless... :)

    Jan

    Technical Moderator
    June 28, 2022

    Hi @Community member​ ,

    I reported this copy-paste effect:) internally, to be fixed.

    Internal ticket number: 131065 (This is an internal tracking number and is not accessible or usable by customers).

    -Amel

    Super User
    June 28, 2022

    Thanks, Amel.

    Jan

    @Amel NASRI​