(From customer),
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;
}
else
{
// Insert zeros if no audio samples available (CODEC continually runs)
pUSBSamples = ZeroedSamples;
}
6:14pm
Hey Will,
There is a function called 'USBD_AUDIO_DataOut' in the file 'usbd_audio.c', included in the BSP, that inserts USB audio samples into the ASRC jitter buffer. Please make sure that this code is working correctly.
Note that we also have a stm32l496 BSP available on our downloads page, which may be an easier port for the user.
-Axel
10:25pm
Hi Axel,
For ASRC jitter buffer, is there more introduction? In order to identify if this code is working correctly.
In addition, is it impossible for AWE users to set parameters of modules at run-time if there isn’t a PC be connected to MCU, and how to realize that only by MCU software?
-Will
12:45pm
Hi Will,
I can send you an email with a package to help you out. Is the qq.com email in your profile appropriate?
-Axel
9:49pm
Hi Axel,
You can mail me at willwang@dspconcepts-asia.com. Thanks for your kind help.
Will