I have an issue with the timing in Real-time watch. The timing is of. It assumes a clock of 16MHz, while it is 168MHz. When I do recalibrate in the “Time unit:” window at set it to 168MHz the timing makes sense. An osDelay(100) will last 100ms. In the original position it says 1053ms which comes down to 100*(168/16) = 1050. Unfortunately, after doing “Recalibrate” and restarting the debugging it resets itself. Is there something I am missing that needs to be set in the VisualGDB settings? I have tried to set the “Chronometer” to 168MHz, but that does not help.
No worries. Please try calling ReportTicksPerSecond() from your code (it is defined in SysprogsProfiler.h) each time after the system clock frequency is changed. This will have the same effect as setting it manually.