Hello,
I am a bit struggling with an issue concernig the pin definition. I am working with a board that has a STM32F446RE and I would like to use the TIM8 (PWM timer) to drive the inputs (INx).
#define M4_IN1 PC_6_ALT1 // ALTERNATIVE_1 in order to use the PWM TIM8
#define M4_IN2 PC_7_ALT1 // ALTERNATIVE_1 in order to use the PWM TIM8
#define M4_IN3 PC_8_ALT1 // ALTERNATIVE_1 in order to use the PWM TIM8
The hardware works since I have tested it as well with TIM1 and the simple pin definition (PA_8, PA_9 & PA_10).
The issue is already during the initialization when I get this message
“STM32-DRV: ERR: no timer on pin 294
MOT: Init not possible, driver not initialized”
By checking the PeripheralPins.c file (\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.3.0\variants\STM32F4xx\F446R(C-E)T") It is clearly mentioned that the pin PC_6_ALT1, PC_7_ALT1 and PC_8_ALT1 can be defined.
What could be wrong ?
Thank you for your help !
Best,
Jimmy