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.

CC3220S-LAUNCHXL: I2S, how to leave McACLKX unassigned so that pin could be used as a GPIO?

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3220S

Greetings!

In out design we are using almost all of the CC3220S available pins. Our I2S peripheral does not require the McACLKX signal so we want to re purpose that pin as a GPIO. When we try to remove that pin definition the code compiles fine but then fails at runtime. How can we go about it?

Thanks,

Dan

Original setting CC3220S_LAUNCHXL.c:

--

/*
 *  =============================== I2S ===============================
 */
#include <ti/drivers/I2S.h>
#include <ti/drivers/i2s/I2SCC32XXDMA.h>

I2SCC32XXDMA_Object i2sCC3220SObjects[CC3220S_LAUNCHXL_I2SCOUNT];

const I2SCC32XXDMA_HWAttrsV1 i2sCC3220SHWAttrs[CC3220S_LAUNCHXL_I2SCOUNT] = {
    {
        .baseAddr = I2S_BASE,
        .intNum = INT_I2S,
        .intPriority = (~0),
        .rxChannelIndex = UDMA_CH4_I2S_RX,
        .txChannelIndex = UDMA_CH5_I2S_TX,
        .xr0Pin = I2SCC32XXDMA_PIN_50_McAXR0,
        .xr1Pin = I2SCC32XXDMA_PIN_60_McAXR1,
        .clkxPin = I2SCC32XXDMA_PIN_62_McACLKX,
        .clkPin = I2SCC32XXDMA_PIN_53_McACLK,
        .fsxPin = I2SCC32XXDMA_PIN_15_McAFSX,

    }
};

--

Commented out CC3220S_LAUNCHXL.c:

--

/*
 *  =============================== I2S ===============================
 */
#include <ti/drivers/I2S.h>
#include <ti/drivers/i2s/I2SCC32XXDMA.h>

I2SCC32XXDMA_Object i2sCC3220SObjects[CC3220S_LAUNCHXL_I2SCOUNT];

const I2SCC32XXDMA_HWAttrsV1 i2sCC3220SHWAttrs[CC3220S_LAUNCHXL_I2SCOUNT] = {
    {
        .baseAddr = I2S_BASE,
        .intNum = INT_I2S,
        .intPriority = (~0),
        .rxChannelIndex = UDMA_CH4_I2S_RX,
        .txChannelIndex = UDMA_CH5_I2S_TX,
        .xr0Pin = I2SCC32XXDMA_PIN_50_McAXR0,
        .xr1Pin = I2SCC32XXDMA_PIN_60_McAXR1,
        //.clkxPin = I2SCC32XXDMA_PIN_62_McACLKX,
        .clkPin = I2SCC32XXDMA_PIN_53_McACLK,
        .fsxPin = I2SCC32XXDMA_PIN_15_McAFSX,

    }
};

--