Skip to content

Commit

Permalink
feat(boards): add nrf52833-nosd snippet
Browse files Browse the repository at this point in the history
Add snippet to build for nRF52833 boards while ignoring the softdevice.
This is necessary as those boards are memory-constrained.

This approach could be extended to other boards in the future:
https://docs.zephyrproject.org/latest/build/snippets/writing.html#by-regular-expression
  • Loading branch information
krikun98 committed Oct 10, 2024
1 parent 4aea919 commit 24419ac
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/snippets/nrf52833-nosd/nrf52833-nosd.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* 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)>;
};
};
};
10 changes: 10 additions & 0 deletions app/snippets/nrf52833-nosd/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024 The ZMK Contributors
# SPDX-License-Identifier: MIT

name: nrf52833-nosd
boards:
# Add any new nRF52833 boards via regular expression:
# https://docs.zephyrproject.org/latest/build/snippets/writing.html#by-regular-expression
nrfmicro_13_52833:
append:
EXTRA_DTC_OVERLAY_FILE: nrf52833-nosd.overlay

0 comments on commit 24419ac

Please sign in to comment.