cancel
Showing results for 
Search instead for 
Did you mean: 

RTC not working and not update anythings.

Gz
Senior

Dear ST;

RTC for STM32G0 is not working ( Timestamp Mode ). Could you please check this problem.

Best regards.

3 REPLIES 3
ChahinezC
Lead

Hello @Gz​, we kindly ask you to specify the problem you are facing with the RTC, whether you are using a provided example on the Cube package or you are programming it by your own. Please mention also the board you are using.

Gz
Senior

Hello, @ChahinezC​ ;

Thank you for you comment.

Please check this attach file. I have an error below

  if (HAL_RTC_Init(&hrtc) != HAL_OK)
  {
    Error_Handler();
  }

Thank you,

Best regards.

ChahinezC
Lead

Hi @Gz​, 

Could you please use the latest version of the STM32CubeMX, this will help me detect easily your error.

I also recommend you to refer to the TimeStamp example of the NUCLEO-G070RB Cube package, it might help you solve your problem. 

I propose you to compare your code to the one in the example previously mentioned. 

An other point is that I can suggest you to reuse the .ioc file provided in the cube directory to generate new project based on it.