cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable RTC on STM32L476RG and get timestamp?

RShiv.1
Senior

HI,

How to enable RTC and get the timestamp details along with calendar,kindly let me know.

regards

Ravi

3 REPLIES 3
RShiv.1
Senior

Hi,

attached is the main.c file ..let me know changes here and also .ioc file so that clock configuration is proper or not.I am getting changed values in synchronous predivider value..let meknow if there are any changes,

regards

Ravi

RShiv.1
Senior

main. file attached..kindly let me know clock configuaration changes..I am using func name with values I am getting only 0 :0:1like this..Please let me know the changes to get the timestamp.

regards

Ravi

RShiv.1
Senior

Hi,

I am new to configuring RTC under STM32L476RG...so kindly let me know.

1.when I configure the clock for LSI i.e32 khz and for system clock mux as HSI I am able to get the UART data..but not corrent time stamp value.

2.so I changed as posted in my previous .ioc file..where I changed to RTC and then PLLCLK with max 80 Mhz..I am not getting any data in UART and also any timestamp..kindly let me know why??.

regards

Ravi