Hello everybody,
I am trying to calculate the time spent by the controller (LM3S2965) between 2 moments of time
The following syntax:
clock_t interval;
ENTER A CONDITIONAL interval = clock(); Send the interval . . . . ENTER AGAIN THE SAME CONDITIONAL intrerval = clock(); Send the interval
does compile but after compilation the controller acts as it is blocked. If I comment the line "interval = clock()" it functions again.
I cannot figure out what is the problem. Thank you in advance!!!
Random embedded never hardware never have any default clock that will work since no default clock code would have any idea about the capabilities of random hardware.
Thank you! I have checked the content of time.h and it doesn t have any specific implementation. You are right. I have to write code!
Keil is going to need you to supply code that targets your board, and the specific clock implementation you are using. If you haven't added any code, don't expect it to magically work.
www.keil.com/.../armlib_chr1358938938946.htm
nooooo. I mean have you got a real time clock?
Thanks for your reply! I am using a 8Mhz clock to work at 50Mhz.
Do you have a clock on the system? If no click the program might lock.
View all questions in Keil forum