This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVMK2G: AIC3106 IIC READ hang

Part Number: EVMK2G

I want check if desired value written to AIC3106 register then I write below AIC31RegShow function and call it from aic31MdCreateChan.

But it always hang at I2C transfer as picture, please help solve it.

Thanks

void AIC31Reset(unsigned int baseAddr)
{
/* Select Page 0 */
CodecRegWrite(baseAddr, AIC31_P0_REG0, 0);

/* Reset the codec */
CodecRegWrite(baseAddr, AIC31_P0_REG1, AIC31_RESET);
}


void AIC31RegShow(unsigned int baseAddr ,unsigned char *p)
{
/* Select Page 0 */
unsigned char value0,value1;
value0=CodecRegRead(baseAddr, AIC31_P0_REG0);
value1=CodecRegRead(baseAddr, AIC31_P0_REG0+1);
p[0]=value0;
p[1]=value1;
/* Reset the codec */
//CodecRegWrite(baseAddr, AIC31_P0_REG1, AIC31_RESET);
return;
}