cancel
Showing results for 
Search instead for 
Did you mean: 

Time problem use STM32CubeMX generate code

WBowe
Associate II

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

3 REPLIES 3
Bob S
Principal

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.

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
Principal

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?