CubeMX Sys Timebase Source does not generate htim3 or xxx_timebase_tim.c
Hi
I have found that I have to "mess with" the Sys -> Timebase setting to get Generate Code to create the file stmf4xx_hal_timebase_tim.c. I have no other timers enabled, just the Sys -> Timebase setting which is set to TIM3.
When I say "mess with" I mean this:
- Generate Code does not generate the htim3 code nor the _timebase_tim.c file when Sys -> Timebase is, first, set to TIM3
- I need to switch between timebase timers and generate code repeatedly, probably with multiple CubeMX restarts and even a PC restart
- Somehow, I do not know why, it eventually works but I get the C file with htim3 declared
Once it has worked I find that regenerating code works every time. It is just that getting it to generate code correctly the first time is a problem.
It should work first time. It does not. I am generating code for MDK V5.
Regards
