AnsweredAssumed Answered

KDS I2C getting stuck

Question asked by Alberto Lubeiro on Jul 29, 2015
Latest reply on Sep 2, 2015 by Alberto Lubeiro

Hi everybody,

 

I am using KDS3.0 and KDSK v1.2.0 with PEX and im having an issue with I2C

I want to send a 0xF1 command to a sensor but the code get stuck in the following line.

 

/* Wait for the transfer to finish.*/

    I2C_DRV_MasterWait(instance, timeout_ms);

 

Inside this function there is the following code:

do

   {

        syncStatus = OSA_SemaWait(&master->irqSync, timeout_ms);

    }while(syncStatus == kStatus_OSA_Idle);

 

I use the non-blocking function I2C_DRV_MasterSendDat, so it should get out of here because of a time out

 

Any idea?

 

I am really concerned. it is pretty urgent issue

 

Thanks and best regards

 

Alberto

Outcomes