cancel
Showing results for 
Search instead for 
Did you mean: 

RTC calibration oputput on STM32H7x with LL driver - Bug report

MD
Associate II

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 */
1 ACCEPTED SOLUTION

Accepted Solutions
Souhaib MAZHOUD
ST Employee

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

View solution in original post

3 REPLIES 3
Souhaib MAZHOUD
ST Employee

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

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 MAZHOUD
ST Employee

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