C++ exception handler on gnu arm cortex m4 with freertos

前端 未结 3 2377
小蘑菇
小蘑菇 2021-02-20 02:03

Update 2016-12 There is now also a minimal example for this behavior: https://community.nxp.com/message/862676


I\'m using a ARM Cortex M4 with fr

3条回答
  •  不要未来只要你来
    2021-02-20 02:40

    By fault, most of your exceptions will execute the default handler, so the first thing you need to do is determine which exception is actually executing. You can see the "Determining Which Exception Handler is Executing" section on the following page: http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html

    I would guess, since you are not using a peripheral in your code, that it will be a fault handler, probably the hard fault. The same page (see link above) gives instructions on debugging that too.

    Other than that - ensure you do the normal FreeRTOS debug things, like ensure you have configASSERT() defined, and that you have stack overflow checking on. Info on those topics is found on this page: http://www.freertos.org/FAQHelp.html

提交回复
热议问题