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 2e9298739fdea8eeab6d545a7dcd9048183614e5
Author: Andrzej Kaczmarek <andrzej.kaczma...@codecoup.pl>
AuthorDate: Wed Oct 12 21:40:48 2022 +0200

    hw/ipc_nrf5340: Clear shared memory on init
---
 hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c 
b/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c
index 82aa14dd1..45a5b6d51 100644
--- a/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c
+++ b/hw/drivers/ipc_nrf5340/src/ipc_nrf5340.c
@@ -233,6 +233,8 @@ ipc_nrf5340_init(void)
     NRF_GPIO_Type *nrf_gpio;
 #endif
 
+    memset(ipc_shared, 0, sizeof(ipc_shared));
+
 #if MYNEWT_VAL(NRF5340_EMBED_NET_CORE)
     /*
      * Get network core image size and placement in application flash.

Reply via email to