-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
63af296
commit 4438b7b
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = <DT_SIZE_K(4) DT_SIZE_K(844)>; | ||
}; | ||
|
||
/* | ||
* 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 = <DT_SIZE_K(848) DT_SIZE_K(128)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |