error: 'TIM_Base_InitTypeDef' has no member named 'AutoReloadPreload'
Hello, I'm using a STM32 F446RETx trying to trigger an ADC conversion on PA0. I use TIM2 Channel 1 using a pwm with no output to trigger the ADC 1 conversion on channel 0. I have exactly one line that trigger an error at compilation (When I comment it, it compile without any error):
../Core/Src/tim.c:48:13: error: 'TIM_Base_InitTypeDef' has no member named 'AutoReloadPreload'
48 | htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
../Core/Src/tim.c:48:34: error: 'TIM_AUTORELOAD_PRELOAD_DISABLE' undeclared (first use in this function)
48 | htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
I would like to know if I'm using the wrong firmware and if yes, how can I get the IDE to use the correct one.
Or instead how can I configure the AutoReloadPreload register in bare-metal C.
The firmware package I'm using is STM32Cube FW_F4 V1.23.0
