cancel
Showing results for 
Search instead for 
Did you mean: 

Set Date&Time NUCLEO-401RE

willow
Associate III

Hello everyone, i am working on a software for setting the date and time.

 

The plan is to set the date and tame manually (so no defficulties regarding that) and then continue to increase within the time flies thanks to the RTC of the NUCLEO F401RE. 

 

Do you think that would be possible ? Would it be a simple way to set the date and time, by directly using the RTC with HAL libraries for example ?

 

 

Im thanking you already for your answers,

 

XOXO

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Evangelist III

CubeF4 firmware package:

https://www.st.com/en/embedded-software/stm32cubef4.html

On the 'Documentation' tab:

https://www.st.com/en/embedded-software/stm32cubef4.html#documentation

 
UM1730 Getting started with STM32CubeF4 for STM32F4 series MCUs;
UM1725 Description of STM32F4 HAL and low-layer drivers;
AN4739 STM32Cube firmware examples for STM32F4 Series
 
 The HAL gives you functions to set the RTC Time & Date:
AndrewNeil_1-1715692920314.png

 

EDIT:

See also:

Application Note AN4759Introduction to using the hardware real-time clock (RTC) and the tamper management unit (TAMP) with STM32 MCUs

https://www.st.com/resource/en/application_note/an4759-introduction-to-using-the-hardware-realtime-clock-rtc-and-the-tamper-management-unit-tamp-with-stm32-mcus-stmicroelectronics.pdf

 

This video training series is for L4 rather than F4, but should give you an idea:

https://www.youtube.com/watch?v=ETu4JAvHS40&list=PLnMKNibPkDnEEvQWrDqVuu1w_iQ214GXi

 

View solution in original post

5 REPLIES 5
RomainR.
ST Employee

Hello @willow 

I suggest you to refer to the following example, it should works on Nucleo-F401RE.

STM32Cube_FW_F4_V1.28.0\Projects\STM32F410xx-Nucleo\Examples\RTC\RTC_Calendar

Best regards,

Romain,

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you Romain for your fast answer, is this a STM32 software that i have to download ?

Andrew Neil
Evangelist III

CubeF4 firmware package:

https://www.st.com/en/embedded-software/stm32cubef4.html

On the 'Documentation' tab:

https://www.st.com/en/embedded-software/stm32cubef4.html#documentation

 
UM1730 Getting started with STM32CubeF4 for STM32F4 series MCUs;
UM1725 Description of STM32F4 HAL and low-layer drivers;
AN4739 STM32Cube firmware examples for STM32F4 Series
 
 The HAL gives you functions to set the RTC Time & Date:
AndrewNeil_1-1715692920314.png

 

EDIT:

See also:

Application Note AN4759Introduction to using the hardware real-time clock (RTC) and the tamper management unit (TAMP) with STM32 MCUs

https://www.st.com/resource/en/application_note/an4759-introduction-to-using-the-hardware-realtime-clock-rtc-and-the-tamper-management-unit-tamp-with-stm32-mcus-stmicroelectronics.pdf

 

This video training series is for L4 rather than F4, but should give you an idea:

https://www.youtube.com/watch?v=ETu4JAvHS40&list=PLnMKNibPkDnEEvQWrDqVuu1w_iQ214GXi

 

thank you very much for the tools given ! Im gonna check everything ! 

Note that all those resources - and more - can be found via the Product Page for the Nucleo board:

https://www.st.com/en/evaluation-tools/nucleo-f401re.html

and/or the Product Page for the STM32F401RE MCU on that board:

https://www.st.com/en/microcontrollers-microprocessors/stm32f401re.html

 

Top Tip:

The Product Page should always be your starting point when beginning with any new product.

Putting the part number into your favourite internet search engine

eg https://www.google.com/search?q=NUCLEO+F401RE

or https://www.google.com/search?q=STM32F401RE 

should find you the Product Page as (one of) the first hit(s).

This applies to most (all?) manufacturers - not jut ST.

 

#UseTheProductPage