This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 057f472  mcu/nrf5340_net: Add support for APPROTECT setup
057f472 is described below

commit 057f472e6288a01dfa8f7f01fb7e958c09d5a29b
Author: Szymon Janc <szymon.j...@codecoup.pl>
AuthorDate: Fri Mar 19 09:00:04 2021 +0100

    mcu/nrf5340_net: Add support for APPROTECT setup
    
    This is required for enabling debugging support.
---
 hw/mcu/nordic/nrf5340_net/src/system_nrf5340_net.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hw/mcu/nordic/nrf5340_net/src/system_nrf5340_net.c 
b/hw/mcu/nordic/nrf5340_net/src/system_nrf5340_net.c
index 99f64c1..86796a6 100644
--- a/hw/mcu/nordic/nrf5340_net/src/system_nrf5340_net.c
+++ b/hw/mcu/nordic/nrf5340_net/src/system_nrf5340_net.c
@@ -29,6 +29,7 @@ NOTICE: This file has been modified by Nordic Semiconductor 
ASA.
 #include <nrf_erratas.h>
 #include <system_nrf5340_network.h>
 #include <mcu/cmsis_nvic.h>
+#include <system_nrf53_approtect.h>
 
 /*lint ++flb "Enter library region" */
 
@@ -82,7 +83,10 @@ void SystemInit(void)
         if (NRF_RESET_NS->RESETREAS & RESET_RESETREAS_RESETPIN_Msk){
             NRF_RESET_NS->RESETREAS = ~RESET_RESETREAS_RESETPIN_Msk;
         }
-    }    
+    }
+
+    /* Handle fw-branch APPROTECT setup. */
+    nrf53_handle_approtect();
 
     SystemCoreClockUpdate();
 

Reply via email to