We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c36fcaf commit 6d15e43Copy full SHA for 6d15e43
src/include/platform/internal/GenericPlatformManagerImpl_Zephyr.ipp
@@ -42,6 +42,10 @@
42
#include <psa/crypto.h>
43
#endif
44
45
+#if CONFIG_SOC_NRF5340_CPUAPP
46
+ #include <hal/nrf_reset.h>
47
+#endif
48
+
49
#define DEFAULT_MIN_SLEEP_PERIOD (60 * 60 * 24 * 30) // Month [sec]
50
51
namespace chip {
@@ -124,6 +128,10 @@ template <class ImplClass>
124
128
void GenericPlatformManagerImpl_Zephyr<ImplClass>::_Shutdown(void)
125
129
{
126
130
#ifdef CONFIG_REBOOT
131
+ // Reset the network core first to avoid a hard fault because of the communication broken between cores.
132
+ #if CONFIG_SOC_NRF5340_CPUAPP
133
+ nrf_reset_network_force_off(NRF_RESET, false);
134
+ #endif
127
135
sys_reboot(SYS_REBOOT_WARM);
136
#else
137
// NB: When this is implemented, |mInitialized| can be removed.
0 commit comments