WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
log_oml_exception.c 文件参考
#include "debug_print.h"
#include "securec.h"
#include "log_def.h"
#include "log_common.h"
#include "log_reg_dump.h"
#include "tcxo.h"
#include "non_os.h"
#include "log_oml_exception.h"
#include "los_task_pri.h"
#include "watchdog.h"
#include "watchdog_porting.h"
#include "uart.h"
#include "last_dump.h"
#include "last_dump_adapt.h"
#include "dfx_feature_config.h"
log_oml_exception.c 的引用(Include)关系图:

宏定义

#define STACK_SIZE   3
 
#define ONLY_ACORE_NUM   1
 
#define GENERAL_REG_NUM   32
 
#define DUMP_DELAY   6000ULL
 
#define LOG_DELAY   2000ULL
 

函数

void log_exception_dump (uint32_t irq_id, exc_context_t *exc_buf_addr)
 Invoked by exception to dump exception information.
 
void log_exception_send_data (const uint8_t *data, uint16_t length)
 Dump the ram when hardfault or watchdog.
 
void log_oml_dump_stack (void)
 Dump the current task stack when in systemfaults and watchdog timeout.
 
void log_oml_memory_dump (void)
 Dump the whole rom when hardfault or watchdog.
 
void log_oml_exception_info_send (uint32_t irq_id, const exc_context_t *exc_buf_addr)
 SDT interface to send SDT format fault message.
 
void default_register_hal_exception_dump_callback (void)
 Register exception dump to fault interrupt.
 

宏定义说明

◆ DUMP_DELAY

#define DUMP_DELAY   6000ULL

◆ GENERAL_REG_NUM

#define GENERAL_REG_NUM   32

◆ LOG_DELAY

#define LOG_DELAY   2000ULL

◆ ONLY_ACORE_NUM

#define ONLY_ACORE_NUM   1

◆ STACK_SIZE

#define STACK_SIZE   3

函数说明

◆ default_register_hal_exception_dump_callback()

void default_register_hal_exception_dump_callback ( void  )

Register exception dump to fault interrupt.

◆ log_exception_dump()

void log_exception_dump ( uint32_t  irq_id,
exc_context_t exc_buf_addr 
)

Invoked by exception to dump exception information.

参数
irq_idInterrupt ID.
exc_buf_addrException buff addr.

◆ log_exception_send_data()

void log_exception_send_data ( const uint8_t *  data,
uint16_t  length 
)

Dump the ram when hardfault or watchdog.

参数
addrDump ram start addr.
lengthDump ram length.

◆ log_oml_dump_stack()

void log_oml_dump_stack ( void  )

Dump the current task stack when in systemfaults and watchdog timeout.

◆ log_oml_exception_info_send()

void log_oml_exception_info_send ( uint32_t  irq_id,
const exc_context_t exc_buf_addr 
)

SDT interface to send SDT format fault message.

参数
irq_idInterrupt ID.
exc_buf_addrException buff addr.

◆ log_oml_memory_dump()

void log_oml_memory_dump ( void  )

Dump the whole rom when hardfault or watchdog.