2023-10-05 04:10 AM
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 */
Solved! Go to Solution.
2023-10-10 07:19 AM
Hello
Sorry for late answer, this issue is reproduced and it is reported internally .
Internal ticket number: 163446 (This is an internal tracking number and is not accessible or usable by customers).
Thank you
Souhaib
2023-10-05 06:48 AM
Hello @MD and welcome to the community.
Thank you for having reported this issue
Can you please provide more information about the MCU and CubeMX version you have used.
Thank you.
Souhaib
2023-10-06 02:35 AM - edited 2023-10-06 04:19 AM
2023-10-10 07:19 AM
Hello
Sorry for late answer, this issue is reproduced and it is reported internally .
Internal ticket number: 163446 (This is an internal tracking number and is not accessible or usable by customers).
Thank you
Souhaib