Other Parts Discussed in Thread: HALCOGEN
Hello,
I've been having problems with the I2C peripheral on our project. During initialisation, some I2C write commands are sent to some slave devices to configure them - all bytes are acknowledged correctly by the slaves. After that, the SPI peripherals are initialised. However, it appears that the I2C slave devices stop responding after calling the HALCoGen mibspiInit() function. Any further writes to the I2C slaves are not acknowledged although the SCL and SDA lines look normal on a logic analyzer. The I2C initialisation also fails if I move it after the SPI initialisation. If I comment out the mibspiInit() function, the I2C devices continue working fine.
The only link I can think of is that some of the MIBSPI3 pins are multiplexed with the I2C lines and we are using the other MIBSPI3 pins as GPIO. The pinmux in HALCoGen is definitely set to use the I2C function for the SCL and SDA pins. The two pins are set as inputs on the MIBSPI3 port tab.
Is there any way the SPI configuration could be interfering with the I2C bus?
Thanks