2024-10-27 07:14 AM - last edited on 2024-10-27 08:54 AM by Tesla DeLorean
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
2024-10-27 08:53 AM
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.