Skip to main content
Associate II
October 5, 2023
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 */
This topic has been closed for replies.
Souhaib MAZHOUDBest answer
ST Technical Moderator
October 10, 2023

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

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

3 replies

ST Technical Moderator
October 5, 2023

Hello @MD_it 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

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
MD_itAuthor
Associate II
October 6, 2023

Hello, this is for a Nucleo-H755ZI-Q and CubeIDE 1.13.2

I've also attached the ioc file, which should generate the output on PB2 but it doesn't; until you add the lines mentioned earlier.

Regards, Marco

Souhaib MAZHOUDBest answer
ST Technical Moderator
October 10, 2023

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

To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.