Implementation of an FPGA-based calibration procedure at the detector level for the future high-luminosity phase of the CMS