Other Parts Discussed in Thread: TLV320AIC3101
Hi,
I am using TLV320AIC3101 EVM Board with the I2C Address of 0x18 and trying to interface with STM32F413ZH Micro-Controller. Facing issue on while Master sends target device address for write request that function is returning HAL_ERROR.
But STM32F413ZH is having internal Audio Codec of I2C Address 0x34. If I give this address to I2c API it is returning HAL_OK. Anyone can help me to resolve this ? and if you have any C code for TLV320AIC3101 let me know. And below I have mentioned code where I am getting Error.
/**************************************************************************************
#define TLV320_ADDR 0x18
FMPI2C_HandleTypeDef hfmpi2c1;
HAL_StatusTypeDef status = HAL_OK;
status = HAL_FMPI2C_Mem_Write(&hfmpi2c1,TLV320_ADDR, register, 1, &data, 1, 1000) ;
if(status != HAL_OK)
{
FMPI2Cx_Error(fmpi2c_handler, Addr);
}
return status; //HAL_OK
****************************************************************************************/
Regards,
Adrush Rawal