From 89e8eb76dae301361966f3d47fb45e03ceebaeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janusz=20G=C4=85sior?= Date: Wed, 13 Nov 2024 13:23:30 +0100 Subject: [PATCH] doc: samples: suit: Testing Steps for recovery sample MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test steps for SUIT recovery sample. Signed-off-by: Janusz Gąsior --- .../nrf54h/ug_nrf54h20_suit_recovery.rst | 4 ++-- samples/suit/recovery/README.rst | 22 ++++++++++++++----- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/doc/nrf/app_dev/device_guides/working_with_nrf/nrf54h/ug_nrf54h20_suit_recovery.rst b/doc/nrf/app_dev/device_guides/working_with_nrf/nrf54h/ug_nrf54h20_suit_recovery.rst index e8daca9cc71a..f0d407431c93 100644 --- a/doc/nrf/app_dev/device_guides/working_with_nrf/nrf54h/ug_nrf54h20_suit_recovery.rst +++ b/doc/nrf/app_dev/device_guides/working_with_nrf/nrf54h/ug_nrf54h20_suit_recovery.rst @@ -1,7 +1,7 @@ .. _ug_nrf54h20_suit_recovery: -Configuring and programming the SUIT manufacturer application recovery firmware -############################################################################### +SUIT Recovery +############# .. contents:: :local: diff --git a/samples/suit/recovery/README.rst b/samples/suit/recovery/README.rst index 4151a76c87d9..76a8a27af5f2 100644 --- a/samples/suit/recovery/README.rst +++ b/samples/suit/recovery/README.rst @@ -93,12 +93,24 @@ Testing |test_sample| #. |connect_kit| -#. Corrupt the currently running main application (for example by flashing a modified version of the application) -#. Open the Device Manager or the nRF Connect application, and observe the device advertising as "SUIT Recovery" -#. Recover the application using `nRF Connect Device Manager`_ in the same way as described in the :ref:`nrf54h_suit_sample` sample documentation. +#. Corrupt the currently running main application. + This can be done by overwriting the beginning of the application partition: - .. note:: - In recovery state, `nRF Connect Device Manager`_ uses legacy mode. +.. code-block:: console + + nrfutil device x-write --address 0xE0A5000 --value 0xFFFF --serial-port COM7 + +#. Reset the device to enter the recovery path: + +.. code-block:: console + + nrfutil device reset --serial-port COM7 + +#. Open the nRF Device Manager app on your mobile phone, and observe the device now advertising itself as *SUIT Recovery*. +#. Recover the application using the nRF Device Manager app to perform an update, following the process outlined in the :ref:`nrf54h_suit_sample` sample documentation. + Use the :file:`root.suit` file generated from the previous build. +#. After the update completes, the device will reset and launch the application. +#. Open the nRF Device Manager app on your mobile phone and observe that the device is now advertising as *SUIT SMP Sample*. Device firmware update for recovery firmware ============================================