When debugging with CCS the Timer (RTI) peripherals:
- I double checked that RTIn_RTIGCTRL->COS is set to 0.
- I double checked that CCS->Preferences->Run/Debug->View Performance->Minimum interval between steps is set to 0ms
- I double checked that CCS->Debug Configurations->"debug configuration in use"->Target->Program/Memory Load Options->Disable interrupts->"when assembly stepping" is set.
Let's say I have a for loop that reads the RTIn_RTIFRC0 register. If I let the code run without debugging and I collect the data, I get meaningful values (i.e. about one step increment of the free running counter for each loop iteration, that somehow makes sense as the timer is running with 25MHz clock and RTIn_RTIUC0 increments every 40ns and compares with RTIn_RTICPUC0 that is set to 25, resulting in 1us increment of RTIn_RTIFRC0).
When stepping the code (even from disassembly window) I get that the RTIn_RTIFRC0 as incremented of about 200 ms between consecutive reads of the register, while I would expect the same behavior of when reading the RTIn_RTIFRC0 and not debugging it.
What is the reason for this ?