Skip to main content
R.K
Associate II
Feb 26, 2021 8:42 AM UTC
Solved

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

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

This topic has been closed for replies.
Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
Mar 8, 2021 9:42 AM UTC

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

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.

2 replies

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
Mar 8, 2021 9:42 AM UTC

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

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
R.K
R.KAuthor
Associate II
Mar 10, 2021 8:21 AM UTC

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.​