Mbed-os: get_tick assert fails

Created on 25 Jan 2018  路  4Comments  路  Source: ARMmbed/mbed-os

Description

  • Type: Bug? / Question
  • Priority: Major

Bug

Target
NRF52DK

Toolchain:
GCC_ARM

Toolchain version:

mbed-os sha:
5f6572179 (tag: mbed_lib_rev157, tag: mbed-os-5.6.6, origin/mbed-os-5.6) Merge pull request #5634 from ARMmbed/release-candidate

DAPLink version:

Expected behavior
Nop

Actual behavior

mbed assertation failed: os_timer->get_tick() == svcRtxKernelGetTickCount(), file: ./mbed-os/rtos/TARGET_CORTEX/mbed_rtx_idle.c

Followed by ending up in the hardfault handler mbed_die

Steps to reproduce
Happens to me all the time as soon as I use a debugger, I would rather know if this is either a known issue or what can cause this.
My program works fine unless a debugger is attached in one case, in another it just leaves the debugger behind (ozone and JLink sotware) and doesn't break.

My use case is running the AtWinc1500 as an SPI slave.

rtos bug

Most helpful comment

Halting the device in a debugger for too long or being in a critical section for too long can cause this assert to occur. This is not ideal so I created #5942 to remove the assert.

All 4 comments

@c1728p9 Please review

Halting the device in a debugger for too long or being in a critical section for too long can cause this assert to occur. This is not ideal so I created #5942 to remove the assert.

Closing this issue since #5942 has been merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DuyTrandeLion picture DuyTrandeLion  路  3Comments

1domen1 picture 1domen1  路  3Comments

ghost picture ghost  路  4Comments

bcostm picture bcostm  路  4Comments

pilotak picture pilotak  路  3Comments