It can’t work well after porting AWE BSP from ‘AWE BSP stm32f407 v1.2’ to stm32f469i-disco platform.
There is no correct data are processed in transmit complete callback function. Indeed, this instruction ‘pUSBSamples = ZeroedSamples’ also be executed while usb audio data are transferring, which causes fault audio data shown as below screen shot.
Is there any suggestion for this issue?
Is there a document or example? To introduce how to set parameters of modules by software instructions (without audio weaver). Thanks.
Source code from AWE BSP stm32f407 v1.2.
if (nSamplesAvail >= OUTPUT_BLOCKSIZE)
// Read a block of samples from the ASRC jitter buffer
dspc_asrc_read_output_linear_Q15(&USB_ASRC, USB_ASRCSamples, OUTPUT_BLOCKSIZE);
pUSBSamples = USB_ASRCSamples;
// Insert zeros if no audio samples available (CODEC continually runs)
pUSBSamples = ZeroedSamples;