Part Number: TMS320F28386D
Other Parts Discussed in Thread: TMS320F28377D, SYSCONFIG
Hello,
I have a problem of communication with I2C by running the following example: "i2c_ex2_eeprom".
I'm trying to establish the I2C communication between TMS320F28386D and the EEPROM 24LC512-E/SM.
I'm using this example but I needed to edit some details to use it with my custom board:
- I need to use I2C_B and not I2C_A like the example, for that I'm using this following GPIO pins:

- I changed all the macro and functions of I2C_A with the macro of I2C_B (e.g INT_I2CB, i2cBISR, I2CB_BASE) inside the code.
- I setted the external I2C EEPROM at address 0x51 (and not 0x50 like the example)
- I connected DEVICE_GPIO_PIN_SDAB on to external EEPROM SDA (serial data) pin.
- I connected DEVICE_GPIO_PIN_SCLB on to external EEPROM SCL (serial clock) pin.
When I run the program, the code is fixed on the fail loop at the end of code (in debug I see the failCount=8 and the array msgbuffer of i2cMsgIn with 255 decimal values):

By checking with oscilloscope, I don't see any clock in SCL pin of the EEPROM, this seems strange.
I don't know where is the problem, is it due to a wrong implementation of changes on the code? Wrong interpretation on the functioning of i2c or of example?