We are working on a HS Microphone driver for the STM32F7 microcontroller. We have a base project that functions periodically that needs to be debugged so that the microphone works 100% of the time.
For a little background, The original project was ported from the STM32Cube Expansion MEMs MIC 1 project and I have modified the project to work with the STM32F769, HS USB and to take audio data from a static file to eliminate any issues with interrupts from the MEMs microphones that may have been causing any problems, but the result is the same. I have also added print statements to functions so that we can trace through the calls. I am using Audacity to record the audio as shown in the image attached. The Audio is working intermittently and we are looking to resolve the issues and get the microphone working 100%. I have attached the STM32 Cube project that uses Keil tools to this post for review.
The USB_REQ_SET_INTERFACE setup call gets called every time located in usbd_audio_in.c @ 326 which is opening the Isoch endpoint and setting the alternate interface and sending a dummy buffer of data. This should be followed by a DataIn which happens sometimes and when it does occur audio is recorded fine when it does not happen stopping and starting the recording multiple times can get it to fire.
USBD_AUDIO_DataIn usbd_audio_in.c @ 393, needs a delay in there on line 401 to work properly which looks like if the function completes too fast there is an issue but haven't found what the error is.
What We Would Like Resolved (Statement Of Work):
1. HS USB Microphone Start and Stop recording from Audacity to work 100% of the time
2. Remove delay added to Data-In to make audio capture work
Youtube Video of the Project Running:
[login to view URL]
7 freelancere byder i gennemsnit $210 på dette job
thanks for sharing details. I have worked on ST32 series MCU, I would like to troubleshoot your issues and work together. Lets have further discussion, If you are ok with budget. Thanks