cancel
Showing results for 
Search instead for 
Did you mean: 

How do you use a memsmic1 example ?

EEnco.1
Associate III

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Remy ISSALYS
ST Employee

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

View solution in original post

5 REPLIES 5
EEnco.1
Associate III

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 Employee

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

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
ST Employee

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

Thanks, I will try to do this