2022-03-12 11:21 AM
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 :
I click on finish and I get this :
Here 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 :
"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 ?
Solved! Go to Solution.
2022-03-21 08:50 AM
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
2022-03-13 03:57 AM
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 ?
2022-03-16 06:54 AM
Hello,
You can look FP-AUD-BVLINKWB1 example available here:
You can also look How to use this driver section in stm32wbxx_hal_sai.c file to setup your SAI.
Best Regards
2022-03-17 01:58 PM
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 ?
2022-03-21 08:50 AM
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
2022-03-24 03:37 AM
Thanks, I will try to do this