Cannot read I2C on F303K8T6 when TIM3 is in PWM generation on all its 4 channels
after generating the code with cubeMX in order to have 490Hz output PWM for all TIM3 4 channels inside the main if I call (using HAL)
Hal_Tim_Base_Start(&htim3);
Hal_Tim_Pwm_start(&htim3, TIM_CHANNEL_1);
Hal_Tim_Pwm_start(&htim3, TIM_CHANNEL_2);
Hal_Tim_Pwm_start(&htim3, TIM_CHANNEL_3);
Hal_Tim_Pwm_start(&htim3, TIM_CHANNEL_4);
i2c not works correctly and I cannot read the mpu6050.
I2C is configured in fastMode (400KHz).
If I comment the 4 pwm_start line above I can read correctly the sensor when TIM3 is active and PWM is not enabled.
if I change TIM3 with TIM1 I can read correctly the mpu6050 and I can generate the PWM.
So the question is: why i2c not work when I use TIM3 and works correct when I use TIM1 ?
thanks
