Hi,
There are many posts mentioning time measurement with TSCH, TSCL. One except is listed below. I have tried with loadti to run my program. It has no problem to test the outside of the main function. Now I want to a part of the function (loop). There are almost half time from the difference fo TSCL(H) before and after the code to be test are all 0's. The second half time shows a larger value (about 1218 cycles). This is rather bizzarre.
Now, I want to get the TSCL(H) difference with EVM(6678) by hardare method. It can be test with debug info turned on. With debug info switch to skeletal, the breakpoint cannot setup. How to deal with this difficulty?
Thanks.
.............
I recommend you start with the assumption that the value you see in TSCL is correct. If it is correct, this represents approximately 1.5 seconds of delay, and that can be checked by setting a breakpoint at the last read of TSCH and trying to judge the time by watching the second hand on a clock.