nRF5 SDK v15.2.0
Modules | Data Structures | Typedefs | Functions
HardFault exception

Default HardFault exception implementation. More...

Modules

 HardFault default handler for debugging and release configuration
 
 Generating HardFaults for testing
 Macros and functions used to generate a HardFault in a selected place.This functionality is meant to be used while testing the HardFault exception library functionality.
 

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

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_stackPointer 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.

Documentation feedback | Developer Zone | Subscribe | Updated