Skip to main content
adeemkazi92
Associate III
October 6, 2015
Question

rtc example code for stm32

  • October 6, 2015
  • 4 replies
  • 1016 views
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

    This topic has been closed for replies.

    4 replies

    Nesrine M_O
    Associate
    October 6, 2015
    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 III
    October 6, 2015
    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.

    Tesla DeLorean
    Guru
    October 6, 2015
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    adeemkazi92
    Associate III
    October 7, 2015
    Posted on October 07, 2015 at 07:02

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