cancel
Showing results for 
Search instead for 
Did you mean: 

RTC Code generated by cubemx for STM32L072 is not working

VijayRakeshM
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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

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.