how to get the stopwatch to work? The t0,t1,t2 as shown in the attachment, always stay at 0.00000000sec. Thanks
how to get the stopwatch to work? The t0,t1,t2 as shown in the attachment, always stay at 0.00000000sec. Thanks
I've actually never noticed these before, but as far as I can see from Keil's documentation, these will only work either when having tracing enabled or when doing simulations.
Tracing is unfortunately not possible with the nRF51822, since it doesn't have the necessary hardware, and simulations are only possible on the core itself, with the standard Cortex M0, not with any of the Peripherals. I'm therefore not sure that's really useful.
For further information, I suggest that you contact Keil directly.
Maybe too late, but in the debugger click on the "Registers" tab to ensure it is visible. The stopwatch apparently uses the SEC register but the debugger does not read that unless the registers window is in view - strange but true: Found in "Uncle Dave's" answer at https://stackoverflow.com/questions/15934229/keil-ide-stopwatch-not-working-in-debug-mode
It will work without trace, but will update only when you hit a breakpoint or stop the debugger. YMMV.