Skip to main content
Visitor II
July 12, 2025
Question

tim2 of stm32h753: 32-bit counter can only count up to 65,536.

  • July 12, 2025
  • 1 reply
  • 543 views

1pc.png2pc.png3pc.png

    This topic has been closed for replies.

    1 reply

    Graduate II
    July 12, 2025

    Perhaps look at and show the code that's running on the part.

    The generated code and the print output routines will be far more informative as to why it's not working as expected.

    Definitely 32-bit, inspect registers with debugger. 

    chenwei97Author
    Visitor II
    July 12, 2025

    Ok, thank you. Here I'll ask my friend about the code that runs in this part.
    In this case, it doesn't necessarily mean the sector has gone bad, does it

    Graduate II
    July 12, 2025

    >>In this case, it doesn't necessarily mean the sector has gone bad, does it

    I don't understand what you mean.

    Show the generated code, the configuration screens aren't helping me understand the source of the problem.

    Make sure you're not reading the TIM2->CNT value into a smaller variable and truncating.