Skip to main content
blue_eagle
Associate II
October 16, 2015
Question

Bug Report:Cube MX does not enable timer counter and interrupt

  • October 16, 2015
  • 1 reply
  • 557 views
Posted on October 16, 2015 at 14:15

When using Cube MX to generate initial code for general timer,the initial code does not set TIMx_CR1 register CEN bit and TIMx_DIER register UIE bit.So it is unable to go into timer overflow interrupt.

    This topic has been closed for replies.

    1 reply

    Chensie
    Visitor II
    October 17, 2015
    Posted on October 17, 2015 at 03:32

    Hello,

    You may do it in Timer configuration NVIC Setting.

    (like in Attachments)

    ________________

    Attachments :

    NVIC.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hth1&d=%2Fa%2F0X0000000aVp%2FUNU054uz_cYlBO1jzu65IzmDTXxOFUxTHnwjmisgl78&asPdf=false