[riot-notifications] [RIOT-OS/RIOT] "Context before hardfault:" when calling msg_try_send() (#16512)

lvjiamei notifications at github.com
Tue Jun 1 09:34:28 CEST 2021

> Can you try running `BOARD=nrf52840dk make debug` on one of the failing boards? The debugger might be able to show a backtrace.

Thanks for your advice! I try to run `BOARD=nrf52840dk make debug`.  However, there is a error —"Cannot find bounds of current function" when I debug the code step by step. the output is as below.

What' worse, I found my program crashes earlier after I made some changes (I forget what I have changed :() .  The log is
  > Stack pointer corrupted, reset to top of stack
   CFSR: 0x00000092
   HFSR: 0x40000000
   DFSR: 0x00000000
   AFSR: 0x00000000
  MMFAR: 0x20000018
  EXC_RET: 0xfffffff1
The screenshot is:
I have add ‘CFLAGS += -DDEBUG_ASSERT_VERBOSE’ in the Makefile and there seems no more information.
How can I determine where the error occurred? Thanks a lot!!!

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210601/8f2bb104/attachment-0001.htm>

More information about the notifications mailing list