You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2023/06/22 08:38:46 UTC
[mynewt-core] 03/03: hw/drivers/ipc_cmac: Capture more registers in coredump
This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit d6b211cf5149a25439a873ac3f7e0d064f2ebe04
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Mon Jun 19 23:35:57 2023 +0200
hw/drivers/ipc_cmac: Capture more registers in coredump
Add interrupt status and comparators values to coredump struct.
---
hw/drivers/ipc_cmac/include/ipc_cmac/shm.h | 5 +++++
hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/hw/drivers/ipc_cmac/include/ipc_cmac/shm.h b/hw/drivers/ipc_cmac/include/ipc_cmac/shm.h
index c28f32798..376095366 100644
--- a/hw/drivers/ipc_cmac/include/ipc_cmac/shm.h
+++ b/hw/drivers/ipc_cmac/include/ipc_cmac/shm.h
@@ -104,6 +104,11 @@ struct cmac_shm_crashinfo {
uint32_t CM_LL_TIMER1_9_0_REG;
uint32_t CM_ERROR_REG;
uint32_t CM_EXC_STAT_REG;
+ uint32_t CM_LL_INT_STAT_REG;
+ uint32_t CM_LL_TIMER1_EQ_X_HI_REG;
+ uint32_t CM_LL_TIMER1_EQ_X_LO_REG;
+ uint32_t CM_LL_TIMER1_EQ_Y_HI_REG;
+ uint32_t CM_LL_TIMER1_EQ_Y_LO_REG;
};
struct cmac_shm_debugdata {
diff --git a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c
index 1c1be9212..c55f7a97a 100644
--- a/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c
+++ b/hw/mcu/dialog/cmac/src/arch/cortex_m0_cmac/os_fault.c
@@ -203,6 +203,11 @@ os_default_irq(struct trap_frame *tf)
ci->CM_LL_TIMER1_9_0_REG = CMAC->CM_LL_TIMER1_9_0_REG;
ci->CM_ERROR_REG = CMAC->CM_ERROR_REG;
ci->CM_EXC_STAT_REG = CMAC->CM_EXC_STAT_REG;
+ ci->CM_LL_INT_STAT_REG = CMAC->CM_LL_INT_STAT_REG;
+ ci->CM_LL_TIMER1_EQ_X_HI_REG = CMAC->CM_LL_TIMER1_EQ_X_HI_REG;
+ ci->CM_LL_TIMER1_EQ_X_LO_REG = CMAC->CM_LL_TIMER1_EQ_X_LO_REG;
+ ci->CM_LL_TIMER1_EQ_Y_HI_REG = CMAC->CM_LL_TIMER1_EQ_Y_HI_REG;
+ ci->CM_LL_TIMER1_EQ_Y_LO_REG = CMAC->CM_LL_TIMER1_EQ_Y_LO_REG;
#endif
#if MYNEWT_VAL(MCU_DEBUG_HCI_EVENT_ON_FAULT)