Skip to main content
Visitor II
March 4, 2022
Solved

STM32G431 TS_CAL2 temperature

  • March 4, 2022
  • 3 replies
  • 1812 views

HI

At what temperature the TS_CAL2 value for the STM32G431 is detected?

In the datasheet it is reported 130 degrees while in the library "stm32g4xx_ll_adc.h" TEMPSENSOR_CAL2_TEMP is 110 degrees

Thanks

    This topic has been closed for replies.
    Best answer by Mike_ST

    Hello,

    Correct answer is 130°C

    You're probably using STM32G4 firmware package below version 1.5.0, where it is updated.

    3 replies

    Mike_STAnswer
    Technical Moderator
    March 4, 2022

    Hello,

    Correct answer is 130°C

    You're probably using STM32G4 firmware package below version 1.5.0, where it is updated.

    Graduate
    September 24, 2024

    Has this been fixed? It appears to still be incorrectly specified as 110C in STM32Cube FW_G4 V1.6.0

    See https://github.com/STMicroelectronics/stm32g4xx_hal_driver/issues/20

    Explorer
    September 9, 2025

    I don't think it has been fixed.. Had to hardcode it to 130UL myself..

    doublesetAuthor
    Visitor II
    March 4, 2022

    Right, thanks,

    For the G431 I'm using STM32CubeIDE Version 1.7.0 with STM32Cube FW_G4 V1.4.0 because using STM32CubeIDE Version 1.8.0 with STM32Cube FW_G4 V1.5.0 and the same code the interrupts are not generated or intercepted and I don't understand why

    Technical Moderator
    March 11, 2022

    Hi @doubleset​ ,

    New versions for STM32CubeIDE & STM32CUbeMX are currently available. If the issue with interrupts you introduced previously is still there, please describe it with more details in a new post. It will be helpful in order to anlayze & fix it.

    -Amel

    Graduate II
    September 18, 2025

    It is 130 deg.