2015-11-15 04:03 PM
I am trying to follow Application Note 3998 ''PDM audio software decoding on STM32 microcontrollers'' to convert the recorded PDM signal to PCM data. I copy the ''pdm_filter.h'' and ''libPDMFilter_Keil.lib'' files provided in the firmware package to the directory of source code. The code fails to compile and generate error like
''.\_build\STM32F401C-DISCO.axf: Error: L6218E: Undefined symbol PDM_Filter_Init (referred from selftest.o).''The ''PDM_Filter_Init'' is a function declared in ''pdm_filter.h''. So I am guessing somehow the other file ''libPDMFilter_Keil.lib'' fails to be included in the compiling, or for some other reasons I don't understand. Could anyone point out what I am missing? #audio-middleware #stm32f4-discovery-pdm-filter2015-11-15 04:55 PM
Ok, but do you ADD libPDMFilter_Keil.lib to the project? Not to the directory, to the project itself.
2015-11-15 06:32 PM
I added the lib binary, and now it works. Thanks!
I used to only add the headers of library files and the project could always compile. Maybe that only works for the ''filename,{c, h}'' pairs.2015-11-15 07:13 PM
Include files simple describe the interface, you still need the body of the functions supplied by .c or .lib/.a files.