| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Modules | Data Structures | Typedefs | Functions
HardFault exception
SDK common libraries

Default HardFault exception implementation. More...

## Modules
| HardFault default handler for debugging and release configuration

## Data Structures
struct | HardFault_stack
| Contents of the stack. More...

## Typedefs
typedef struct HardFault_stack | HardFault_stack_t
| Contents of the stack. More...

## Functions
void | HardFault_process (HardFault_stack_t *p_stack)
| Function for processing HardFault exceptions. More...

## Detailed Description

Default HardFault exception implementation.

## Typedef Documentation

typedef struct HardFault_stack HardFault_stack_t

Contents of the stack.

This structure is used to re-create the stack layout after a HardFault exception was raised.

## Function Documentation

void HardFault_process | ( | HardFault_stack_t * | p_stack | ) |

Function for processing HardFault exceptions.

An application that needs to process HardFault exceptions should provide an implementation of this function. It will be called from the HardFault handler. If no implementation is provided, the library uses a default one, which just restarts the MCU.

Note
  If the DEBUG_NRF macro is defined, the software breakpoint is set just before the call to this function.

Parameters

  p_stack | Pointer to the stack bottom. This pointer might be NULL if the HardFault was called when the main stack was the active stack and a stack overrun is detected. In such a situation, the stack pointer is reinitialized to the default position, and the stack content is lost.