Skip to main content
WBowe
Associate
Sep 20, 2019 8:38 AM UTC
Question

Time problem use STM32CubeMX generate code

I use Keil MDK to Build the project.

When I into debug mode and run the code the time is still at 0.

0690X00000ARTZzQAP.png

This topic has been closed for replies.

3 replies

Bob S
Super User
Sep 20, 2019 1:44 PM UTC

Wow, what a total lack of any helpful information! I don't see any variable in that screen shot that looks like a "time" variable, though I guess you mean "main_Count", but that definitely doesn't contain "0". As I posted elsewhere, we can't read minds or divine code bugs by reading tea leaves. What "time" do you mean? How is this "time" supposed to change (i.e. is this the HAL Tick timer)? What have you done so far to try and debug this? If you want any help from us, you need to post your code and tell us what you expect to happen.

WBowe
WBoweAuthor
Associate
Sep 21, 2019 12:11 PM UTC

Thank your reply​. I am sorry that I did not explain clearly. I update the picture. The time what I mean is the MCU operation time.

Bob S
Super User
Sep 24, 2019 3:08 PM UTC

Ohhhhhh, THAT time. That is a Keil IDE thing, so I don't know why it shows zero. Maybe you have to click on it to start the timer?