afry-south / dragonfly-fcb

ÅF Dragonfly Quadrotor UAV Project
Other
7 stars 3 forks source link

I2C communication hangs #142

Closed stenbergd closed 8 years ago

stenbergd commented 8 years ago

It seems that the reading of I2C may hang the system. It is evident if one touches the PB7 I2C pin. It is likely got to do with read error and timeout and needs to be taken care of in the FCB SW to reset the I2C and restart reading without system failure.

Also, it may be a good idea to shield the I2C pins if this is such an exposed issue.

stenbergd commented 8 years ago

Fixed, improved and commited to master!

Various errors with HAL driver waiting for a blocked tick timeout, failed reading never resetting the sensor DRDY etc. Works very reliably now.