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.

CCS/CC3200: How can I enable the I2C pin of 16the (SCL) and 17th(SDA)?

Part Number: CC3200
Other Parts Discussed in Thread: CC3220SF

Tool/software: Code Composer Studio

I am using the I2C demo application to communicate the sensor through I2C. I want to change the pin from 1 and 2 to 16th and 17th. When, I changed it, the communication is not happening with CC3200. How can I enable these pins? The pins is not enabling for I2C. The code is given below which I am using.

void
PinMuxConfig(void)
{
    //
    // Enable Peripheral Clocks 
    //
    MAP_PRCMPeripheralClkEnable(PRCM_UARTA0, PRCM_RUN_MODE_CLK);
    MAP_PRCMPeripheralClkEnable(PRCM_I2CA0, PRCM_RUN_MODE_CLK);

    //
    // Configure PIN_55 for UART0 UART0_TX
    //
    MAP_PinTypeUART(PIN_55, PIN_MODE_3);

    //
    // Configure PIN_57 for UART0 UART0_RX
    //
    MAP_PinTypeUART(PIN_57, PIN_MODE_3);

    //
       // Configure PIN_16 for I2C0 I2C_SCL
       //
       MAP_PinTypeI2C(PIN_16, PIN_MODE_9);

       //
       // Configure PIN_17 for I2C0 I2C_SDA
       //
       MAP_PinTypeI2C(PIN_17, PIN_MODE_9);
}

  • Hello,

    The configuration looks just fine. I double checked it with pinmux utility.

    To ensure the application code is correct, when you switch back to pins #01 and #02, is it working fine?

    If it does, would be good if you can probe the lines with a loggic.

    Regards,

    Shlomi

  • Hi,

    This is a know issue of CC3200 pinmux. Please follow e2e.ti.com/.../1995429

    Jan
  • thanks Jan for the info.
  • Hi,
    thanks for the information.
    The above solution is given for 3rd and 4th. But, the I want to use the 16th and 17th pin as a SCL and SDA pin.
    I have used the same procedure but the SCL and SDA is not working for 16th and 17th. The reason might be, the 16th and 17th pin is also JTAG pin. It might be possible that it is not working.
    Is there any solution for this?
    Can I use 16th and 17th pin as a SCL and SDA while it is working as a JTAG pin at the same time?
  • Hi,

    I think it should work in case of SWD (2 wire JTAG) is used for debug. But as I remember I had issue with SWD at CC3200 chips in CCS. I don't know exact reason but at new CC3220 I have't seen such kind of issue.

    To be able use SWD you need to switch SOP configuration to SWD and set target configuration in CCS as well.

    Jan
  • Hi Black_Robot, Jan,

    You can use the SWD configuration for JTAG on CC3220. We use it in the Wi-Fi Thermostat TI design with the CC3220SF without issue. SOP must be in 001 mode.

    Best regards,
    Sarah
  • Hi Sarah,

    Yes, I agree SWD with CC3220 and CCS works without any issue (with XDS-100 and XDS-110).

    It was (maybe still is) a issue with CC3200 in SWD and CCS (with XDS-100). At IAR worked SWD with CC3200 without any issue. Problem was reported by more e2e forum users. Issue was even investigated by TI, but without any conclusion. I am not able say if problem persist or not cause I don't use CC3200 now.

    Jan