Skip to main content
jackalope
Associate
March 3, 2025
Question

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

  • March 3, 2025
  • 1 reply
  • 301 views

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.

1 reply

Technical Moderator
March 4, 2025

Hello @jackalope ,

 

First let me thank you for posting and welcome to the ST Community.

Your request is under investigation, and I will get back to you ASAP.

I suggest also that you provide the MCU reference.

 

Thanks.

Mahmoud

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.