diff --git a/openthread b/openthread index aff159f4..9bbf936b 160000 --- a/openthread +++ b/openthread @@ -1 +1 @@ -Subproject commit aff159f40c1abc150bf58c3644b42b0d7d19d9e7 +Subproject commit 9bbf936be68c96c4a9fbf69e0a22bdd71eefa787 diff --git a/src/platform_projects/openthread-efr32-rcp-spi.slcp b/src/platform_projects/openthread-efr32-rcp-spi.slcp index e5071802..f6fc21ec 100644 --- a/src/platform_projects/openthread-efr32-rcp-spi.slcp +++ b/src/platform_projects/openthread-efr32-rcp-spi.slcp @@ -6,6 +6,7 @@ category: OpenThread Examples quality: production component: + - id: ot_crash_handler - id: ot_platform_abstraction_core - id: ot_mbedtls - id: ot_stack_features_config diff --git a/src/platform_projects/openthread-efr32-rcp-uart.slcp b/src/platform_projects/openthread-efr32-rcp-uart.slcp index 7b3a2833..0200b913 100644 --- a/src/platform_projects/openthread-efr32-rcp-uart.slcp +++ b/src/platform_projects/openthread-efr32-rcp-uart.slcp @@ -6,6 +6,7 @@ category: OpenThread Examples quality: production component: + - id: ot_crash_handler - id: ot_platform_abstraction_core - id: ot_mbedtls - id: ot_stack_features_config diff --git a/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager-csl.slcp b/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager-csl.slcp index e11cbf77..1d69e8f0 100644 --- a/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager-csl.slcp +++ b/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager-csl.slcp @@ -7,6 +7,7 @@ category: OpenThread Examples quality: production component: + - id: ot_crash_handler - id: ot_platform_abstraction_core - id: ot_psa_crypto - id: ot_mbedtls diff --git a/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager.slcp b/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager.slcp index 49fe6e0f..290ef9c5 100644 --- a/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager.slcp +++ b/src/platform_projects/openthread-efr32-soc-with-buttons-power-manager.slcp @@ -7,6 +7,7 @@ category: OpenThread Examples quality: production component: + - id: ot_crash_handler - id: ot_platform_abstraction_core - id: ot_psa_crypto - id: ot_mbedtls diff --git a/src/platform_projects/openthread-efr32-soc-with-buttons.slcp b/src/platform_projects/openthread-efr32-soc-with-buttons.slcp index 931829e9..201ebff4 100644 --- a/src/platform_projects/openthread-efr32-soc-with-buttons.slcp +++ b/src/platform_projects/openthread-efr32-soc-with-buttons.slcp @@ -7,6 +7,7 @@ category: OpenThread Examples quality: production component: + - id: ot_crash_handler - id: ot_platform_abstraction_core - id: ot_psa_crypto - id: ot_mbedtls diff --git a/src/platform_projects/openthread-efr32-soc.slcp b/src/platform_projects/openthread-efr32-soc.slcp index 3d995ea3..da1c537e 100644 --- a/src/platform_projects/openthread-efr32-soc.slcp +++ b/src/platform_projects/openthread-efr32-soc.slcp @@ -6,6 +6,7 @@ category: OpenThread Examples quality: production component: + - id: ot_crash_handler - id: ot_platform_abstraction_core - id: ot_psa_crypto - id: ot_mbedtls diff --git a/src/src/misc.c b/src/src/misc.c index 3e9185c0..fa3ebb29 100644 --- a/src/src/misc.c +++ b/src/src/misc.c @@ -212,3 +212,9 @@ otError railStatusToOtError(RAIL_Status_t status) return OT_ERROR_FAILED; } } + +otError otPlatLogCrashDump(void) +{ + efr32PrintResetInfo(); + return OT_ERROR_NONE; +} diff --git a/src/src/openthread-core-efr32-config.h b/src/src/openthread-core-efr32-config.h index e0280101..ac3fd168 100644 --- a/src/src/openthread-core-efr32-config.h +++ b/src/src/openthread-core-efr32-config.h @@ -35,6 +35,10 @@ #ifndef OPENTHREAD_CORE_EFR32_CONFIG_H_ #define OPENTHREAD_CORE_EFR32_CONFIG_H_ +#ifdef SL_COMPONENT_CATALOG_PRESENT +#include "sl_component_catalog.h" +#endif // SL_COMPONENT_CATALOG_PRESENT + #include "sl_device_init_hfxo.h" #include "sl_device_init_hfxo_config.h" @@ -556,4 +560,18 @@ #define SL_OPENTHREAD_ECDSA_PRIVATE_KEY_SIZE 32 #endif +/** + * @def OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE + * + * Enable logging a crash dump on RCPs + * + */ +#ifndef OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE +#if defined(SL_CATALOG_OT_CRASH_HANDLER_PRESENT) +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 1 +#else +#define OPENTHREAD_CONFIG_PLATFORM_LOG_CRASH_DUMP_ENABLE 0 +#endif +#endif + #endif // OPENTHREAD_CORE_EFR32_CONFIG_H_