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.

CC2564: Using CC2564 Bluetooth Module in Master Mode with STM32 in HSP Demo Application

Part Number: CC2564

I am currently using the CC2564 Bluetooth Chip Module in a project. I am working with the HSP Demo application with CC2564x STM32 Bluetopia SDK. In the "HSPDemo.c" file, within the "HDSET_Event_Callback" function, there is a comment under the "etHDSET_Audio_Connection_Indication" case that says "Initialize the STM32F I2S as master, the CC256X PCM as slave and DAC CS43L22 I2S as slave, all at 8KHz sample rate."

I am not using the DAC CS43L22. Instead, I am using the TLV320AIC codec with CC2564. Therefore, I did not include the "AUDIO.c" file in the project. I am planning to configure CC2564 as the master and the TLV320AIC codec as the slave. Afterwards, I intend to observe the configured frequency from the AUD_FSYNC output of the CC2564MODN module.

My question is how can I configure CC2564 as the master? Thank you in advance for your answers.

Furkan

  • Hi Furkan,

    The I2S settings are configured in the audio.c file and this is how it is configured to Master.

    and then it is initialized with those settings in the initializeaudio function 

    Kind Regards,

    Rogelio

  • Hi Rogelio,

    Thank you. I called the function 'VS_PCM_Codec_Config(BluetoothStackID, I2S_CLK_FREQ_IN_FS_8KHZ, CVSD_FREQUENCY)' in the etHDSET_Audio_Connection_Indication case and CommandBuffer[2] = 0x00; I'm doing it and set the CC2564 module as master. But only after Audio_Connection I can observe the configured frequency from AUD_FSYNC output of CC2564MODN module. I want to see this all the time before it comes to the Audio_Connection state. Can I provide this? If I add the Audio.c file to the software as you mentioned and configure the images as you have posted, can I see it all the time? 

  • Hi Furkan, 

    I am looking into this, ill follow up later this week.

    Best,

    Rogelio