[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.
![image](https://user-images.githubusercontent.com/48661782/120282443-adddd980-c2ec-11eb-94d5-5e7a4cd75130.png)

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
  FSR/FAR:
   CFSR: 0x00000092
   HFSR: 0x40000000
   DFSR: 0x00000000
   AFSR: 0x00000000
  MMFAR: 0x20000018
  Misc
  EXC_RET: 0xfffffff1
  '
The screenshot is:
![image](https://user-images.githubusercontent.com/48661782/120283701-0d88b480-c2ee-11eb-80ec-64f85dd40a50.png)
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:
https://github.com/RIOT-OS/RIOT/issues/16512#issuecomment-851897608
-------------- 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