This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1312R: PCM audio samples in pdmstream example of SimpleLink Audio SDK

Part Number: CC1312R

Hello, 

I am trying to integrate a system where I need the PCM audio samples in the pdmstream example in SimpleLink Audio SDK. I have tried the pdmsteam example and It's working fine. I am able to flash it and dump the .wav file using python script given. 

In the PCM audio samples code, I could see there is uint16_t pcmBuff with PCM_BUF_SIZE 32 when I do printf of these values on the console while in the debug mode the values seem to be a little off. 

Also, printf works very slow for this purpose, it's there any alternative to tap data that is real-time. 

Thanks a lot!

  • Hi Hemanth,

    Yes  would say printf is a bad solution for this situation. Since it's quite slow and resource consuming, it sounds like it's affecting the performance of your application. Especially when you are also running debug mode, remember that this will also impact your device. 

    I mean this is a radio device... you could send it over the air?

  • Hello Marie, 

    Yeah, definitely. I have included it just to check the values in the buffer. 

    I am not using any radio in it. Rather, the code uses UART driver to write these values into UART and you can print it using the python script given(which is using pyserial). The data format here is uint8_t(uartBuff) which is in string whereas the pcmBuff is uint_16 so, I have converted data in the UART into 16 bit and printing it on the console. That data is also not coming out to be proper. Whereas the same data in the.wav format is fine. 

  • Hello, 

    I am working on a microphone that is sending real-time samples into CC13152R. I want to visualize them in Debug mode to check the data is valid or not. Is there any way? 

    Thank you, 

  • Hi Hemanth,

    Is there any way for you to implement the verification check on the device? And then use LED or similar for a run-time visualization.