Problem with changing I2C speed or dutycycle
Posted: Tue Jul 15, 2014 4:43 pm
hi
I'm testing testhal, I2C example on STM32F4-Discovery.
I've noticed that in this example board.h is NONSTANDARD_STM32F4_BARTHESS1 and not ST_STM32F4_DISCOVERY.
When I've changed board.h to DISCOVERY, I2CD2 was not working. Then I realized that GPIOB_CLK_IN, GPIOB_SDA are connected to (PIN10,PIN9), while according to the datasheet it should be connected as follow: GPIOB_CLK_IN, GPIOB_SDA (PIN10,PIN11). BTW, on NONSTANDARD_STM32F4_BARTHESS1 I2CD2 are set according to the datasheet - please note.
my problem now is that I cannot change I2C speed or dutycycle: when I change default I2CConfig values: 400KHz or FAST_DUTY_CYCLE_2 I don't get any I2C output signal (I'm checking with both scope and logic analyzer).
any idea? thanks
I'm testing testhal, I2C example on STM32F4-Discovery.
I've noticed that in this example board.h is NONSTANDARD_STM32F4_BARTHESS1 and not ST_STM32F4_DISCOVERY.
When I've changed board.h to DISCOVERY, I2CD2 was not working. Then I realized that GPIOB_CLK_IN, GPIOB_SDA are connected to (PIN10,PIN9), while according to the datasheet it should be connected as follow: GPIOB_CLK_IN, GPIOB_SDA (PIN10,PIN11). BTW, on NONSTANDARD_STM32F4_BARTHESS1 I2CD2 are set according to the datasheet - please note.
my problem now is that I cannot change I2C speed or dutycycle: when I change default I2CConfig values: 400KHz or FAST_DUTY_CYCLE_2 I don't get any I2C output signal (I'm checking with both scope and logic analyzer).
any idea? thanks