You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2021/06/09 16:57:09 UTC
[mynewt-core] branch nrf5340_revA_errata26 created (now 956255f)
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a change to branch nrf5340_revA_errata26
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.
at 956255f nrf5340:Rev A errata 26 fix, needed only for appcore
This branch includes the following new commits:
new 956255f nrf5340:Rev A errata 26 fix, needed only for appcore
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[mynewt-core] 01/01: nrf5340:Rev A errata 26 fix,
needed only for appcore
Posted by vi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch nrf5340_revA_errata26
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 956255f54439dda85e9b4bcefec143632f5fa957
Author: vrahane <vi...@proxy.com>
AuthorDate: Tue Jun 8 21:56:35 2021 -0700
nrf5340:Rev A errata 26 fix, needed only for appcore
- As per Errata 26, CTRL-AP: APPROTECT.DISABLE and
SECUREAPPROTECT.DISABLE registers are not functional
- So we need to conditionally disable its usage
---
hw/mcu/nordic/nrf5340/pkg.yml | 7 +++++++
hw/mcu/nordic/nrf5340/syscfg.yml | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/hw/mcu/nordic/nrf5340/pkg.yml b/hw/mcu/nordic/nrf5340/pkg.yml
index 161e0bc..08d5c17 100644
--- a/hw/mcu/nordic/nrf5340/pkg.yml
+++ b/hw/mcu/nordic/nrf5340/pkg.yml
@@ -104,3 +104,10 @@ pkg.deps.I2C_3':
pkg.deps.NRF5340_EMBED_NET_CORE:
- "@apache-mynewt-core/hw/mcu/nordic/nrf5340/net_core_image"
+
+# As per Errata 26 for Engineering RevA silicon we should not
+# depend on CTRL-AP: APPROTECT.DISABLE and SECUREAPPROTECT.DISABLE
+# registers since they are not functional. It causes quite a lot of
+# crashes and hardfaults
+pkg.cflags.MCU_NRF5340_REVA_SILICON:
+ - "-DENABLE_APPROTECT_USER_HANDLING"
diff --git a/hw/mcu/nordic/nrf5340/syscfg.yml b/hw/mcu/nordic/nrf5340/syscfg.yml
index 94a14af..c647033 100644
--- a/hw/mcu/nordic/nrf5340/syscfg.yml
+++ b/hw/mcu/nordic/nrf5340/syscfg.yml
@@ -89,6 +89,13 @@ syscfg.defs:
Default value is 0, so disabled.
value: 0
+ MCU_NRF5340_REVA_SILICON:
+ description: >
+ This needs to be set by the BSP/App/Target if the
+ MCU is a Rev A Silicon. There is some special
+ handling we need to do for Rev As
+ value: 0
+
# MCU peripherals definitions
ADC_0:
description: 'Enable nRF5340 ADC 0'