Skip to main content
DDom.1
Associate II
Sep 13, 2021 3:36 PM UTC
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
Sep 14, 2021 11:37 AM UTC

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
Sep 15, 2021 8:43 PM UTC

Yes. BSP\..\\ audio_record.c

Romain DIELEMAN
ST Employee
Sep 16, 2021 8:21 AM UTC

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
Sep 16, 2021 10:19 AM UTC

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
Sep 16, 2021 11:09 AM UTC

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
Sep 17, 2021 5:00 AM UTC

Hi,

Where load project ?

Romain DIELEMAN
ST Employee
Sep 17, 2021 7:29 AM UTC

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
Sep 17, 2021 12:56 PM UTC

Please provide link/ instructions for private loading

Romain DIELEMAN
ST Employee
Sep 20, 2021 6:41 AM UTC

What do you mean ?

/Romain