cancel
Showing results for 
Search instead for 
Did you mean: 

Random locking of I2C bus

avenger
Visitor

Im using i2c on stm32 nucleo and the slave is a cheap imu (mpu6500). Sometimes the bus just gets stuck and doesnt work. And the weird thing is if i plug everything out, flash code again and run it it will not work. Until it randomly works again until the next random fail. I tried with various setups, with pull ups from stm32, with external 5k pull ups.

Initially i was running bare metal code but i thought something is worng with the code and switched to HAL to do simple read or write. Everything is the same, randomly works and doesn't work.

Did anyone experience and solve something similar?

 

0 REPLIES 0