Hi;
I'm making a program that reads an IMU sensor by I2C and then transfer some data by UART with TivaC at 80Mhz. The program runs fine for some time, in some cases 5 seconds, in another case 1 hour, but finally the program hangs.
I found that the program hangs in the file Wire. h, and searching on the web I found that it's a very common issue with Wire library, because in the code are some while's that can loop forever in case that the bus gets opened or some noise affect the transfer.
There are some medications for the Wire. h that implement timeout to avoid this behavior, unfortunately, that modification are not compatible with TivaC launchpad, only with some add-ons.
Do you know of one Wire. h library with the implementation of that timeouts compatible with TivaC?, or someone knows how to modify the code of these libraries?
Thanks
Regards