AnsweredAssumed Answered

CubeMX for STM32F746-DISCO, TIM5 channel4 misleading generated code

Question asked by jose.luu on Feb 27, 2016
Latest reply on Feb 27, 2016 by jose.luu

Using channel4 of TIM5 sets up ARDUINO_PWM_CS_D10_Pin where actually the
signal is on D5

ARDUINO_PWM_CS_D10_Pin is defined as pin PI_0 which is the correct pin however.

------------- so I am expecting generated code to be:
in mxconstants.h
#define ARDUINO_PWM_D5_Pin GPIO_PIN_0
#define ARDUINO_PWM_D5_GPIO_Port GPIOI


in tim.c
    /**TIM5 GPIO Configuration    
    PI0     ------> TIM5_CH4 
    */
    GPIO_InitStruct.Pin = ARDUINO_PWM_D5_Pin;




---------- also TIM1_channel1 generated code  attempts to use the D5 pin, it is likely to have the converse problem

Outcomes