Skip to main content
Associate
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

1 reply

Tesla DeLorean
Guru
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. 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
chenwei97Author
Associate
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

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..