Hi,
I am running the Pre-processing demo with configuration for 2 Mics, using Circular Mic Array. First time it worked well without any CMB interfaced. But later on it doesnt work at all, even with CMB interfaced.
I have used this #define NUM_OF_MICS 2 to use only 2 Mics.
status = AIC3254_init(16000, 16000, PLL_MHZ); has error. It returns negative instead of 0.
When i check inside the init function, the error is generated at below line:
result = AIC3254_Write( 4, 0x07, hi2c ); // PLL setting: PLLCLK <- BCLK and CODEC_CLKIN <-PLL CLK
//result = AIC3254_Write( 4, 0x03, hi2c ); // PLL setting: PLLCLK <- BCLK and CODEC_CLKIN <-PLL CLK
result = AIC3254_Write( 4, 0x07, hi2c ); // PLL setting: PLLCLK <- BCLK and CODEC_CLKIN <-PLL CLK // error generated
if (result != CSL_SOK)
{
return result;
}
The AIC3204 is not getting initialised, and the result variable returns below values depending on wires connected to expansion slot of C5535 (Using a breakout board to make connections):
-1 if no CMB wires are connected.
-194 if all CMB wires are connected without 3V3 wire (ie, CMB is powered off).
-200 if all CMB wires are connected and powered on.
Below is the error log from console:
Audio Pre-processing Demo for C5517 EVM with CMB
This Demo Will Continuously Get Audio Input from CMB, Process the Audio Using BF+ASNR+MSS, then
Send the Processed Audio to the Left Channel of the On-Board Codec (AIC3204-2)
Bypass Audio Input from Mic2 of CMB to the Right Channel of the On-Board Codec
Please Connect the Headphone to the Audio Output (Headphone) Jack (P9)
I2S2 Module Instance opened successfully
I2S2 Module Configured successfully
ERROR: Unable to initialize AIC3204
Please help.