Skip to contentSkip to conversation

Add nRF52840 DK support

PATCH New Wojciech Zmuda 1 participant 3 messages May 19, 2021

lore
Share & tools
lore
#0 lore raw

v2 cover Add nRF52840 DK support

From: Wojciech Zmuda <[email protected]>

v1 -> v2:
- MACHINE configurations are named using '-' instead of '_'. Reame the new configuration accordingly.

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 v2 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 v2 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..c5be5db
@@ -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