2016-08-10 12:31 PM
Using CubeMX version 4.15.1 running on a Mac with a new project targeting the STM32F4Discovery board. (Also tested on 4.16.0)
In the pinout panel activate TIM6. In the configuration panel, pick TIM6, put in a prescaler. Try and set the Counter Mode to Down. Nope, down isn't an option. Set a count, still can't set Down mode. That's a problem.This might happen on other timers too, I'm not sure.IOC file is attached.Andrei from The Great White Northembedded.fm/blog2016-08-11 02:21 AM
Hi Andrei,
It is not an MX bug, in fact, according to the product reference manual the Basic timers (TIM6&TIM7) include a 16-bit auto-reload upcounter.-Syrine-2016-08-11 10:39 AM
You are, of course, correct. I was reading the wrong section of the manual. And the assert would not have thrown because TIM_COUNTERMODE_DOWN is a valid mode, even if it isn't appropriate for this timer.
Thanks again.Andrei