Skip to main content
Carol Trudel
Visitor II
Jul 21, 2017 3:30 PM UTC
Question

Could anyone provide example code for reading temperature on STM32L476RG on STM32-Nucleo (based on HAL drivers) ?

Posted on July 21, 2017 at 17:30

example provided on STM32Cube package for STM32-Nucleo are based on LL drivers. I think I miss something in configuring the board using HAL functions. Thanks !

    This topic has been closed for replies.

    1 reply

    john doe
    Senior III
    Jul 22, 2017 1:09 AM UTC
    Posted on July 22, 2017 at 03:09

    Use the version in the F7 repository, strip out all the LCD stuff, and read your data sheet so you can adjust

    VREFINT_CAL_ADDR

    VREFINT_CAL_VREF

    TEMPSENSOR_CAL1_ADDR

    TEMPSENSOR_CAL2_ADDR

    TEMPSENSOR_CAL1_TEMP

    TEMPSENSOR_CAL2_TEMP

    TEMPSENSOR_CAL_VREFANALOG