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.

LP-CC1352P7: Unable to get Audio output from I2S echo example.

Part Number: LP-CC1352P7
Other Parts Discussed in Thread: CC3200AUDBOOST, CC3200, CC1352P7, CC2652R7, CC2642R

Hi,

   I was trying to run I2S echo example shared by TI resource .

The example recommends the CC3200AUDBOOST, which i purchased and followed the steps as below:

CC3200 Audio BoosterPack

  • The BoostPack’s DIN signal pin is not compatible with this LaunchPad. Use one of the following modification(s) to enable the CC3200 Audio BoosterPack’s usage with the i2secho example.
  • Bend down the two pins below DIO30. Additionally bend down DIO28-30. Be sure that the bent pin(s) do not make contact with the IC or any other component, bend them enough to make sure they don’t connect to the CC3200 Audio BoosterPack.
  • Attach the CC3200 Audio BoosterPack to the LP_CC1352P7_4
  • Run jumper wires between the following pins on the CC3200 Audio BoosterPack:
    • DIN: P3.3 and P3.9
    • DOUT: P3.4 and P3.10
    • BCLK: P3.5 and P3.8
    • FSYNC/WCLK: P4.9 and P3.7
I Did the first 3 steps and checked if i need to do step 4. Then i saw that connections should lead to "NC"(No connection, which i ensured by bending pins.
I ensured the 3.3V pin pointer matching to Launchpad pointer as well, as you can see in image attached.
With this setup, when i flash I2S example, i can see driver initialization LED glowing on CC1352P7 launchpad, but the audio feedback i am not getting.
What other way i can debug this ?
Attaching the photo of my setup.
  • Dear Vinay,

    I found two problems in the i2secho example:

    First, The INPUT_OPTION and OUTPUT_OPTION defines are ignored, and used nowhere else in the project.

    Secondly, it is going to sound counterintuitive, but in order to get the microphone working and outputting to the Line out output, you have to use the following call:

    Fullscreen
    1
    2
    3
    4
    /* Configure Codec */
    status = AudioCodec_config(AudioCodec_TI_3254, AudioCodec_16_BIT,
    SAMPLE_RATE, AudioCodec_STEREO, AudioCodec_SPEAKER_HP,
    AudioCodec_MIC_ONBOARD);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Let me know if it solved your issue.

    Regards,

    Arthur

  • One additional information is : When i change onboard microphone in i2s example code (without any changes), it works.

    So now the code of mine should be reviewed and set accordingly . 

    Can you please review and let me know.

    4382.i2secho.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*
    * Copyright (c) 2015-2020, Texas Instruments Incorporated
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    * * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Vinay,

    I am not sure to understand your request. I am under the impression you are saying that everything works as expected, is it correct?

    How can we help you?

    Best regards,

  • No Clement, after your modification suggestions i wanted to invoke onboard microphone, which is not working (buffer is not getting any data).

    So if you can review the code above, and point me if any mistakes are there then that would help.

  • Hi,

    We will review the code as soon as possible.

    Please confirm you manage to enable the onboard microphone for echo operation.

    Best regards,

  • Yes clement, in I2S echo example with following changes :  

    #define INPUT_OPTION                    AudioCodec_MIC_ONBOARD

    and while configuring  changing code as below

    /* Configure Codec */
    status = AudioCodec_config(AudioCodec_TI_3254, AudioCodec_16_BIT,
    SAMPLE_RATE, AudioCodec_STEREO, AudioCodec_SPEAKER_HP,
    INPUT_OPTION);

    worked smoothly, where onboardmic could echo back to SPEAKER_LINE_OUT.

  • As mentioned earlier we are looking for onboard microphone samples in RAM worth of 1.5sec data. This is where the code changes suggested were made and still no luck on getting onbaord mic data.

    Would be great if you could review my code as posted above.

  • Hi,

    Please use a logic analyzer to verify on which channel (i.e. on which WCLK polarity) the data is inputted to the CC1352P7 device.

    With the configuration I have, the following code needs to be modified (otherwise the device sample on the "wrong" channel):

    Fullscreen
    1
    2
    //i2sParams.SD1Channels = I2S_CHANNELS_MONO;
    i2sParams.SD1Channels = I2S_CHANNELS_MONO_INV;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Best regards,

  • Thanks Clement

1 2