Thanks for the reply. Actually the issue was solved using DMA mode in the MCU 's I2C preipheral. It seems that the ordinary I2C with the RTOS schedular get corrupted some how.
Good news, YahyaTawil.