Skip to contentSkip to conversation

Add nRF52840 DK support

PATCH Superseded Wojciech Zmuda 2 participants 4 messages May 18, 2021 – May 19, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add nRF52840 DK support

From: Wojciech Zmuda <[email protected]>

This patch set adds support for Nordic Semiconductor nRF5284 Development Kit board. Since there already is nRF52xx family chip support added (specifically nRF52832 used in 96Boards Nitrogen), make this support a bit more generic to cover the whole family, then add a platform-specific configs for both nRF-based boards on top of it.

The change has been tested with the actual nRF52840 DK board by building and flashing with -c flash_usb some sample applications.

Wojciech Zmuda (2):
nrf52832.inc: Rename to nrf52.inc nrf52840dk_nrf52840.conf: Add nRF52840 DK support

 conf/machine/96b-nitrogen.conf                   | 2 +-
 conf/machine/include/{nrf52832.inc => nrf52.inc} | 4 ++--
 conf/machine/nrf52840dk_nrf52840.conf            | 8 ++++++++
 3 files changed, 11 insertions(+), 3 deletions(-)
 rename conf/machine/include/{nrf52832.inc => nrf52.inc} (86%)
 create mode 100644 conf/machine/nrf52840dk_nrf52840.conf
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 nrf52832.inc: Rename to nrf52.inc

From: Wojciech Zmuda <[email protected]>

The file is so generic anyway it can be targeted for the nRF52 family without any harm.

---
 conf/machine/96b-nitrogen.conf                   | 2 +-
 conf/machine/include/{nrf52832.inc => nrf52.inc} | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename conf/machine/include/{nrf52832.inc => nrf52.inc} (86%)
conf/machine/96b-nitrogen.conf +1 -1
index 998db4c..48f2041 100644
@@ -3,6 +3,6 @@
 
 #@DESCRIPTION: Machine configuration for 96Boards Nitrogen Board.
 
-require conf/machine/include/nrf52832.inc
+require conf/machine/include/nrf52.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
 ARCH_96b-nitrogen = "arm"
conf/machine/include/nrf52.inc renamed from conf/machine/include/nrf52832.inc +2 -2
similarity index 86%
rename from conf/machine/include/nrf52832.inc
rename to conf/machine/include/nrf52.inc
index e938aa6..d22f8bc 100644
@@ -1,7 +1,7 @@
 #@TYPE: Machine
-#@NAME: nrf52832
+#@NAME: nrf52xxx
 
-#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52832 (Cortex-M4) SoC.
+#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52xxx (Cortex-M4) SoC.
 
 require conf/machine/include/tune-cortexm4.inc
 
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 nrf52840dk_nrf52840.conf: Add nRF52840 DK support

In reply to Wojciech Zmuda

From: Wojciech Zmuda <[email protected]>

Add support for Nordic Semiconductor nRF52840 Development Kit board.

This is a generic MACHINE over nRF52 SoC family config plus PyOCD flashing ability.

---
 conf/machine/nrf52840dk_nrf52840.conf | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 conf/machine/nrf52840dk_nrf52840.conf
conf/machine/nrf52840dk_nrf52840.conf new file +8 -0
new file mode 100644
index 0000000..0aa50e0
@@ -0,0 +1,8 @@
+#@TYPE: Machine
+#@NAME: nrf52840dk_nrf52840
+
+#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52840 Development Kit.
+
+require conf/machine/include/nrf52.inc
+ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
+ARCH_nrf52840dk_nrf52840 = "arm"
Signature · 1 line
2.25.1
#3 lore raw

Re: [yocto] [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support

So far, MACHINE configurations are named using '-' instead of '_' . Could you use change it ?

Regards,
Naveen

Quoted 40 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Wojciech Zmuda
Sent: Tuesday, May 18, 2021 7:28 PM
To: [email protected]
Cc: Wojciech Zmuda <[email protected]>
Subject: [yocto] [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support

From: Wojciech Zmuda <[email protected]>

Add support for Nordic Semiconductor nRF52840 Development Kit board.

This is a generic MACHINE over nRF52 SoC family config plus PyOCD flashing ability.

---
 conf/machine/nrf52840dk_nrf52840.conf | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 conf/machine/nrf52840dk_nrf52840.conf
conf/machine/nrf52840dk_nrf52840.conf new file +4 -0
new file mode 100644
index 0000000..0aa50e0
@@ -0,0 +1,8 @@
+#@TYPE: Machine
+#@NAME: nrf52840dk_nrf52840
+
+#@DESCRIPTION: Machine configuration for Nordic Semiconductor

nRF52840 Development Kit.

conf/machine/nrf52840dk_nrf52840.conf new file +4 -1
+
+require conf/machine/include/nrf52.inc
+ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
+ARCH_nrf52840dk_nrf52840 = "arm"
--

2.25.1