Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/Keil/AT32F402xx_v2/ERTC/CCAL#0x0
Calibration register
Calibration value
Calibration direction
https://github.com/cmsis-svd/cmsis-svd-data