Skip to main content
DDom.1
Associate II
September 13, 2021
Question

PDM, CRC

Hallo. I use stm32h747 with touch gfx. I connected PDM microphone and have error in decoding PDM to PCM, it looks Touch gfx use CRC module and stop PDM to PCM decoding. Is possible use at one system tgfx and PDM ?

BR

This topic has been closed for replies.

9 replies

Romain DIELEMAN
ST Employee
September 14, 2021

Hi,

CRC is mandatory to work with TouchGFX. But it does seem strange that it would cause issues with the rest of your code. I have no experience with PDC microphone, can you confirm it works without TouchGFX and with CRC still enabled ?

/Romain

DDom.1
DDom.1Author
Associate II
September 15, 2021

Yes. BSP\..\\ audio_record.c

Romain DIELEMAN
ST Employee
September 16, 2021

Yes but is the CRC enabled here as well ? Did you start a project from scratch or did you use the TBS for the stm32h747 discovery board available in TouchGFX Designer ?

Could you share your error as well ? Where does it hit hardfault exactly ?

/Romain

DDom.1
DDom.1Author
Associate II
September 16, 2021

Hi,

No hardfault error. Only PDM data decoded to PCM incorrectly. If i disable TouchGFX then PCM data (from BSP_AUDIO_IN_PDMToPCM - PDM_Filter(...) library) decoded correctly.

Romain DIELEMAN
ST Employee
September 16, 2021

Are you working on a custom hardware or on a STM32H747 dk or eval board ? If the latter could you share your project ?

/Romain

DDom.1
DDom.1Author
Associate II
September 17, 2021

Hi,

Where load project ?

Romain DIELEMAN
ST Employee
September 17, 2021

Here or through private message I guess if you don't want to make it available to everybody

/Romain

DDom.1
DDom.1Author
Associate II
September 17, 2021

Please provide link/ instructions for private loading

Romain DIELEMAN
ST Employee
September 20, 2021

What do you mean ?

/Romain