Other Parts Discussed in Thread: TCA9535, CC3220SF
Tool/software: Code Composer Studio
Hello All,
I am working with the CC3220MODASF launchpad and a TCA9535 I2C io exapansion IC.
I have successfully established communication over I2C with the TCA9535 using the default I2C settings of the launchpad (pins 1 = SCL, pin 2 = SDA), however I would like to use pins 3 and 4. I manually edited CC3220SF_LAUNCHXL.c file as follows:
const I2CCC32XX_HWAttrsV1 i2cCC3220SHWAttrs[CC3220SF_LAUNCHXL_I2CCOUNT] = { { .baseAddr = I2CA0_BASE, .intNum = INT_I2CA0, .intPriority = (~0), .clkPin = I2CCC32XX_PIN_03_I2C_SCL, .dataPin = I2CCC32XX_PIN_04_I2C_SDA } };
however, this does not work. My test code is based off of the i2ctmp006 example. Since editing just the I2C portion of the file did not work, I decided to create a whole new set of C3220SF_LAUNCHXL.h/ .c files using the pinmux tool, but unfortunately that did not work either. For a sanity check, I edited my new CC3220SF_LAUNCHXL.h/ .c files to use pins 1 and 2, and it worked again.
Ultimately, this code will go on a custom boar which has already been manufactured to use pins 3 and 4, so I need to get this working. What am I missing here?
Thanks,
Mike