aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander Krikun <[email protected]>2024-10-09 04:48:02 +0400
committerPete Johanson <[email protected]>2024-11-12 18:28:59 -0700
commit63af296b6efd8d677d584f372c9da9a4fedaa496 (patch)
tree4cefb7e88346647846ce89980f815de2dbb8368e
parentc9553c31e3a3f39964391b006492995b5bb09c39 (diff)
downloadzmk-63af296b6efd8d677d584f372c9da9a4fedaa496.tar.gz
zmk-63af296b6efd8d677d584f372c9da9a4fedaa496.zip
feat(boards): add nrf52833-nosd snippet
Add snippet to build for nRF52833 boards while ignoring the SoftDevice. This is necessary as those boards are memory-constrained.
-rw-r--r--app/snippets/nrf52833-nosd/nrf52833-nosd.overlay22
-rw-r--r--app/snippets/nrf52833-nosd/snippet.yml6
2 files changed, 28 insertions, 0 deletions
diff --git a/app/snippets/nrf52833-nosd/nrf52833-nosd.overlay b/app/snippets/nrf52833-nosd/nrf52833-nosd.overlay
new file mode 100644
index 0000000000..8eb416938e
--- /dev/null
+++ b/app/snippets/nrf52833-nosd/nrf52833-nosd.overlay
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2024 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+/delete-node/ &sd_partition;
+/delete-node/ &code_partition;
+
+&flash0 {
+ partitions {
+ sd_partition: partition@0 {
+ reg = <0x0 DT_SIZE_K(4)>;
+ };
+ code_partition: partition@1000 {
+ reg = <DT_SIZE_K(4) DT_SIZE_K(428)>;
+ };
+ /*
+ * 32KB storage partition at 0x6c000 is unchanged
+ */
+ };
+};
diff --git a/app/snippets/nrf52833-nosd/snippet.yml b/app/snippets/nrf52833-nosd/snippet.yml
new file mode 100644
index 0000000000..f20ace16da
--- /dev/null
+++ b/app/snippets/nrf52833-nosd/snippet.yml
@@ -0,0 +1,6 @@
+# Copyright (c) 2024 The ZMK Contributors
+# SPDX-License-Identifier: MIT
+
+name: nrf52833-nosd
+append:
+ EXTRA_DTC_OVERLAY_FILE: nrf52833-nosd.overlay