Hello,
Looking at reference manual ADC calibration is done in HW, you simply enable it after power on reset:
41.13 ADC calibration scheme
After a POR, and after the flash memory has been made available, the ADC calibration must be executed by use of the CAL bit in the ADC_SC3 control register.
After the ADC has been configured and calibrated, no further calibration is required as long as the power is maintained. Hence, upon subsequent exits from power mode STOP2, re-calibration is not required. Since the power is continuous in all of the device power modes (STOP2 RUN, and HSRUN), all of the ADC specifications are maintained as per the data sheet.

I am not sure what you want to achieve? Some SW calibration when there is HW mechanism for it?
Best regards,
Peter