Skip to main content
Visitor II
September 13, 2021
Question

PDM, CRC

  • September 13, 2021
  • 5 replies
  • 3218 views

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.

    5 replies

    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.1Author
    Visitor II
    September 15, 2021

    Yes. BSP\..\\ audio_record.c

    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.1Author
    Visitor 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.

    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.1Author
    Visitor II
    September 17, 2021

    Hi,

    Where load project ?

    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.1Author
    Visitor II
    September 17, 2021

    Please provide link/ instructions for private loading

    ST Employee
    September 20, 2021

    What do you mean ?

    /Romain