cancel
Showing results for 
Search instead for 
Did you mean: 

TIM1 cube MX code generation bug for PE15 as an alternate pin.

jackalope
Visitor

When attempting to configure TIM1 channel 4 to "PWM Generation CH4 CH4N" to operate on PE15 for the eval board, the code in tim.c will include the following:

 

jackalope_0-1741037310729.png

However, the definition used, GPIO_AF3_TIM1, is a HAL library definition instead of "LL_GPIO_AF_3", which is the correct LL definition (in both cases, the value is 0x3h). If both the HAL and LL drivers are used, this may still compile, however if only using LL drivers without the HAL, it will throw a compile time error.

0 REPLIES 0