Skip to main content
EEnco.1
Associate III
March 12, 2022
Solved

How do you use a memsmic1 example ?

Hey ! I'm trying to use the "microphone streaming' with stm32wb55 in memsmic1 expansion package but I struggle to do it (i'm new to stm32cubeide).

First, I import project from file system and I get this :

0693W00000KcNkmQAF.pngI click on finish and I get this :

0693W00000KcNkrQAF.pngHere I cannot build the project, i dont know why. In previous step, I saw that I could chose to import only the Eclipse project. If I do so, this time I can build the project but I got a error message :

0693W00000KcNlQQAV.png 

"make: *** No rule to make target 'C:/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c', needed by 'Middlewares/ST/STM32_USB_Device_Library/Core/usbd_core.o'. Stop."

It seems that there are missing files, where can I find them ? Did I forgot a step when importing this project ?

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
March 21, 2022

Hello,

Yes, you can use PDMFilter library also to obtain 48kHz PCM stream, you just need to initialize it accordingly (AUDIO_IN_SAMPLING_FREQUENCY  48000)

If you don’t have a CCA02M2 and you want to connect external microphone I suggest to connect it same way it’s done with the CCA02M2, so that you can use the same driver “Drivers\BSP\CCA02M2�?. On ST website you can find the schematic of the X-NUCLEO-CCA02M2 (https://www.st.com/en/ecosystems/x-nucleo-cca02m2.html#cad-resources).

Best Regards

5 replies

EEnco.1
EEnco.1Author
Associate III
March 13, 2022

Update : I found out how to use the example. Now, as I don't have the CCA02M2, I'm looking how to setup my MEMS microphone in SAI, but I don't know which file I should edit. Anybody has an idea ?

Remy ISSALYS
ST Technical Moderator
March 16, 2022

Hello,

You can look FP-AUD-BVLINKWB1 example available here:

https://www.st.com/content/my_st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-ode-function-pack-sw/fp-aud-bvlinkwb1.license=1647436333784.product=FP-AUD-BVLINKWB1.version=2.0.0.html#overview

You can also look How to use this driver section in stm32wbxx_hal_sai.c file to setup your SAI.

Best Regards

EEnco.1
EEnco.1Author
Associate III
March 17, 2022

Thanks for this reply I will look into it ! Do you know if I can use PDMFilter library to get a 48 kHz PCM stream ?

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
March 21, 2022

Hello,

Yes, you can use PDMFilter library also to obtain 48kHz PCM stream, you just need to initialize it accordingly (AUDIO_IN_SAMPLING_FREQUENCY  48000)

If you don’t have a CCA02M2 and you want to connect external microphone I suggest to connect it same way it’s done with the CCA02M2, so that you can use the same driver “Drivers\BSP\CCA02M2�?. On ST website you can find the schematic of the X-NUCLEO-CCA02M2 (https://www.st.com/en/ecosystems/x-nucleo-cca02m2.html#cad-resources).

Best Regards

EEnco.1
EEnco.1Author
Associate III
March 24, 2022

Thanks, I will try to do this