2014-10-09 07:59 AM
Hi,
I am running on an STM32F429I DISCO board and are trying to get the touchscreen to work in an application using the I2C bus, but I cannot get the touchscreen to run at the same time as the I2C.For the I2C bus I use the PA8, PC9 pins, i.e. the I2C3, as this seemed to be the only I2C bus on this board with free pins.Is there anything fundamental on this board preventing me from doing what I want to do, or am I just doing something wrong?Many thanks for any hints.Regards, Mats2014-10-31 05:11 AM
Finally I think I got this up and running. I had to modify my i2c init function and it now looks like this:
I2cHandle->Instance = I2Cx;
I2cHandle->Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
I2cHandle->Init.ClockSpeed = 100000;
I2cHandle->Init.DualAddressMode = I2C_DUALADDRESS_DISABLED;
I2cHandle->Init.DutyCycle = I2C_DUTYCYCLE_2;
I2cHandle->Init.GeneralCallMode = I2C_GENERALCALL_DISABLED;
I2cHandle->Init.NoStretchMode = I2C_NOSTRETCH_DISABLED;
I2cHandle->Init.OwnAddress1 = 0;
I2cHandle->Init.OwnAddress2 = 0;