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

前端 未结 3 2358
小蘑菇
小蘑菇 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:16

    From the RTOS side of things, C++ exceptions are just a glorified jump. As long as they're jumping from one bit of your code to another, they don't interfere with the RTOS. So you can write a try { } catch(std::exception) { }.

    When there is no C++ handler, the RTOS indeed will have to step in as your C++ code stops running.

提交回复
热议问题