Other Parts Discussed in Thread: EK-TM4C129EXL, TMP006
HI,
I am trying to get I2C interface to first just start up and send an initial master write request. At this point, only watching SCL and SDA at the Boosterpack header pins. There is no observed activity on either pin when the example is run in the debugger. The pins don't even get pulled high.
The example project was copied into CCS Version: 7.1.0.00016 via the CCS Resource Explorer, from folder TI-RTOS for TivaC-v:2.16.00.08\Development Tools\EK-TM4C129EXL\DriverExamples\I2C_Examples\I2C_tmp006.
The I2C is initiallized as follows:
void EK_TM4C129EXL_initI2C(void)
{
/* I2C7 Init */
/*
* NOTE: TI-RTOS examples configure pins PD0 & PD1 for SSI2 or I2C7. Thus,
* a conflict occurs when the I2C & SPI drivers are used simultaneously in
* an application. Modify the pin mux settings in this file and resolve the
* conflict before running your the application.
*/
/* Enable the peripheral */
SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C7);
/* Configure the appropriate pins to be I2C instead of GPIO. */
GPIOPinConfigure(GPIO_PD0_I2C7SCL);
GPIOPinConfigure(GPIO_PD1_I2C7SDA);
GPIOPinTypeI2CSCL(GPIO_PORTD_BASE, GPIO_PIN_0);
GPIOPinTypeI2C(GPIO_PORTD_BASE, GPIO_PIN_1);
/* I2C8 Init */
/* Enable the peripheral */
SysCtlPeripheralEnable(SYSCTL_PERIPH_I2C8);
/* Configure the appropriate pins to be I2C instead of GPIO. */
GPIOPinConfigure(GPIO_PA2_I2C8SCL);
GPIOPinConfigure(GPIO_PA3_I2C8SDA);
GPIOPinTypeI2CSCL(GPIO_PORTA_BASE, GPIO_PIN_2);
GPIOPinTypeI2C(GPIO_PORTA_BASE, GPIO_PIN_3);
I2C_init();
}
This is called via Board_initI2C() from main in file i2ctmp006.c.
In a prior call, all the gpio ports are init via call to Board_init_GPIO and Board_initGeneral.
I have poked around the forums but have not seen any indication any of the above is incorrect; in fact i have to say based on what I have read so far, the above is correct.
Hope someone here can ask the right questions about what I'm doing that will lead to a solution.
Thank you in advance.