Skip to main content
VijayRakeshM
Associate III
February 8, 2019
Solved

RTC Code generated by cubemx for STM32L072 is not working

  • February 8, 2019
  • 2 replies
  • 939 views

Hi,

I'm using STM32 Lora Discovery kit to run the code generated by cubemx for RTC, While on debug i'm get the RTC values but when run normally then i'm not getting any values except the initialised values for the time.

Thanks & Regards,

Vijay Rakesh

This topic has been closed for replies.
Best answer by VijayRakeshM

Hi @Nesrine.JLASSI​ ,

The issue was resolved when i call getdate and then gettime instead of calling only gettime hal function.

Thanks & Regards,

Vijay Rakesh.

2 replies

Nesrine.JLASSI
Visitor II
March 5, 2019

Hi @VijayRakeshM​ 

I did the same scenario and did not have any problem.

So, could you please send me your .ioc file to check the problem.

Best regards,

Nesrine

VijayRakeshM
VijayRakeshMAuthorBest answer
Associate III
March 6, 2019

Hi @Nesrine.JLASSI​ ,

The issue was resolved when i call getdate and then gettime instead of calling only gettime hal function.

Thanks & Regards,

Vijay Rakesh.