|
| 1 | +.. zephyr:code-sample:: nrf_ironside_update |
| 2 | + :name: Nordic IRONside SE firmware update |
| 3 | + |
| 4 | + Update the Nordic IRONside SE firmware. |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The Nordic IRONside SE Update sample updates the IRONside SE firmware on a SoC that already has IRONside SE installed. |
| 10 | +It can update both the main image and the recovery image of IRONside SE using the IRONside SE firmware release ZIP file. |
| 11 | + |
| 12 | +Update procedure |
| 13 | +**************** |
| 14 | + |
| 15 | +The update procedure works as follows: |
| 16 | + |
| 17 | +1. The application invokes the IRONside SE update service and passes the parameters that correspond to the location of the HEX file of the IRONside SE firmware update. |
| 18 | + |
| 19 | +#. The application prints the return value of the service call and outputs information from the update HEX file. |
| 20 | + |
| 21 | +#. After the service call completes, the IRONside SE firmware updates the internal state of the device. |
| 22 | + |
| 23 | +#. The firmware installs the update during the next device boot. |
| 24 | + This operation can take several seconds. |
| 25 | + |
| 26 | +Once the operation has completed, you can read the boot report to verify that the update has taken place. |
| 27 | + |
| 28 | +Building and running the application for nrf54h20dk/nrf54h20/cpuapp/iron |
| 29 | +************************************************************************ |
| 30 | + |
| 31 | +.. note:: |
| 32 | + You can use this application only when there is already a version of IRONside SE installed on the device. |
| 33 | + |
| 34 | +1. Unzip the IRONside SE release ZIP to get the update hex file: |
| 35 | + |
| 36 | + .. code-block:: console |
| 37 | +
|
| 38 | + unzip nrf54h20_soc_binaries_v.*.zip |
| 39 | +
|
| 40 | +#. Program the appropriate update hex file from the release ZIP using one (not both) of the following commands: |
| 41 | + |
| 42 | + a) To update IRONside SE firmware: |
| 43 | + |
| 44 | + .. code-block:: console |
| 45 | +
|
| 46 | + nrfutil device program --traits jlink --firmware update/ironside_se_update.hex |
| 47 | +
|
| 48 | + b) To update IRONside SE recovery firmware: |
| 49 | + |
| 50 | + .. code-block:: console |
| 51 | +
|
| 52 | + nrfutil device program --traits jlink --firmware update/ironside_se_recovery_update.hex |
| 53 | +
|
| 54 | +#. Build and program the application: |
| 55 | + |
| 56 | + .. zephyr-app-commands:: |
| 57 | + :zephyr-app: samples/drivers/firmware/nrf_ironside/update |
| 58 | + :board: nrf54h20dk/nrf54h20/cpuapp/iron |
| 59 | + :goals: flash |
| 60 | + |
| 61 | +#. Trigger a reset: |
| 62 | + |
| 63 | +.. code-block:: console |
| 64 | +
|
| 65 | + nrfutil device reset --reset-kind RESET_PIN --traits jlink |
| 66 | +
|
| 67 | +#. Check that the new version is installed: |
| 68 | + |
| 69 | + .. code-block:: console |
| 70 | +
|
| 71 | + # Read the version fields from the boot report |
| 72 | + nrfutil x-read --direct --address 0x2f88fd04 --bytes 16 --traits jlink |
| 73 | + # Read the update status in the boot report |
| 74 | + nrfutil x-read --direct --address 0x2f88fd24 --bytes 4 --traits jlink |
0 commit comments