How do you install PDM library ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-07 07:46 AM
I struggle to use PDM Filter library.
This is the message error I get :
What I have done so far are : - in project properties, C/C++ general, Paths and syombols, in "Includes" I added the path to pdm2pcm_glo.h ; in "Library Paths" I added the path to a folder with all the libPDM_FIlter_CM3_GCC_wc16.A ... files.- Wrote #include "pdm2pcm_glo.h" in the main.
It's still not working :\
In "Paths and Symbols", in libraries, I think I can add a library but I don't know which one to use (all the files were included in mems1 folder). I tried randomly picking but I had another error message;
I am new to cubeIDE so it's very possible Im doing a beginner mistake here
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-08 02:08 AM
Thanks for you answer. I managed to fix the issue, it was a mistake with how I confugired the C/C++ Build settings. Thanks for taking your time to help me !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-07 11:40 AM
Hello @EEnco.1​ ,
Could you please confirm which library and IDE tool versions are used?
Please make sure to use the latest release of CubeMX/CubeIDE and keep me informed if you have the same issue.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-07 02:59 PM
I'm using STM32CubeIde 1.8.0 and for the library I took one from memsmic1_v5.6.0.
Maybe I'm doing something wrong with the library because when I do this :
I get this message error :
c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/username/STM32CubeIDE/workspace_1.8.0/MEMS/PDM/Lib/libPDMFilter_CM4_Keil_wc16.lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-08 01:33 AM
Update : I have managed to solve the issue, It was a problem with how I configured C/C++ Build settings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-08 02:04 AM
The error message suggests that there is no problem with include of header files. Pre-processing seem to work. The error is finding the PDM_Filter_Init function in the linked arhive file.
Did you have a look at the CubeIDE User Guide and specifically the chapter 2.5.8 Include libraries?
It shows quite hands-on how to add a library. I think you could validate this first.
Which library is the right one? Not sure... There seem to be dedicated archives for GCC, choose the one matching your fpu setting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-08 02:08 AM
Thanks for you answer. I managed to fix the issue, it was a mistake with how I confugired the C/C++ Build settings. Thanks for taking your time to help me !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-17 02:42 AM
Hi
where can i download "pdm2pcm_glo.h" library?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-02 03:43 AM
Hello @khashayar ,
The "pdm2pcm_glo.h" file is part of PDM2PCM library. You have to download the full zipped STM32CubeWB package from ST.com and then extract the content of the library Middlewares/ST/STM32_Audio.
With regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-15 02:46 PM
Hi, I am trying to use the pdm2pcm code to get the audio from MEMS I2S interface mics SPH0645LM4H.
I am getting this error during build.
Description Resource Path Location Type
C:/Users/mylaptop/STM32CubeIDE/workspace_1.14.0/audio_mic_I2S/Debug/../Middlewares/ST/STM32_Audio/Addons/PDM/Inc/pdm2pcm_glo.c:31: undefined reference to `PDM_Filter_setConfig' audio_mic_I2S C/C++ Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-16 01:53 AM
Hello @FShah.1
I suggest you in: C/C++ General/ Include paths and Symbols to Edit the format : Middlewares/ST/STM32_Audio/Addons/PDM/Inc and Middlewares/ST/STM32_Audio/Addons/PDM
And in C/C++ Build / Settings / MCU GCC Compiler / Include Paths : ../Middlewares/ST/STM32_Audio/Addons/PDM/Inc and ../Middlewares/ST/STM32_Audio/Addons/PDM