1 /* 2 * Percepio DFM v2.0.0 3 * Copyright 2023 Percepio AB 4 * www.percepio.com 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 /** 10 * @file 11 * 12 * @brief DFM Codes 13 */ 14 15 /** 16 * @defgroup dfm_codes DFM Codes 17 * @ingroup dfm_apis 18 * @{ 19 */ 20 21 #ifndef DFM_CODES_H 22 #define DFM_CODES_H 23 /* Alert Types */ 24 /* The following Alert Types are published and will not change. */ 25 #define DFM_TYPE_STACK_CHK_FAILED (8) /* Stack corrupted */ 26 #define DFM_TYPE_HEARTBEAT (7) /* Heartbeat failure */ 27 #define DFM_TYPE_BAD_MESSAGE (6) /* Invalid/bad message received */ 28 #define DFM_TYPE_OVERLOAD (5) /* CPU Overload */ 29 #define DFM_TYPE_MANUAL_TRACE (4) /* User invoked alert */ 30 #define DFM_TYPE_HARDFAULT (3) /* Hard Fault */ 31 #define DFM_TYPE_MALLOC_FAILED (2) /* Malloc Failed */ 32 #define DFM_TYPE_ASSERT_FAILED (1) /* Assert Failed */ 33 34 35 /* Symptoms */ 36 /* The following Symptoms are published and will not change. */ 37 #define DFM_SYMPTOM_HARDFAULT_REASON (8) 38 #define DFM_SYMPTOM_ARM_SCB_FCSR (7) /* CFSR (misspelled) */ 39 #define DFM_SYMPTOM_STACKPTR (6) /* Stack Pointer */ 40 #define DFM_SYMPTOM_PC (5) /* PC */ 41 #define DFM_SYMPTOM_LINE (4) /* Line */ 42 #define DFM_SYMPTOM_FUNCTION (3) /* Function */ 43 #define DFM_SYMPTOM_FILE (2) /* File */ 44 #define DFM_SYMPTOM_CURRENT_TASK (1) /* Current Task */ 45 46 /** @} */ 47 48 #endif 49