cancel
Showing results for 
Search instead for 
Did you mean: 

MEMSMIC1 32 kHz sample rate

OceanPlumber
Associate II

Hi, 

When I input 32000 (32 kHz) into the AUDIO_IN_SMAPLE_FREQUENCY macro within cca02m2_conf.h 

The advanced tab within microphone properties is lost, not allowing me to select 32 kHz, 16 bit input. 

OceanPlumber_0-1723620194008.png

I have noted that when entering 48 kHz and 16 kHz as the AUDIO_IN_SMAPLE_FREQUENCY, the advanced tab is available, allowing me to select the correct sample rate, and stream audio in Audacity. 

 

Has anyone encountered this issue in the past and has a work around?

 

Using X-NUCLEO-CCA02M2 shield with the Nucleo F401RE board and Windows 11 OS.

1 ACCEPTED SOLUTION

Accepted Solutions
SimonePradolini
ST Employee

Hello @OceanPlumber 

Have you already checked the procedure described in UM1901 chapter 3.3.5?

 

Windows installs the proper USB driver only the first time the board is plugged.

If you rebuild the application changing the number of microphones or the sampling frequency, you can experience some issues as USB drivers are not automatically updated.

In this case, you should manually delete the audio drivers and let Windows automatically reinstall it. To do so, you should simply delete the “STM32 AUDIO Streaming in FS Mode” driver by just selecting it and deleting, unplugging the board and plugging it again.

The updated drivers are automatically installed and the USB microphone should restart working as expected.

 

Please feel free to contact us if the issue still persists or for any further new request.

Best regards

Simone

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
SimonePradolini
ST Employee

Hello @OceanPlumber 

Have you already checked the procedure described in UM1901 chapter 3.3.5?

 

Windows installs the proper USB driver only the first time the board is plugged.

If you rebuild the application changing the number of microphones or the sampling frequency, you can experience some issues as USB drivers are not automatically updated.

In this case, you should manually delete the audio drivers and let Windows automatically reinstall it. To do so, you should simply delete the “STM32 AUDIO Streaming in FS Mode” driver by just selecting it and deleting, unplugging the board and plugging it again.

The updated drivers are automatically installed and the USB microphone should restart working as expected.

 

Please feel free to contact us if the issue still persists or for any further new request.

Best regards

Simone

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Thanks Simone! 

Worked a treat in combination with another sub-menu in Windows 11, where you can change the sample rates of the input microphone. 

System-Sound-All sound devices - STM32 Audio Streaming FS Mode - Properties

The above is the third place I have found to change sample rate and bit depth of input devices. Oddly this let me change the sample rate while the other two file paths below had the sample rate selection greyed out. 

System-Sound-STM32 Audio Streaming FS Mode - Properties

Change System Sounds - Recording - STM32 Audio Streaming FS Mode - Properties

Thanks once again!