Skip to main content
This topic has been closed for replies.

9 replies

Tesla DeLorean
Guru
Jul 12, 2025 8:31 AM UTC

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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
chenwei97Author
Associate
Jul 12, 2025 8:48 AM UTC

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
Jul 12, 2025 9:05 AM UTC

>>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 Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..