Hello seniors, I am using PC audio software to send audio data to MCU through USB, MCU automatically carries audio data to I2S through DMA, the data enters the ADAU1761 through I2S, and outputs through DAC, but the problem now is that the data waveform is incorrect after the audio data is transmitted to the ADAU1761 through USB. A few days ago, I have been testing DMA to transfer I2S data, and confirmed that DMA is no problem to transfer I2S data, but now the possible problem is that the format of USB transfer data does not match the format of DMA transmission.
My I2S configuration is 12.288mhz for MCLK, 48khz for LRCK, 3.072mhz for BCLK, left-aligned, frame length 64 bits, 24 bits of valid data, and the remaining 8 bits of 0 padding, DMA transmission is 32-bit transmission, USB partial configuration is 24-bit depth, 48khz sample rate.
Please give me your advice.
Thank you.
Attach my code at the end
已解决! 转到解答。
Hello @MHY_0878
“now the possible problem is that the format of USB transfer data does not match the format of DMA transmission.”
->> The most likely issue is a mismatch between the USB data format and the I2S/DMA configuration. Carefully verify the data formats at each stage (USB, MCU, I2S, and ADAU1761) and use debugging tools to identify where the waveform becomes incorrect. Once the mismatch is identified, adjust the software to ensure compatibility.
For example
BR
Alice
Hello @MHY_0878
“now the possible problem is that the format of USB transfer data does not match the format of DMA transmission.”
->> The most likely issue is a mismatch between the USB data format and the I2S/DMA configuration. Carefully verify the data formats at each stage (USB, MCU, I2S, and ADAU1761) and use debugging tools to identify where the waveform becomes incorrect. Once the mismatch is identified, adjust the software to ensure compatibility.
For example
BR
Alice