cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting DS3231 to F767ZI via I2C1

Eric Mintz
Associate

Dear STM32 Users,

I have a DS3231 module connected to my board, with SCL wired to PB_6 and SDA wired to PB9, per specification. I configured the project with STCube.

I see no signal on PB_6. Can anyone advise?

Code is attached. main.c contains the logic, stm32fxx_hal_msp.c contains the auto-generated configurations, and ds3231.c reads the DS3231 and decodes the date and time.

Please forgive me if I have violated any norms in this post. Thank you all in advance.

All my best,

Eric

2 REPLIES 2

A Nucleo-F767ZI or something of your own creation? Why PB6 ?

PB8 and PB9 are the I2C pins on the top of the Arduino connector.

https://www.st.com/content/ccc/resource/technical/document/user_manual/group0/26/49/90/2e/33/0d/4a/da/DM00244518/files/DM00244518.pdf/jcr:content/translations/en.DM00244518.pdf

It is generally preferred to post multiple files as a single ZIP archive.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
T J
Lead

Regarding the DS3231,

the last time I checked, we were still accurate ( within 1 minute)

after 12months in the field...