-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snippets: matter: Added snippet for matter debug purposes #19973
snippets: matter: Added snippet for matter debug purposes #19973
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 7995954fcc90a34f7e702ae0a82ca81eb7e9ffa4 more detailssdk-nrf:
Github labels
List of changed files detected by CI (10)
Outputs:ToolchainVersion: 342151af73 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
f6c8742
to
c3ee7a9
Compare
|
||
Matter debug snippet allows you to enable additional debug features while using Matter samples. | ||
|
||
Using this snippet there are the following features enabled: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using this snippet there are the following features enabled: | |
The following features are enabled when using this snippet: |
|
||
Using this snippet there are the following features enabled: | ||
|
||
* UART speed is increased to 1Mbit/s. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* UART speed is increased to 1Mbit/s. | |
* UART speed is increased to 1 Mbit/s. |
* Openthread shell is enabled. | ||
* Openthread logging level is set to INFO. | ||
* Full shell functionalities. | ||
* Logging source code location on VerifyOrDie failure which occurs in Matter stack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Logging source code location on VerifyOrDie failure which occurs in Matter stack. | |
* Logging source code location on VerifyOrDie failure that occurs in the Matter stack. |
|
||
To use the snippet when building a sample, add ``-D<project_name>_SNIPPET=matter-debug`` to the west arguments list. | ||
|
||
Example for the ``nrf52840dk/nrf52840`` board target and the :ref:`matter_lock_sample` sample: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example for the ``nrf52840dk/nrf52840`` board target and the :ref:`matter_lock_sample` sample: | |
For example, for the ``nrf52840dk/nrf52840`` board target and the :ref:`matter_lock_sample` sample, use the following command: |
Debug snippet | ||
============= | ||
|
||
Matter debug snippet allows you to enable additional debug features while using Matter samples. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Matter debug snippet allows you to enable additional debug features while using Matter samples. | |
The Matter debug snippet allows you to enable additional debug features while using Matter samples. |
c3ee7a9
to
43aa8fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 👍
# Deferred mode of logging | ||
CONFIG_LOG=y | ||
CONFIG_LOG_MODE_DEFERRED=y | ||
CONFIG_LOG_BUFFER_SIZE=40960 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it fit with this value on Light Bulb e.g. on nRF54L or we need to decrease it a bit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just decreased it a little bit to fit Light Bulb even on nRF52840.
snippets/matter-debug/snippet.yml
Outdated
EXTRA_CONF_FILE: matter_debug.conf | ||
|
||
boards: | ||
nrf52840dk/nrf52840: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could use wildcards to also support customer boards with these socs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing, good point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I've noticed now that it cannot be done by using wildcards. We want to change the UART speed in those .dts overlays, so it is applicable only for DKs. Customers must add their own dts overlay for UART if they want to increase the speed because they can use a different UART than is used on the DK. I will open a follow-up and describe it in our docs as well.
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]>
43aa8fd
to
7995954
Compare
Utilizing this snippet: