2020-03-26 04:54 AM
I get some bug. I use mcu stm32l152ve. Version 1.9.0. After update i got some errors.
When i init, timer 6, 7, i got assert error in
assert_param(IS_TIM_SYNCHRO_INSTANCE(htim->Instance));
because
#define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \
((INSTANCE) == TIM3) || \
((INSTANCE) == TIM4) || \
((INSTANCE) == TIM5) || \
((INSTANCE) == TIM9))
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
In previous versions was
#define IS_TIM_MASTER_INSTANCE(INSTANCE) (((INSTANCE) == TIM2) || \
((INSTANCE) == TIM3) || \
((INSTANCE) == TIM4) || \
((INSTANCE) == TIM5) || \
((INSTANCE) == TIM6) || \
((INSTANCE) == TIM7) || \
((INSTANCE) == TIM9))
it work perfect
Solved! Go to Solution.
2020-04-02 02:45 AM
Hello,
Yes I confirm that TIM6 and TIM7 must be added to the IS_TIM_MASTER_INSTANCE macro.
I raised this internally for correction.
Thank your for highlighting this issue.
Best Regards,
Imen
2020-03-26 05:01 AM
Hello @Shilin
Could you please share your ioc file?
Thanks,
Khouloud
2020-03-26 08:00 AM
2020-03-27 04:30 AM
Seems not a cubeMX Issue,
@Imen DAHMEN Could you please check it ?
Thanks,
Khouloud
2020-04-02 02:45 AM
Hello,
Yes I confirm that TIM6 and TIM7 must be added to the IS_TIM_MASTER_INSTANCE macro.
I raised this internally for correction.
Thank your for highlighting this issue.
Best Regards,
Imen