From 4438b7b835bfd1d4e89cdd955a4ab0fd2e2ae3bf Mon Sep 17 00:00:00 2001 From: Alexander Krikun Date: Fri, 11 Oct 2024 01:26:58 +0400 Subject: feat(boards): add nrf52840-nosd snippet Add snippet to build for nRF52840 boards while ignoring the SoftDevice. This might be useful for especially memory-intensive applications. --- app/snippets/nrf52840-nosd/nrf52840-nosd.overlay | 34 ++++++++++++++++++++++++ app/snippets/nrf52840-nosd/snippet.yml | 6 +++++ 2 files changed, 40 insertions(+) create mode 100644 app/snippets/nrf52840-nosd/nrf52840-nosd.overlay create mode 100644 app/snippets/nrf52840-nosd/snippet.yml diff --git a/app/snippets/nrf52840-nosd/nrf52840-nosd.overlay b/app/snippets/nrf52840-nosd/nrf52840-nosd.overlay new file mode 100644 index 0000000000..ec339e8fdc --- /dev/null +++ b/app/snippets/nrf52840-nosd/nrf52840-nosd.overlay @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2024 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +/delete-node/ &sd_partition; +/delete-node/ &code_partition; +/delete-node/ &storage_partition; + +&flash0 { + partitions { + sd_partition: partition@0 { + reg = <0x0 DT_SIZE_K(4)>; + }; + + code_partition: partition@1000 { + reg = ; + }; + + /* + * The flash starting at 0x000d4000 and ending at + * 0x000f3fff is reserved for use by the application. + */ + + /* + * Storage partition will be used by FCB/LittleFS/NVS + * if enabled. + */ + storage_partition: partition@d4000 { + reg = ; + }; + }; +}; diff --git a/app/snippets/nrf52840-nosd/snippet.yml b/app/snippets/nrf52840-nosd/snippet.yml new file mode 100644 index 0000000000..620e3227cd --- /dev/null +++ b/app/snippets/nrf52840-nosd/snippet.yml @@ -0,0 +1,6 @@ +# Copyright (c) 2024 The ZMK Contributors +# SPDX-License-Identifier: MIT + +name: nrf52840-nosd +append: + EXTRA_DTC_OVERLAY_FILE: nrf52840-nosd.overlay -- cgit v1.2.3