Skip to main content
EEnco.1
Associate III
March 10, 2022
Question

How to import stm32 PCM data into my computer

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.

8 replies

KnarfB
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.1
EEnco.1Author
Associate III
March 10, 2022

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

KnarfB
Super User
March 10, 2022

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

hth

KnarfB