Reaction to hard fault - how to reset instead of hang


laczenJMS
 

Hi,

Sometimes I run into the situation where a hard fault is triggered
(e.g. a bluetooth mesh node with a BT_RX_STACK_SIZE that is set to
small). The result of this is a system hang. I can correct this by
increasing the stack size but I am uncertain that the new stack size
will be big enough to handle whatever data is send to the node.

Is it possible to make the device reset instead of hang ? Is there a
configuration option to set what the device needs to do in case of a
hard fault ?

Kind regards,

Jehudi

Join devel@lists.zephyrproject.org to automatically receive all group messages.