Skip to main content
WBowe
Associate
September 20, 2019
Question

Time problem use STM32CubeMX generate code

  • September 20, 2019
  • 3 replies
  • 1627 views

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
September 20, 2019

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
September 21, 2019

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
September 24, 2019

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?