Hi. I'm studying OMAP-L138 unit using LCDK board and StarterWare 1.10.01 and there is some examples where i2c is used(had a try Mcasp and demo project) When first time tried to use this interface - by loading code for c6748 there was no problems with it. Now i can done transmission only when use ARM9 CPU. When use DSP it holds at moment when checking txCompFlag. Exactly here:
static void I2CCodecSendBlocking(unsigned int baseAddr, unsigned int dataCnt)
{
txCompFlag = 1;
dataIdx = 0;
savedBase = baseAddr;
I2CSetDataCount(baseAddr, dataCnt);
I2CMasterControl(baseAddr, I2C_CFG_MST_TX | I2C_CFG_STOP);
I2CMasterIntEnableEx(baseAddr, I2C_INT_TRANSMIT_READY | I2C_INT_STOP_CONDITION);
I2CMasterStart(baseAddr);
/* Wait till the data is sent */
while(txCompFlag);
}
I tried to import project again(always copy files to workspace), then also reinstall StarterWare packet but with no result.
Second issue is that when i2c was working propertly the samples what i received from input connector had also the same value - near upper limit of aic resolution i think. What can be the reason of that ? I didn't change anything in this example.