-
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
doc: SUIT recovery button documentation #19217
base: main
Are you sure you want to change the base?
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 56069f204a27be83ecb124b040d640146a58c8a3 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds. Note: This comment is automatically posted by the Documentation Publish GitHub Action. |
|
||
Replace ``button0`` with the appropriate button node. | ||
|
||
2. Enable :kconfig:option:`CONFIG_SUIT_RECOVERY_BUTTON` in the main application configuration. |
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.
Just thinking - since SUIT_RECOVERY_BUTTON
already depends on DTS: $(dt_chosen_enabled,$(DT_CHOSEN_NCS_RECOVERY_BUTTON))
, maybe we can state default y
in that symbol too, so the DTS modification will be the only one required to enable this feature?
In other words - is there a practical case, in which the ncs,recovery-button
is defined, yet the recovery button should not be checked?
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.
You are probably right, I've changed this in the other PR and removed the second step
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.
Small suggestions to be verified by Tech writers
When this feature is enabled, the device will enter recovery mode if the button is pressed during boot. | ||
|
||
.. note:: | ||
To exit the recovery mode, a device firmware update must be performed. |
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.
Cold boot will not allow to leave this mode? Any other possibility to leave?
Recovery button checked in the recovery application | ||
=================================================== | ||
|
||
In this variant the recovery application is run as a companion image before the main application when the device boots. |
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.
In this variant the recovery application is run as a companion image before the main application when the device boots. | |
In this variant, during the boot the recovery application is run as a companion image before the main application . |
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 modified it in a slightly different way, but I think it's better now
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
b3829d0
to
47727d9
Compare
1ff5cd7
to
737710e
Compare
737710e
to
3ecf3d3
Compare
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
:ref:`Entering recovery via button press <ug_nrf54h20_suit_recovery_enter_via_button>` uses such requests. | ||
The code for this feature is located in the :file:`nrf/subsys/suit/app_tools/recovery_button` directory. | ||
It can be used as a reference design. | ||
|
||
To request entering the recovery mode, the ``suit_foreground_dfu_required()`` function must be called. |
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.
:ref:`Entering recovery via button press <ug_nrf54h20_suit_recovery_enter_via_button>` uses such requests. | |
The code for this feature is located in the :file:`nrf/subsys/suit/app_tools/recovery_button` directory. | |
It can be used as a reference design. | |
To request entering the recovery mode, the ``suit_foreground_dfu_required()`` function must be called. | |
For additional details, see :ref:`Entering recovery via button press <ug_nrf54h20_suit_recovery_enter_via_button>`, which demonstrates similar request-based entry. | |
The implementation of this feature is available in the :file:`nrf/subsys/suit/app_tools/recovery_button` directory. | |
This directory contains a reference design that can be adapted as needed. | |
To request the device to enter recovery mode, invoke the ``suit_foreground_dfu_required()`` function. |
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.
Additional to these changes, line 252:
"For additional details, see :ref:Entering recovery mode through button press <ug_nrf54h20_suit_recovery_enter_through_button>
, which demonstrates similar request-based entry."
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.
The suggested change has a bit different meaning than I intended - the recovery_button is a module which uses the described feature (entering recovery through a request - by the way, it uses it exactly, it does not use a "similar entry") - however it is not strictly a reference design/sample, it is a full-fledged feature. However, it is currently the only code which uses this feature, so I wanted to suggest to the documentation reader that if he wants to see an example, this module is the best place to start with.
I've modified the text a bit, please take a look now
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
:ref:`Entering recovery via button press <ug_nrf54h20_suit_recovery_enter_via_button>` uses such requests. | ||
The code for this feature is located in the :file:`nrf/subsys/suit/app_tools/recovery_button` directory. | ||
It can be used as a reference design. | ||
|
||
To request entering the recovery mode, the ``suit_foreground_dfu_required()`` function must be called. |
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.
Additional to these changes, line 252:
"For additional details, see :ref:Entering recovery mode through button press <ug_nrf54h20_suit_recovery_enter_through_button>
, which demonstrates similar request-based entry."
2246468
to
0811777
Compare
0811777
to
1a5ae57
Compare
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
2d74809
to
35536bd
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.
Approving but please fix this one issue
doc/nrf/app_dev/device_guides/nrf54h/ug_nrf54h20_suit_recovery.rst
Outdated
Show resolved
Hide resolved
This commit documents the feature allowing to enter SUIT recovery via a button press. Signed-off-by: Artur Hadasz <[email protected]>
0f7b3db
to
56069f2
Compare
This commit documents the feature allowing to enter SUIT recovery via a button press.