Skip to main content
Visitor II
February 26, 2021
Solved

How should I calibrate the built-in temperature sensor of STM32L073

  • February 26, 2021
  • 2 replies
  • 1190 views

Is there a way to use the HAL library to read the variable specified in the address?

    This topic has been closed for replies.
    Best answer by Amel NASRI

    Hi @リョウスケ クボ​ ,

    A ready to use example for NUCLEO-L073RZ is available under STM32Cube_FW_L0\Projects\NUCLEO-L073RZ\Examples_LL\ADC\ADC_TemperatureSensor\Src.

    You can refer to the readme.txt file on the same folder that describes what is expected by the example and how to use it.

    The calibration is one of the operations done when calling Activate_ADC thanks to the LL API LL_ADC_StartCalibration.

    -Amel

    2 replies

    Technical Moderator
    March 8, 2021

    Hi @リョウスケ クボ​ ,

    A ready to use example for NUCLEO-L073RZ is available under STM32Cube_FW_L0\Projects\NUCLEO-L073RZ\Examples_LL\ADC\ADC_TemperatureSensor\Src.

    You can refer to the readme.txt file on the same folder that describes what is expected by the example and how to use it.

    The calibration is one of the operations done when calling Activate_ADC thanks to the LL API LL_ADC_StartCalibration.

    -Amel

    R.KAuthor
    Visitor II
    March 10, 2021

    Hello Amel NASRI (ST Employee)

    Thank you for answer my question.

    I was able to solve it.

    I confirmed that it can be configured with the function of

    __LL_ADC_CALC_TEMPERATURE (VDDA_APPLI, uhADCxConvertedData, LL_ADC_RESOLUTION_12B);

    regard.​