Nordic stack and drivers for the mbed BLE API

Dependents:   idd_hw5_bleFanProto

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

Error Log Module

Error Log Module

Module for writing error and stack to flash memory. More...

Data Structures

struct  ble_error_log_data_t
 Error Log Data structure. More...

Functions

uint32_t ble_error_log_write (uint32_t err_code, const uint8_t *p_message, uint16_t line_number)
 Function for writing the file name/message, line number, and current program stack to flash.

Detailed Description

Module for writing error and stack to flash memory.

It contains functions for writing an error code, line number, filename/message and the stack to the flash during an error, e.g. in the assert handler.


Function Documentation

uint32_t ble_error_log_write ( uint32_t  err_code,
const uint8_t *  p_message,
uint16_t  line_number 
)

Function for writing the file name/message, line number, and current program stack to flash.

Note:
This function will force the writing to flash, and disregard any radio communication. USE THIS FUNCTION WITH CARE.
Parameters:
[in]err_codeError code to be logged.
[in]p_messageMessage to be written to the flash together with stack dump, usually the file name where the error occured.
[in]line_numberLine number where the error occured.
Returns:
NRF_SUCCESS on successful writing of the error log.

Definition at line 47 of file ble_error_log.cpp.