cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable I2C - STM32F411

ezioall
Associate II

how to activate I2C
Good morning
I'm trying to make a project that requires the I2C1 bus work
if I load the compiled project on arduino
from debug the application crashes because it can't read the EEPROM on RTC
I've read various documents but I can't understand how to activate the bus on the STMF411 processor
I'm quite new to STM
with esp32 there are no problems
here it seems more complicated to me

1 REPLY 1

Yes, programming hardware frequently more complicated than presented by Arduino where someone else has worked out the drivers and libraries

The 7-bit Slave Address on STM32 is the High Order 7-bits, not the Low Order. So frequently (SlaveAddr << 1) in translation/conversion.

Look at the documentation for the IC you are connecting, usually sets forth the expectations.

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