2018-01-17 05:48 AM
Does anyone have informations about the pdm2pcm library in der STM32F4cube package? I cant't find anything on the ST-page.
2018-01-17 07:02 AM
Hello
Wolf.Colin
,You will find pdm2pcm library under STM32CubeF4 firmware package:
STM32Cube_FW_F4_V1.0\Middlewares\ST\STM32_Audio
You have the
Application note PDM audio software decoding on STM32 microcontrollersBest Regards,
Imen
2018-01-17 09:05 AM
Hello
DAHMEN.IMEN
,that´s what I found, but this lib differs from the one which is delivered with the software for the STM32F4-Discovery board. The calls shown in AN3998 are quiet different from the calls in the pdm2pcm_glo.h which is delivered in the STM32CubeF4 firmware package.
2018-01-18 02:05 AM
Hello
Wolf.Colin
,What is exactlythe difference ?
Best Regards
Imen.
2018-01-18 03:21 AM
Hi
DAHMEN.IMEN
,first the exported functions in 'pdm_filter.h' like described inAN3998:
void PDM_Filter_Init(PDMFilter_InitStruct * Filter);
int32_t PDM_Filter_64_MSB(uint8_t* data, uint16_t* dataOut, uint16_t MicGain, PDMFilter_InitStruct * Filter);
int32_t PDM_Filter_80_MSB(uint8_t* data, uint16_t* dataOut, uint16_t MicGain, PDMFilter_InitStruct * Filter); int32_t PDM_Filter_64_LSB(uint8_t* data, uint16_t* dataOut, uint16_t MicGain, PDMFilter_InitStruct * Filter); int32_t PDM_Filter_80_LSB(uint8_t* data, uint16_t* dataOut, uint16_t MicGain, PDMFilter_InitStruct * Filter);The exported functions in pdm2pcm_glo.h:
uint32_t PDM_Filter_Init(PDM_Filter_Handler_t *pHandler);
uint32_t PDM_Filter_setConfig(PDM_Filter_Handler_t *pHandler, PDM_Filter_Config_t *pConfig); uint32_t PDM_Filter_getConfig(PDM_Filter_Handler_t *pHandler, PDM_Filter_Config_t *pConfig); uint32_t PDM_Filter_deInterleave(void *pDataIn, void *pDataOut, PDM_Filter_Handler_t * pHandler); uint32_t PDM_Filter(void *pDataIn, void *pDataOut, PDM_Filter_Handler_t *pHandler);The changes took place between V2.x.x and V3.x.x of the lib. There are only a few lines in the release notes. For my opinion
this are major change which should be considered in an update of the AN3998 or in a new AN.
2018-02-05 03:00 AM
Hello
DAHMEN.IMEN
,,any news?
2018-02-13 06:08 AM
Hello
Wolf.Colin
,Thank you for reported this misalignmentbetween the library provided and the documentation.
In fact, We confirm this
misalignment
and theAN3998
document will be updated and published soon.Best Regards,
Imen
2018-04-24 03:11 AM
2 months have passed.
Any progress in documentation update?
2018-05-17 04:02 AM
Hello
kovalenko
,Sorry for this late answer and update.
The document will be updated and aligned on some details which prevents the document to be ready and published.
We will try to speed-up this process and
I will come back to you when the document will be published.With Regards,
Imen
2018-06-09 12:54 AM
Hi,
any news on document update?