Skip to main content
Visitor II
March 10, 2022
Question

How to import stm32 PCM data into my computer

  • March 10, 2022
  • 1 reply
  • 1973 views

I'm trying to convert a PDM data stream from a MEMS microphone into PCM. I think I managed to get a code working and now I want to verify that the acquisition is good. In my test code, I store all the PCM data into "uint16_t pcm_data[30000];"

While in debug mode, I can go into Live expression and see the data getting stored into pcm_data. Now I'd like to import pcm_data in my computer and check it using something like Audacity, but I can't find an easy way to do it. What solution do you recommend ?

    This topic has been closed for replies.

    1 reply

    Super User
    March 10, 2022

    If you're using a board with ST-LINK, serial port (UART) is a natural choice.

    You can often pimp the UART speed to 921600 baud, so even online transmission seems possible.

    hth

    KnarfB

    EEnco.1Author
    Visitor II
    March 10, 2022

    Thanks you, I will check it. Do I need any software to see the data sent by the stm32 ?

    Super User
    March 10, 2022

    A terminal program comes handy, like TeraTerm on Windows, minicom on Linux.

    hth

    KnarfB