cancel
Showing results for 
Search instead for 
Did you mean: 

How to read time and date from RTC using DS1341 (STM32G070KB - STM32 CubeMx - STM32 CubeIDE - HAL Driver)

MR.14
Associate
 
1 REPLY 1
Imen.D
ST Employee

Hello @Community member​ and welcome to the community :)

The DS3231 is accessed through an I2C serial interface. For that, I advise you to get inspired from the I2C examples within STM32CubG0 MCU package:

STM32Cube_FW_G0_V1.5.0\Projects\NUCLEO-G070RB\Examples\I2C

You should check data and device address based on following DS1341/DS1342 datasheet.

When your question is answered, please close this topic by choosing Select as Best.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen