cancel
Showing results for 
Search instead for 
Did you mean: 

rtc example code for stm32

adeemkazi92
Associate II
Posted on October 06, 2015 at 10:35

i want the code for rtc initialisation for stm32.

wat i have in the snippets package code is based on register level programming.

wat i want is the initialisation based on library functions

thanks in advance

4 REPLIES 4
Nesrine M_O
Lead II
Posted on October 06, 2015 at 11:13

Hi  kazi.adeem,

If you are using STM32L0 products you can find examples for RTC under STM32cubeL0 package: 

STM32Cube_FW_L0_V1.1.0\Projects\STM32L053R8-Nucleo\Examples\RTC

The cube package is available in ST Website via this

http://www.st.com/web/en/catalog/tools/PF260508

Also you can use

http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1533/PF259242?s_searchtype=partnumber

  to easily initialize your RTC as it is a graphical software configuration tool.

-Syrine-

adeemkazi92
Associate II
Posted on October 06, 2015 at 20:54

THE CODE DOES NOT WORK FOR STMF07

AND THE SOFTWARE IS GONNA TAKE ATLEAST 5 HRS TO DOWNLOAD 95MB WORTH OF FIRMWARE!!!

SERIOUSLY!! THAT IS THE SPEED IM GETTING WHILE DOWNLOADING FROM THE CUBEMX.

Posted on October 06, 2015 at 22:52

There's no need to shout, your bandwidth issue are between you and your ISP. Yes, some of the Cube stuff is getting to be a ridiculous size, 95 MB is relatively tame, I'm seeing some 250 MB files here.

The SPL also provides examples for RTC setup and use

STM32F0xx_StdPeriph_Lib_V1.5.0\Projects\STM32F0xx_StdPeriph_Examples\RTC\RTC_Calendar\readme.txt

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
adeemkazi92
Associate II
Posted on October 07, 2015 at 07:02

im sorry mate! the caps lock was on while writing didnt mean to shout.