Solved
RTC calibration oputput on STM32H7x with LL driver - Bug report
Hello,
I tried to enable in the CubeMX section PB2 as calibration output, but it was not working.
The fix is to add a couple of lines after the RTC init:
...
/** Enable Calibration
*/
LL_RTC_CAL_SetOutputFreq(RTC, LL_RTC_CALIB_OUTPUT_512HZ); //<-- will not work, registers are write protected!
/* USER CODE BEGIN RTC_Init 2 */
/* Disable the write protection for RTC registers */
LL_RTC_DisableWriteProtection(RTC);
LL_RTC_CAL_SetOutputFreq(RTC, LL_RTC_CALIB_OUTPUT_512HZ);
LL_RTC_EnableOutRemap(RTC); //<- to enable output on PB2
/* Enable the write protection for RTC registers */
LL_RTC_EnableWriteProtection(RTC);
/* USER CODE END RTC_Init 2 */