Home
last modified time | relevance | path

Searched full:reason (Results 1 – 25 of 702) sorted by relevance

12345678910>>...29

/Zephyr-latest/drivers/hwinfo/
Dhwinfo_nrf.c71 uint32_t reason = nrfx_reset_reason_get(); in z_impl_hwinfo_get_reset_cause() local
73 if (reason & NRFX_RESET_REASON_RESETPIN_MASK) { in z_impl_hwinfo_get_reset_cause()
76 if (reason & NRFX_RESET_REASON_DOG_MASK) { in z_impl_hwinfo_get_reset_cause()
79 if (reason & NRFX_RESET_REASON_LOCKUP_MASK) { in z_impl_hwinfo_get_reset_cause()
82 if (reason & NRFX_RESET_REASON_OFF_MASK) { in z_impl_hwinfo_get_reset_cause()
85 if (reason & NRFX_RESET_REASON_DIF_MASK) { in z_impl_hwinfo_get_reset_cause()
88 if (reason & NRFX_RESET_REASON_SREQ_MASK) { in z_impl_hwinfo_get_reset_cause()
93 if (reason & NRFX_RESET_REASON_CTRLAP_MASK) { in z_impl_hwinfo_get_reset_cause()
98 if (reason & NRFX_RESET_REASON_LPCOMP_MASK) { in z_impl_hwinfo_get_reset_cause()
103 if (reason & NRFX_RESET_REASON_NFC_MASK) { in z_impl_hwinfo_get_reset_cause()
[all …]
Dhwinfo_mcux_src.c22 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 …]
Dhwinfo_mcux_src_rev2.c47 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 …]
Dhwinfo_smartbond.c14 uint32_t reason = CRG_TOP->RESET_STAT_REG; in z_impl_hwinfo_get_reset_cause() local
20 if (reason & CRG_TOP_RESET_STAT_REG_PORESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
23 if (reason & CRG_TOP_RESET_STAT_REG_HWRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
26 if (reason & CRG_TOP_RESET_STAT_REG_SWRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
29 if (reason & CRG_TOP_RESET_STAT_REG_WDOGRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
32 if (reason & CRG_TOP_RESET_STAT_REG_CMAC_WDOGRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
35 if (reason & CRG_TOP_RESET_STAT_REG_SWD_HWRESET_STAT_Msk) { in z_impl_hwinfo_get_reset_cause()
Dhwinfo_andes.c62 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-latest/kernel/
Dfatal.c21 FUNC_NORETURN __weak void arch_system_halt(unsigned int reason) in arch_system_halt() argument
23 ARG_UNUSED(reason); in arch_system_halt()
37 __weak void k_sys_fatal_error_handler(unsigned int reason, in k_sys_fatal_error_handler() argument
44 arch_system_halt(reason); in k_sys_fatal_error_handler()
60 static const char *reason_to_str(unsigned int reason) in reason_to_str() argument
62 switch (reason) { in reason_to_str()
79 FUNC_NORETURN void k_fatal_halt(unsigned int reason) in k_fatal_halt() argument
81 arch_system_halt(reason); in k_fatal_halt()
85 void z_fatal_error(unsigned int reason, const struct arch_esf *esf) in z_fatal_error() argument
98 LOG_ERR(">>> ZEPHYR FATAL ERROR %d: %s on CPU %d", reason, in z_fatal_error()
[all …]
/Zephyr-latest/tests/arch/arm/arm_hardfault_validation/src/
Darm_hardfault.c16 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *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-latest/tests/kernel/fatal/no-multithreading/src/
Dmain.c16 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *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-latest/include/zephyr/
Dfatal.h35 * @param reason Fatal exception reason code
37 FUNC_NORETURN void k_fatal_halt(unsigned int reason);
64 * @param reason The reason for the fatal error
68 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *esf);
80 * @param reason The reason for the fatal error
84 void z_fatal_error(unsigned int reason, const struct arch_esf *esf);
/Zephyr-latest/arch/xtensa/core/
Dfatal.c87 void xtensa_fatal_error(unsigned int reason, const struct arch_esf *esf) in xtensa_fatal_error() argument
109 z_fatal_error(reason, esf); in xtensa_fatal_error()
126 FUNC_NORETURN void arch_system_halt(unsigned int reason) in arch_system_halt() argument
128 xtensa_simulator_exit(255 - reason); in arch_system_halt()
141 void z_impl_xtensa_user_fault(unsigned int reason) in z_impl_xtensa_user_fault() argument
144 if ((reason != K_ERR_KERNEL_OOPS) && in z_impl_xtensa_user_fault()
145 (reason != K_ERR_STACK_CHK_FAIL)) { in z_impl_xtensa_user_fault()
146 reason = K_ERR_KERNEL_OOPS; in z_impl_xtensa_user_fault()
149 xtensa_arch_except(reason); in z_impl_xtensa_user_fault()
152 static void z_vrfy_xtensa_user_fault(unsigned int reason) in z_vrfy_xtensa_user_fault() argument
[all …]
/Zephyr-latest/arch/arm/core/cortex_a_r/
Dfault.c59 uint32_t reason = K_ERR_CPU_EXCEPTION; in dump_fault() local
67 reason = K_ERR_ARM_ALIGNMENT_FAULT; in dump_fault()
71 reason = K_ERR_ARM_PERMISSION_FAULT; in dump_fault()
75 reason = K_ERR_ARM_SYNC_EXTERNAL_ABORT; in dump_fault()
79 reason = K_ERR_ARM_ASYNC_EXTERNAL_ABORT; in dump_fault()
83 reason = K_ERR_ARM_SYNC_PARITY_ERROR; in dump_fault()
87 reason = K_ERR_ARM_ASYNC_PARITY_ERROR; in dump_fault()
91 reason = K_ERR_ARM_DEBUG_EVENT; in dump_fault()
96 reason = K_ERR_ARM_TRANSLATION_FAULT; in dump_fault()
100 reason = K_ERR_ARM_UNSUPPORTED_EXCLUSIVE_ACCESS_FAULT; in dump_fault()
[all …]
/Zephyr-latest/scripts/coredump/coredump_parser/
Dlog_parser.py34 def reason_string(reason): argument
38 if reason == 0:
40 elif reason == 1:
42 elif reason == 2:
44 elif reason == 3:
46 elif reason == 4:
139 id1, id2, hdr_ver, tgt_code, ptr_size, flags, reason = struct.unpack(LOG_HDR_STRUCT, hdr)
157 "reason": reason,
160 logger.info("Reason: {0}".format(reason_string(reason)))
163 del id1, id2, hdr_ver, tgt_code, ptr_size, flags, reason
/Zephyr-latest/tests/kernel/mem_protect/mem_protect/src/
Dcommon.c11 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *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-latest/tests/kernel/fatal/message_capture/src/
Dmain.c15 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
17 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
22 k_fatal_halt(reason); in k_sys_fatal_error_handler()
25 if (reason != expected_reason) { in k_sys_fatal_error_handler()
26 printk("Wrong crash type got %d expected %d\n", reason, in k_sys_fatal_error_handler()
29 k_fatal_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/arch/arm/core/cortex_m/
Dfault.c88 * error reason.
181 * @return error code to identify the fatal error reason
186 uint32_t reason = K_ERR_ARM_MEM_GENERIC; in mem_manage_fault() local
192 reason = K_ERR_ARM_MEM_STACKING; in mem_manage_fault()
197 reason = K_ERR_ARM_MEM_UNSTACKING; in mem_manage_fault()
201 reason = K_ERR_ARM_MEM_DATA_ACCESS; in mem_manage_fault()
223 reason = K_ERR_ARM_MEM_INSTRUCTION_ACCESS; in mem_manage_fault()
228 reason = K_ERR_ARM_MEM_FP_LAZY_STATE_PRESERVATION; in mem_manage_fault()
299 reason = K_ERR_STACK_CHK_FAIL; in mem_manage_fault()
316 * pending flag in addition to the clearing the reason for the fault in mem_manage_fault()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dgmap.rst70 stream 0x20020060 config operation rsp_code 0 reason 0
71 stream 0x200204d0 config operation rsp_code 0 reason 0
72 stream 0x200204d0 qos operation rsp_code 0 reason 0
73 stream 0x20020060 qos operation rsp_code 0 reason 0
75 stream 0x200204d0 enable operation rsp_code 0 reason 0
77 stream 0x20020060 enable operation rsp_code 0 reason 0
79 stream 0x200204d0 start operation rsp_code 0 reason 0
/Zephyr-latest/samples/boards/espressif/light_sleep/
DREADME.rst46 indicated the wakeup reason after each sleep iteration.
53 Returned from light sleep, reason: timer, t=3344 ms, slept for 2001 ms
55 Returned from light sleep, reason: timer, t=5354 ms, slept for 2000 ms
57 Returned from light sleep, reason: pin, t=5885 ms, slept for 521 ms
60 Returned from light sleep, reason: timer, t=8765 ms, slept for 2000 ms
62 Returned from light sleep, reason: timer, t=10776 ms, slept for 2001 ms
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_error_hook.c44 __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 struct arch_esf *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-latest/tests/arch/riscv/pmp/no-multithreading/src/
Dmain.c12 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf) in k_sys_fatal_error_handler() argument
16 TC_PRINT("Caught system error -- reason %d %d\n", reason, valid_fault); in k_sys_fatal_error_handler()
23 arch_system_halt(reason); in k_sys_fatal_error_handler()
/Zephyr-latest/arch/riscv/core/
Dfatal.c80 FUNC_NORETURN void z_riscv_fatal_error(unsigned int reason, in z_riscv_fatal_error() argument
83 z_riscv_fatal_error_csf(reason, esf, NULL); in z_riscv_fatal_error()
86 FUNC_NORETURN void z_riscv_fatal_error_csf(unsigned int reason, const struct arch_esf *esf, in z_riscv_fatal_error_csf() argument
147 z_fatal_error(reason, esf); in z_riscv_fatal_error_csf()
224 unsigned int reason = K_ERR_CPU_EXCEPTION; in _Fault() local
234 reason = K_ERR_STACK_CHK_FAIL; in _Fault()
237 z_riscv_fatal_error(reason, esf); in _Fault()
247 void z_impl_user_fault(unsigned int reason) in z_impl_user_fault() argument
252 reason != K_ERR_STACK_CHK_FAIL) { in z_impl_user_fault()
253 reason = K_ERR_KERNEL_OOPS; in z_impl_user_fault()
[all …]
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/
Darm_interrupt.c91 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *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()
234 * and the expected reason variable is reset. in arm_isr_handler()
236 int reason = expected_reason; in arm_isr_handler() local
238 zassert_equal(reason, -1, in arm_isr_handler()
239 "expected_reason has not been reset (%d)\n", reason); in arm_isr_handler()
[all …]
/Zephyr-latest/tests/arch/arm/arm_no_multithreading/src/
Dmain.c39 void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *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-latest/samples/bluetooth/extended_adv/
DREADME.rst57 Disconnected (reason 0x16)
64 Disconnected (reason 0x16)
79 Disconnected (reason 0x13)
87 Disconnected (reason 0x13)
95 Disconnected (reason 0x13)
/Zephyr-latest/include/zephyr/bluetooth/services/
Dcts.h25 * @brief CTS time update reason bits as defined in the specification
28 /* Unknown reason of update no bit is set */
53 uint8_t reason; member
106 * @param reason update reason to be sent to the clients
111 int bt_cts_send_notification(enum bt_cts_update_reason reason);
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dtestinstance.py58 self.reason = "Unknown"
125 def add_filter(self, reason, filter_type): argument
126 self.filters.append({'type': filter_type, 'reason': reason })
128 self.reason = reason
155 def add_missing_case_status(self, status, reason=None): argument
161 if reason:
162 case.reason = reason
164 case.reason = self.reason
179 def set_case_status_by_name(self, name, status, reason=None): argument
182 if reason:
[all …]

12345678910>>...29