-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snippets: matter: Added snippet for matter debug purposes
Utilizing this snippet: - Extended log buffer size - Increased UART speed to 1M - Eabled OpenThread debug - Disabled log size optimization - Switched to log mode deferred. Signed-off-by: Arkadiusz Balys <[email protected]>
- Loading branch information
1 parent
cb64067
commit 7995954
Showing
10 changed files
with
121 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
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
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
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,8 @@ | ||
/* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&uart0 { | ||
current-speed = <1000000>; | ||
}; |
8 changes: 8 additions & 0 deletions
8
snippets/matter-debug/boards/nrf5340dk_nrf5340_cpuapp.overlay
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,8 @@ | ||
/* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&uart0 { | ||
current-speed = <1000000>; | ||
}; |
8 changes: 8 additions & 0 deletions
8
snippets/matter-debug/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
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,8 @@ | ||
/* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&uart136 { | ||
current-speed = <1000000>; | ||
}; |
8 changes: 8 additions & 0 deletions
8
snippets/matter-debug/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
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,8 @@ | ||
/* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&uart20 { | ||
current-speed = <1000000>; | ||
}; |
8 changes: 8 additions & 0 deletions
8
snippets/matter-debug/boards/nrf7002dk_nrf5340_cpuapp.overlay
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,8 @@ | ||
/* Copyright (c) 2025 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&uart0 { | ||
current-speed = <1000000>; | ||
}; |
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,28 @@ | ||
# | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Enable OpenThread debug logs | ||
CONFIG_OPENTHREAD_SOURCES=y | ||
CONFIG_OPENTHREAD_DEBUG=y | ||
CONFIG_OPENTHREAD_LOG_LEVEL_INFO=y | ||
CONFIG_OPENTHREAD_SHELL=y | ||
|
||
# Deferred mode of logging | ||
CONFIG_LOG=y | ||
CONFIG_LOG_MODE_DEFERRED=y | ||
CONFIG_LOG_BUFFER_SIZE=40960 | ||
CONFIG_LOG_SPEED=y | ||
CONFIG_LOG_BLOCK_IN_THREAD=y | ||
CONFIG_LOG_BLOCK_IN_THREAD_TIMEOUT_MS=50 | ||
|
||
# Enable shell features | ||
CONFIG_SHELL_MINIMAL=n | ||
|
||
# Increase verbosity of Matter logs | ||
CONFIG_CHIP_LOG_SIZE_OPTIMIZATION=n | ||
|
||
# Enable logging source code location on VerifyOrDie failure | ||
CONFIG_CHIP_LOG_VERIFY_OR_DIE=y |
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,23 @@ | ||
name: matter-debug | ||
append: | ||
EXTRA_CONF_FILE: matter_debug.conf | ||
|
||
boards: | ||
/.*nrf52840.*/: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf52840dk_nrf52840.overlay | ||
/.*nrf5340.*/: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf5340dk_nrf5340_cpuapp.overlay | ||
nrf7002dk/nrf5340/cpuapp: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf7002dk_nrf5340_cpuapp.overlay | ||
thingy53/nrf5340/cpuapp: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf5340dk_nrf5340_cpuapp.overlay | ||
/.*nrf54l.*/: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.overlay | ||
/.*nrf54h20.*/: | ||
append: | ||
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20dk_nrf54h20_cpuapp.overlay |