I2C BUSY
I am using STM32F407 Discovery Board and I'm generating my project using MX Cube
I'm doing testing on I2C sensor that is MLX 640 which is used for taking thermal image , so basically we are are reading frames of thermal image via I2C on every 1 second and doing some processing on it. Basically some floating operations on each frames
The data sheet of MLX 640 -https://www.melexis.com/-/media/files/documents/datasheets/mlx90614-datasheet-melexis.pdf
So while doing this initially all floating operations are done by STM for few frames , but after few frames we are getting HAL I2C error that is 0x02 i.e HAL_BUSY
HAL_OK = 0x00U,
HAL_ERROR = 0x01U,
HAL_BUSY = 0x02U,
HAL_TIMEOUT = 0x03U
and it's getting stuck every single time
What type of thing should I do for I2C to not get busy and it works properly for each frame with all floating operations.
Should I try to reset I2C after each frame? If yes, then how am I suppose to do that?
And If no, then what is the way to do it?
