2021-03-09 08:06 PM
I've interfaced TLV320AIC3100 audio codec with STM32H745XI MCU where i'm trying to play wave file from SDCARD.
I've configured Codec in I2S interface with DMA in STM32.
I'm able to play audio file as required but sometimes it includes some kind of noise in audio playback.
This situation occure once in a while like after 20-25 attemp occurs once.
I've read all the registers from TLV320AIC codec in noise vs without noise condition all those registers values are same .
I'm reading wave file on power up and copy all its data in ram in non-cached region.
Configured caching as per this
MPU_Set_Protection(0xC0000000,MPU_REGION_SIZE_8MB,MPU_REGION_NUMBER1,MPU_REGION_FULL_ACCESS,MPU_INSTRUCTION_ACCESS_DISABLE,MPU_ACCESS_NOT_SHAREABLE,MPU_ACCESS_NOT_CACHEABLE,MPU_ACCESS_NOT_BUFFERABLE,MPU_TEX_LEVEL0);
Here i've attached my schematics of audio interface,TLV320AIC codec configuration and all registers of codec .
How to troubleshoot this issue.
Any pointer will be helpful.
Thanks