diff --git a/sched/misc/assert.c b/sched/misc/assert.c index e48f6f22b4..b4e5c48535 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -166,6 +166,14 @@ static void dump_stack(FAR const char *tag, uintptr_t sp, if (sp != 0) { _alert(" sp: %p\n", (FAR void *)sp); + + /* Get more information */ + + if (sp - 32 >= base) + { + sp -= 32; + } + stack_dump(sp, top); } else