From 63af296b6efd8d677d584f372c9da9a4fedaa496 Mon Sep 17 00:00:00 2001 From: Alexander Krikun Date: Wed, 9 Oct 2024 04:48:02 +0400 Subject: 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. --- app/snippets/nrf52833-nosd/nrf52833-nosd.overlay | 22 ++++++++++++++++++++++ app/snippets/nrf52833-nosd/snippet.yml | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 app/snippets/nrf52833-nosd/nrf52833-nosd.overlay create mode 100644 app/snippets/nrf52833-nosd/snippet.yml 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 = ; + }; + /* + * 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 -- cgit v1.2.3