I am using an kontron embedded computer to to communicate to an ST micro controller over I2C. I'm using the dev adapter to interface with the I2C, using the simple read() and write() functions described here.
The problem is if the slave fails to acknowledge a byte for whatever reason, the I2C bus freezes and the master can't send or receive any info (even if the programme is closed and restarted!). The only way I can at the moment reset the I2C bus is by rebooting, which is far from ideal. Does anyone have any suggestions of what I could do?