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.

CC2652P: I2S driver not initializing

Part Number: CC2652P
Other Parts Discussed in Thread: SYSCONFIG, SIMPLELINK-CC13X2-26X2-SDK

Hello Community 

Greetings of the day..!!

I am not able successfully to initialize the I2S driver, every time I tried to initialize and open the I2S driver instance as per the TI API Drivers Documentation my I2S handle returned from the

i2sHandle = I2S_open(CONFIG_I2S0, &i2sParams);
 is pointing to NULL.

Hardware used: CC1352P-2 launch pad HW Rev: B

TI SDK Version: 5.20.00.52

Please help me with this.

Thanks and regards
Lokesh.cj

  • Do you call I2S_init() before you call I2S_open?

  • Hi Lokesh,

    Please reference the i2secho example and I2S TI Driver API.

    Regards,
    Ryan

  • Hi Ryan Brown1


    I have gone through the I2S TI Driver API


    Still I2S_open() is returning null,

    I have tried with the launchpad and other hardware(CC2652P), sysconfig I2S pins configured as per my schematics.

    Other hardware configurations:
    Wireless MCU: CC2652P
    TI SDK Version: 5.20.00.52

    Other hardware sysconfig configurations:

    Name - CONFIG_I2S_43434
    Hardware Interrupt Priority - 7 - Lowest Priority
    SD1 Data Direction - Disabled
    SD0 Data Direction - Output
    Master Slave Selection - Master
    Enable MCLK - No
    PinMuxPeripheral and Pin Configuration
    I2S Peripheral - I2S0
    SD0 Pin - 20
    SCK Pin - 21
    WS Pin - 26

    Please find the below code  for your reference.

        I2S_init();
        I2S_Params_init(&iaqI2sParams);
        iaqI2sHandle = I2S_open(CONFIG_I2S_43434, &iaqI2sParams);
    
        if (iaqI2sHandle == NULL)
        {
            while (1){};
        }
     

    Reagrds 
    Lokesh CJ

  • Hi YiKai Chen

    I am doing it,
    please refer my second replay.

  • I did not experience any issues when using the out-of-box CC1352P-2 i2secho example with the v5.20 SIMPLELINK-CC13X2-26X2-SDK.  With the configuration you highlighted, I made sure to move the I2C SCL pin from DIO21so that they would not conflict (DIO20 is also used for the MX25R8035F SPI slave select on LaunchPads) but was otherwise able to use your settings without I2S_open failing.

    Regards,
    Ryan