/Zephyr-Core-3.5.0/drivers/hwinfo/ |
D | hwinfo_nrf.c | 44 uint32_t reason = nrfx_reset_reason_get(); in z_impl_hwinfo_get_reset_cause() local 46 if (reason & NRFX_RESET_REASON_RESETPIN_MASK) { in z_impl_hwinfo_get_reset_cause() 49 if (reason & NRFX_RESET_REASON_DOG_MASK) { in z_impl_hwinfo_get_reset_cause() 52 if (reason & NRFX_RESET_REASON_LOCKUP_MASK) { in z_impl_hwinfo_get_reset_cause() 55 if (reason & NRFX_RESET_REASON_OFF_MASK) { in z_impl_hwinfo_get_reset_cause() 58 if (reason & NRFX_RESET_REASON_DIF_MASK) { in z_impl_hwinfo_get_reset_cause() 63 if (reason & NRFX_RESET_REASON_CTRLAP_MASK) { in z_impl_hwinfo_get_reset_cause() 66 if (reason & NRFX_RESET_REASON_DOG0_MASK) { in z_impl_hwinfo_get_reset_cause() 69 if (reason & NRFX_RESET_REASON_DOG1_MASK) { in z_impl_hwinfo_get_reset_cause() 72 if (reason & NRFX_RESETREAS_SREQ_MASK) { in z_impl_hwinfo_get_reset_cause() [all …]
|
D | hwinfo_mcux_src.c | 22 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_get_reset_cause() local 26 if (reason & kSRC_IppResetPinFlag) { in z_impl_hwinfo_get_reset_cause() 31 if (reason & kSRC_PowerOnResetFlag) { in z_impl_hwinfo_get_reset_cause() 36 if (reason & kSRC_CoreLockupResetFlag) { in z_impl_hwinfo_get_reset_cause() 42 if (reason & kSRC_LockupSysResetFlag) { in z_impl_hwinfo_get_reset_cause() 47 if (reason & kSRC_CsuResetFlag) { in z_impl_hwinfo_get_reset_cause() 52 if (reason & kSRC_SNVSFailResetFlag) { in z_impl_hwinfo_get_reset_cause() 58 if (reason & kSRC_IppUserResetFlag) { in z_impl_hwinfo_get_reset_cause() 62 if (reason & kSRC_WatchdogResetFlag) { in z_impl_hwinfo_get_reset_cause() 65 if (reason & kSRC_JTAGGeneratedResetFlag) { in z_impl_hwinfo_get_reset_cause() [all …]
|
D | hwinfo_mcux_src_rev2.c | 47 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_get_reset_cause() local 49 if (reason & (MCUX_RESET_PIN_FLAG)) { in z_impl_hwinfo_get_reset_cause() 52 if (reason & (MCUX_RESET_SOFTWARE_FLAG)) { in z_impl_hwinfo_get_reset_cause() 55 if (reason & (MCUX_RESET_POR_FLAG)) { in z_impl_hwinfo_get_reset_cause() 58 if (reason & (MCUX_RESET_WATCHDOG_FLAG)) { in z_impl_hwinfo_get_reset_cause() 61 if (reason & (MCUX_RESET_DEBUG_FLAG)) { in z_impl_hwinfo_get_reset_cause() 64 if (reason & (MCUX_RESET_SECURITY_FLAG)) { in z_impl_hwinfo_get_reset_cause() 67 if (reason & (MCUX_RESET_TEMPERATURE_FLAG)) { in z_impl_hwinfo_get_reset_cause() 70 if (reason & (MCUX_RESET_USER_FLAG)) { in z_impl_hwinfo_get_reset_cause() 81 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_clear_reset_cause() local [all …]
|
D | hwinfo_andes.c | 62 uint32_t reason, flags = 0; in z_impl_hwinfo_get_reset_cause() local 68 ret = syscon_read_reg(syscon_dev, SMU_WRSR, &reason); in z_impl_hwinfo_get_reset_cause() 73 if (reason & SMU_WRSR_APOR) { in z_impl_hwinfo_get_reset_cause() 76 if (reason & SMU_WRSR_MPOR) { in z_impl_hwinfo_get_reset_cause() 79 if (reason & SMU_WRSR_HW) { in z_impl_hwinfo_get_reset_cause() 82 if (reason & SMU_WRSR_WDT) { in z_impl_hwinfo_get_reset_cause() 85 if (reason & SMU_WRSR_SW) { in z_impl_hwinfo_get_reset_cause() 97 uint32_t reason; in z_impl_hwinfo_clear_reset_cause() local 109 ret = syscon_read_reg(syscon_dev, SMU_WRSR, &reason); in z_impl_hwinfo_clear_reset_cause() 110 } while ((reason & ANDES_RESET_STATUS_MASK) && (!ret)); in z_impl_hwinfo_clear_reset_cause()
|
/Zephyr-Core-3.5.0/kernel/ |
D | fatal.c | 23 FUNC_NORETURN __weak void arch_system_halt(unsigned int reason) in arch_system_halt() argument 25 ARG_UNUSED(reason); in arch_system_halt() 39 __weak void k_sys_fatal_error_handler(unsigned int reason, in k_sys_fatal_error_handler() argument 46 arch_system_halt(reason); in k_sys_fatal_error_handler() 62 static const char *reason_to_str(unsigned int reason) in reason_to_str() argument 64 switch (reason) { in reason_to_str() 81 FUNC_NORETURN void k_fatal_halt(unsigned int reason) in k_fatal_halt() argument 83 arch_system_halt(reason); in k_fatal_halt() 87 void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf) in z_fatal_error() argument 100 LOG_ERR(">>> ZEPHYR FATAL ERROR %d: %s on CPU %d", reason, in z_fatal_error() [all …]
|
/Zephyr-Core-3.5.0/tests/arch/arm/arm_hardfault_validation/src/ |
D | arm_hardfault.c | 16 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 20 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler() 24 k_fatal_halt(reason); in k_sys_fatal_error_handler() 27 if (reason != expected_reason) { in k_sys_fatal_error_handler() 28 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler() 30 k_fatal_halt(reason); in k_sys_fatal_error_handler()
|
/Zephyr-Core-3.5.0/scripts/coredump/coredump_parser/ |
D | log_parser.py | 30 def reason_string(reason): argument 34 if reason == 0: 36 elif reason == 1: 38 elif reason == 2: 40 elif reason == 3: 42 elif reason == 4: 121 id1, id2, hdr_ver, tgt_code, ptr_size, flags, reason = struct.unpack(LOG_HDR_STRUCT, hdr) 139 "reason": reason, 142 logger.info("Reason: {0}".format(reason_string(reason))) 145 del id1, id2, hdr_ver, tgt_code, ptr_size, flags, reason
|
/Zephyr-Core-3.5.0/include/zephyr/ |
D | fatal.h | 34 * @param reason Fatal exception reason code 36 FUNC_NORETURN void k_fatal_halt(unsigned int reason); 63 * @param reason The reason for the fatal error 67 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf); 79 * @param reason The reason for the fatal error 83 void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
|
/Zephyr-Core-3.5.0/tests/kernel/fatal/no-multithreading/src/ |
D | main.c | 16 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 20 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler() 21 if (reason != expected_reason) { in k_sys_fatal_error_handler() 22 TC_PRINT("Unexpected reason (exp: %d)\n", expected_reason); in k_sys_fatal_error_handler() 27 arch_system_halt(reason); in k_sys_fatal_error_handler() 88 TC_PRINT("arbitrary reason\n"); in entry_arbitrary_reason() 100 TC_PRINT("arbitrary reason (negative)\n"); in entry_arbitrary_reason_negative() 122 * that the kernel is handling that properly or not. Also the crash reason
|
/Zephyr-Core-3.5.0/arch/arm/core/cortex_a_r/ |
D | fault.c | 54 uint32_t reason = K_ERR_CPU_EXCEPTION; in dump_fault() local 62 reason = K_ERR_ARM_ALIGNMENT_FAULT; in dump_fault() 66 reason = K_ERR_ARM_PERMISSION_FAULT; in dump_fault() 70 reason = K_ERR_ARM_SYNC_EXTERNAL_ABORT; in dump_fault() 74 reason = K_ERR_ARM_ASYNC_EXTERNAL_ABORT; in dump_fault() 78 reason = K_ERR_ARM_SYNC_PARITY_ERROR; in dump_fault() 82 reason = K_ERR_ARM_ASYNC_PARITY_ERROR; in dump_fault() 86 reason = K_ERR_ARM_DEBUG_EVENT; in dump_fault() 91 reason = K_ERR_ARM_TRANSLATION_FAULT; in dump_fault() 95 reason = K_ERR_ARM_UNSUPPORTED_EXCLUSIVE_ACCESS_FAULT; in dump_fault() [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/mem_protect/mem_protect/src/ |
D | common.c | 11 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 13 printk("Caught system error -- reason %d %d\n", reason, valid_fault); in k_sys_fatal_error_handler() 20 k_fatal_halt(reason); in k_sys_fatal_error_handler()
|
/Zephyr-Core-3.5.0/tests/kernel/fatal/message_capture/src/ |
D | main.c | 14 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 16 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler() 21 k_fatal_halt(reason); in k_sys_fatal_error_handler() 24 if (reason != expected_reason) { in k_sys_fatal_error_handler() 25 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler() 28 k_fatal_halt(reason); in k_sys_fatal_error_handler()
|
/Zephyr-Core-3.5.0/arch/arm/core/cortex_m/ |
D | fault.c | 136 * error reason. 229 * @return error code to identify the fatal error reason 234 uint32_t reason = K_ERR_ARM_MEM_GENERIC; in mem_manage_fault() local 240 reason = K_ERR_ARM_MEM_STACKING; in mem_manage_fault() 245 reason = K_ERR_ARM_MEM_UNSTACKING; in mem_manage_fault() 249 reason = K_ERR_ARM_MEM_DATA_ACCESS; in mem_manage_fault() 271 reason = K_ERR_ARM_MEM_INSTRUCTION_ACCESS; in mem_manage_fault() 276 reason = K_ERR_ARM_MEM_FP_LAZY_STATE_PRESERVATION; in mem_manage_fault() 347 reason = K_ERR_STACK_CHK_FAIL; in mem_manage_fault() 364 * pending flag in addition to the clearing the reason for the fault in mem_manage_fault() [all …]
|
/Zephyr-Core-3.5.0/arch/riscv/core/ |
D | fatal.c | 31 FUNC_NORETURN void z_riscv_fatal_error(unsigned int reason, in z_riscv_fatal_error() argument 58 z_fatal_error(reason, esf); in z_riscv_fatal_error() 177 unsigned int reason = K_ERR_CPU_EXCEPTION; in _Fault() local 180 reason = K_ERR_STACK_CHK_FAIL; in _Fault() 183 z_riscv_fatal_error(reason, esf); in _Fault() 193 void z_impl_user_fault(unsigned int reason) in z_impl_user_fault() argument 198 reason != K_ERR_STACK_CHK_FAIL) { in z_impl_user_fault() 199 reason = K_ERR_KERNEL_OOPS; in z_impl_user_fault() 201 z_riscv_fatal_error(reason, oops_esf); in z_impl_user_fault() 204 static void z_vrfy_user_fault(unsigned int reason) in z_vrfy_user_fault() argument [all …]
|
/Zephyr-Core-3.5.0/samples/boards/esp32/light_sleep/ |
D | README.rst | 45 indicated the wakeup reason after each sleep iteration. 52 Returned from light sleep, reason: timer, t=3344 ms, slept for 2001 ms 54 Returned from light sleep, reason: timer, t=5354 ms, slept for 2000 ms 56 Returned from light sleep, reason: pin, t=5885 ms, slept for 521 ms 59 Returned from light sleep, reason: timer, t=8765 ms, slept for 2000 ms 61 Returned from light sleep, reason: timer, t=10776 ms, slept for 2001 ms
|
/Zephyr-Core-3.5.0/scripts/pylib/twister/twisterlib/ |
D | testinstance.py | 48 self.reason = "Unknown" 73 def add_filter(self, reason, filter_type): argument 74 self.filters.append({'type': filter_type, 'reason': reason }) 76 self.reason = reason 93 def add_missing_case_status(self, status, reason=None): argument 99 if reason: 100 case.reason = reason 102 case.reason = self.reason 114 def set_case_status_by_name(self, name, status, reason=None): argument 117 if reason: [all …]
|
D | reports.py | 42 …def xunit_testcase(eleTestsuite, name, classname, status, ts_status, reason, duration, runnable, s… argument 61 ET.SubElement(eleTestcase, 'skipped', type=f"{tc_type}", message=f"{reason}") 64 el = ET.SubElement(eleTestcase, 'failure', type="failure", message=f"{reason}") 69 el = ET.SubElement(eleTestcase, 'error', type="failure", message=f"{reason}") 129 reason = tc.get('reason', suite.get('reason', 'Unknown')) 136 name, classname, status, ts_status, reason, tc_duration, runnable, 205 reason = tc.get('reason', ts.get('reason', 'Unknown')) 212 name, classname, status, ts_status, reason, tc_duration, runnable, 215 reason = ts.get('reason', 'Unknown') 220 name, classname, ts_status, ts_status, reason, duration, runnable, [all …]
|
/Zephyr-Core-3.5.0/subsys/testsuite/ztest/src/ |
D | ztest_error_hook.c | 44 __weak void ztest_post_fatal_error_hook(unsigned int reason, in ztest_post_fatal_error_hook() argument 49 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 54 printk("Caught system error -- reason %d %d\n", reason, valid_fault); in k_sys_fatal_error_handler() 63 ztest_post_fatal_error_hook(reason, pEsf); in k_sys_fatal_error_handler() 66 k_fatal_halt(reason); in k_sys_fatal_error_handler()
|
/Zephyr-Core-3.5.0/tests/arch/arm/arm_interrupt/src/ |
D | arm_interrupt.c | 91 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 93 TC_PRINT("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler() 97 k_fatal_halt(reason); in k_sys_fatal_error_handler() 100 if (reason != expected_reason) { in k_sys_fatal_error_handler() 101 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler() 103 k_fatal_halt(reason); in k_sys_fatal_error_handler() 230 * and the expected reason variable is reset. in arm_isr_handler() 232 int reason = expected_reason; in arm_isr_handler() local 234 zassert_equal(reason, -1, in arm_isr_handler() 235 "expected_reason has not been reset (%d)\n", reason); in arm_isr_handler() [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/ |
D | bap_unicast_client_test.c | 90 static void stream_stopped(struct bt_bap_stream *stream, uint8_t reason) in stream_stopped() argument 92 printk("Stopped stream %p with reason 0x%02X\n", stream, reason); in stream_stopped() 129 enum bt_bap_ascs_reason reason) in config_cb() argument 131 printk("stream %p config operation rsp_code %u reason %u\n", stream, rsp_code, reason); in config_cb() 139 enum bt_bap_ascs_reason reason) in qos_cb() argument 141 printk("stream %p qos operation rsp_code %u reason %u\n", stream, rsp_code, reason); in qos_cb() 149 enum bt_bap_ascs_reason reason) in enable_cb() argument 151 printk("stream %p enable operation rsp_code %u reason %u\n", stream, rsp_code, reason); in enable_cb() 159 enum bt_bap_ascs_reason reason) in start_cb() argument 161 printk("stream %p start operation rsp_code %u reason %u\n", stream, rsp_code, reason); in start_cb() [all …]
|
/Zephyr-Core-3.5.0/tests/arch/arm/arm_no_multithreading/src/ |
D | main.c | 39 void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf) in k_sys_fatal_error_handler() argument 41 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler() 45 k_fatal_halt(reason); in k_sys_fatal_error_handler() 48 if (reason != expected_reason) { in k_sys_fatal_error_handler() 49 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler() 51 k_fatal_halt(reason); in k_sys_fatal_error_handler()
|
/Zephyr-Core-3.5.0/samples/bluetooth/hci_pwr_ctrl/src/ |
D | main.c | 64 uint8_t reason = rsp ? in read_conn_rssi() local 66 printk("Read RSSI err: %d reason 0x%02x\n", err, reason); in read_conn_rssi() 99 uint8_t reason = rsp ? in set_tx_power() local 102 printk("Set Tx power err: %d reason 0x%02x\n", err, reason); in set_tx_power() 134 uint8_t reason = rsp ? in get_tx_power() local 137 printk("Read Tx power err: %d reason 0x%02x\n", err, reason); in get_tx_power() 183 static void disconnected(struct bt_conn *conn, uint8_t reason) in disconnected() argument 185 printk("Disconnected (reason 0x%02x)\n", reason); in disconnected()
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_central/src/ |
D | ccp_server.c | 29 static void tbs_terminate_call_cb(struct bt_conn *conn, uint8_t call_index, uint8_t reason) in tbs_terminate_call_cb() argument 31 printk("CCP: Call terminated for id %u with reason %u\n", in tbs_terminate_call_cb() 32 call_index, reason); in tbs_terminate_call_cb()
|
/Zephyr-Core-3.5.0/arch/xtensa/core/ |
D | fatal.c | 98 void z_xtensa_fatal_error(unsigned int reason, const z_arch_esf_t *esf) in z_xtensa_fatal_error() argument 109 coredump(reason, esf, IS_ENABLED(CONFIG_MULTITHREADING) ? k_current_get() : NULL); in z_xtensa_fatal_error() 120 z_fatal_error(reason, esf); in z_xtensa_fatal_error() 137 FUNC_NORETURN void z_system_halt(unsigned int reason) in z_system_halt() argument 139 exit(255 - reason); in z_system_halt()
|
/Zephyr-Core-3.5.0/arch/arc/core/ |
D | fatal.c | 43 void z_arc_fatal_error(unsigned int reason, const z_arch_esf_t *esf) in z_arc_fatal_error() argument 51 z_fatal_error(reason, esf); in z_arc_fatal_error() 63 FUNC_NORETURN void arch_system_halt(unsigned int reason) in arch_system_halt() argument 65 ARG_UNUSED(reason); in arch_system_halt()
|