Skip to main content
Andrei Chichak
Lead
August 10, 2016
Question

Bug Report: CubeMX 4.16.0 on STM32F4Discovery TIM6 count down

  • August 10, 2016
  • 2 replies
  • 574 views
Posted on August 10, 2016 at 21:31

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 North

embedded.fm/blog
    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    August 11, 2016
    Posted on August 11, 2016 at 11:21

    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-

    Andrei Chichak
    Lead
    August 11, 2016
    Posted on August 11, 2016 at 19:39

    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