I see,
I suppose it is done by
TIM_Configuration()
...
/* Immediate load of TIM2 Precaler value */
TIM_PrescalerConfig( TIM2, 0x100, TIM_PSCReloadMode_Immediate );
I missed that point as I am still trying to get a grasp on how to configure the timer for a time base mechanism. Particularly, I'm not sure of what is the difference between:
TIM_TimeBaseStructure.TIM_Prescaler = 0x1;
and
TIM_PrescalerConfig( TIM2, 0x100, TIM_PSCReloadMode_Immediate );
They both seem to hit the TIM2PSC register. Would know a bit more than maybe to tell me what is the distinction between those?
Thank you