Skip to content

Commit 8ef1a73

Browse files
committed
Remove tickless assert for tick count
Remove the assert that the tick count of the OS matches the tick count of the tickless timer as this occurs frequently when debugging. This is because the function svcRtxKernelResume only increments the OS's tick count until the next wakeup event so if the device was halted by a debugger past the next wakeup event the tick counts will be out of sync.
1 parent 26d0c6d commit 8ef1a73

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

rtos/TARGET_CORTEX/mbed_rtx_idle.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ static void default_idle_hook(void)
194194

195195
core_util_critical_section_enter();
196196
uint32_t ticks_to_sleep = svcRtxKernelSuspend();
197-
MBED_ASSERT(os_timer->get_tick() == svcRtxKernelGetTickCount());
198197
if (ticks_to_sleep) {
199198
os_timer->schedule_tick(ticks_to_sleep);
200199

0 commit comments

Comments
 (0)